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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users