[wix-users] Burn: How to pass RegistrySearch result value to Custom Bootstrapper
Farrukh Waheed
farrukh1 at gmail.com
Tue Oct 3 02:57:28 PDT 2017
In my Bundle code, I'm trying to use the result of a registry search to set
Variable to be used in my Custom Boostrapper:
<util:RegistrySearch
Id="ThirdPartyInstallDirSearch"
Variable="THIRDPARTY_INSTALL_DIR"
Root="HKLM"
Key="SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
Value="OceanSoftDir"
Result="exists"
/>
<Variable Name="THIRDPARTY_INSTALL_DIR" Type="string"
Value="$(var.THIRDPARTY_INSTALL_DIR)"/>
But this would give an error:
Undefined preprocessor variable '$(var.THIRDPARTY_INSTALL_DIR)'
Basically, I want to pass the result of registry search to my custom
bootstrapper application.
Thanks
More information about the wix-users
mailing list