Re: [WiX-users] Modifying parameters and sending them to a custom action on a button press
MatPdr wrote: > I think I figured out my error. I wasn't putting a 1 in the content of the > publish element. > See http://msdn2.microsoft.com/en-us/library/aa368037.aspx for details about control events. -- sig://boB http://joyofsetup.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
Re: [WiX-users] Modifying parameters and sending them to a custom action on a button press
I think I figured out my error. I wasn't putting a 1 in the content of the publish element. the solution I came up with was to do the following 1 1 -- View this message in context: http://www.nabble.com/Modifying-parameters-and-sending-them-to-a-custom-action-on-a-button-press-tf4593717.html#a13133443 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
Re: [WiX-users] Modifying parameters and sending them to a custom action on a button press
Bob Arnson-6 wrote: > > That's the general model. What problem are you running into? > I want to be able to send the c++ function a dynamic property, as in: BROWSEPROPERTY holds the name of another property such as "MAINDIR" so when a button is pressed the following action sequence will occour*: 1. BROWSEPROPERTY will be set to "MAINDIR" 2. The c++ function will be called via a custom action *Note: where "MAINDIR" is being set, this could be another property name such as "EXAMPLEDIR" which means in the c++ function I will want to have to retrieve the value of MAINDIR TCHAR szBrowseProperty[MAX_PATH]; TCHAR szDirectory[MAX_PATH]; DWORD dwBrowseProperty = MAX_PATH; DWORD dwDirectory = MAX_PATH; MsiGetProperty(hInstall, _T("BROWSEPROPERTY"), szBrowseProperty, &dwBrowseProperty); MsiGetProperty(hInstall, szBrowseProperty, szDirectory, &dwDirectory); the value of MAINDIR will now be in szDirectory and I can work with it. -- View this message in context: http://www.nabble.com/Modifying-parameters-and-sending-them-to-a-custom-action-on-a-button-press-tf4593717.html#a13132134 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
Re: [WiX-users] Modifying parameters and sending them to a custom action on a button press
MatPdr wrote: > 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. > That's the general model. What problem are you running into? -- sig://boB http://joyofsetup.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
[WiX-users] Modifying parameters and sending them to a custom action on a button press
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; } ... ... ... 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