Thanks very much for this hint. After refreshing my small C++ skills I 
was now able to solve this issue :)

Best regards,
Patrick


dB. schrieb:
> We use a C++ custom action that calls GetOpenFileName for this. 
>
>       OPENFILENAME ofn = {0};
>       TCHAR szFilters[] =
>       //_T("All Files (*.*)\0*.*\0")
>       L"Pem File (*.pem)\0*.pem\0";
>
>       ofn.lStructSize = sizeof(ofn);
>       ofn.hwndOwner = GetForegroundWindow();
>       ofn.lpstrFile = szOriginalPath;
>       ofn.nMaxFile = ARRAYSIZE(szOriginalPath);
>       ofn.lpstrFilter = szFilters;
>       ofn.nFilterIndex = 1;
>       ofn.lpstrFileTitle = NULL;
>       ofn.nMaxFileTitle = 0;
>       ofn.lpstrInitialDir = NULL;
>       ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
>       //ofn.Flags = OFN_HIDEREADONLY;                 
>                       
>       if (GetOpenFileName(&ofn) == TRUE)
>       {
>       }
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to