I need to create an install file that will check the registry for the version of another software. Currently I'm commenting and un-commenting lines of code for separate installs. How can I turn the below into an conditional?
<!--<Property Id="ACADREG" Value="ACAD-A001:409" /> Autocad 2012-->
<Property Id="ACADREG" Value="ACAD-A004:409" /> <!--Autocad Arch 2012-->
I also need to obtain which version that is for later in the install.
<Property Id="ACADROAMDIR">
<RegistrySearch Id="ROAMROOTDIR" Root="HKCU" Type="raw" Key="Software\Autodesk\AutoCAD\[ACADVER]\[ACADREG]" Name="RoamableRootFolder" />
</Property>
<Property Id="ACADDIR">
<RegistrySearch Id="AcadLocRegistry" Type="raw" Root="HKLM" Key="SOFTWARE\Autodesk\AutoCAD\[ACADVER]\[ACADREG]" Name="AcadLocation" />
</Property>
Is there a way wiX can set [ACADREG] by reading the registry instead of me setting it like I did above?