A search of the wix source gives this example: <util:RegistrySearch Root='HKLM' Key='SOFTWARE\Microsoft\VisualStudio\12.0' Value='InstallDir' Variable='VS2013InstallFolder' />
..... InstallCondition='VS2013InstallFolder OR VS2013WDExpressInstalled' If for some reason the above approach is not useful,then: In the Bindle declare a variable: (also from the wix source, but make it 'Overrideable='yes') <Variable Name='InstallFolder' Type='string' Value='[ProgramFilesFolder]WiX Toolset v$(var.WixMajorMinor)' /> In your BA's OnDetectComplete handler, or at some later point, read the registry key and use the Engine function to set the value to your variable. If using C++ look at src\burn\Samples\bafunctions. If doing managed code look at src\Setup\WixBA. (I am not sure if it specifically does this but you can see how to call engine functions. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-bundle-EXE-setting-property-tp7595178p7596184.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users