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
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 Publish Property=BROWSEPROPERTY Value=MAINDIR1/Publish Publish Event=DoAction Value=ShowBrowseDialog1/Publish -- 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
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
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