Hi, I have a custom action which I would like to modify a property which I can pass to it in my wix code when pressing a button.
The purpose of this is to use the windows browse dialogs on any specified property, so the property must be changable as there are multiple paths I would like to browse for. The custom action code I am using is written in C++ and it gets called correctly. As far as current reading has got me I have been able to determine that parameters can be passed into the c++ function using MsiGetProperty. So I would have to have a pre-determined property that can be set before calling the custom action. I have seen examples of how to do this using the InstallExecuteSequence for deffered actions, but cannot find a way to do it within a UI based system. Some code: extern "C" UINT __stdcall BrowseDialog(MSIHANDLE hInstall) { // variables to store the property which contains the path property we are going to edit TCHAR BrowseProperty[MAX_PATH]; DWORD BPLen = MAX_PATH; // get the property value and display in a message box for the timebeing MsiGetProperty(hInstall, _T("BROWSEPROPERTY"), BrowseProperty, &BPLen); MessageBox(NULL, BrowseProperty, NULL, MB_OK); return ERROR_SUCCESS; } ... <Property Id="BROWSEPROPERTY" Value="C:\Hello\Howareyou" /> <CustomAction Id="ShowBrowseDialog" BinaryKey="BrowseDialog" DllEntry="BrowseDialog" /> ... <Control Id="CtlBtnBrowse" Type="PushButton" Text="!(loc.Browse)" TabSkip="no" X="315" Y="277" Width="60" Height="20"> <Publish Event="DoAction" Value="ShowBrowseDialog" /> </Control> ... Any help is appricated!! Thanks. -- View this message in context: http://www.nabble.com/Modifying-parameters-and-sending-them-to-a-custom-action-on-a-button-press-tf4593717.html#a13114088 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users