I'm using WiX 3.6 ( but could upgrade to 3.8 if necessary ) and have a bootsrapper written in BURN, that's nearly doing everything I need, except this one issue; which I just can't seem to crack.
I have two variables; Product_XYZ and Product_ABC. The first one contains a folder path populated via a registry search ( so it may be blank, if the search didn't find my reg key ) and the other one is hard-coded ( ie "[ProgramFilesFolder]\ABC" ).
I simply (?) want to set the InstallFolder variable ( so that it appears in the UI via the Options button ) to the value in the Product_XYZ variable ( if it's not blank ). If it is blank, I want to set the InstallFolder to the value in Product_ABC.
ie
If Product_XYZ <> "" then
InstallFolder = [Product_XYZ]
else
InstallFolder = [Product_ABC]
endif
but obviously using BURN logic !!
Can anyone please help me ?
Cheers,
Chris.