I have a Wix project that installs a few exe files. One is the 'Main' executable and the others are supporting programs to help diagnose problems.
The main executable is optional, and the support programs will run on their own. Often, the end user will install a thrid-party program instead of my main executable.
At the end of the wix installer, I want to have a 'launch program' checkbox that will run the program as soon as the installer closes.
I can hide the checkbox based on the INSTALLLEVEL property, but that only changes depending on if the user selected a 'Typical' or 'Complete' install. I would like to hide it based on if the main executable feature is installed or not.
Something like this would be ideal:
<Feature Id='MainProgram' Title='MainExe' Description='This application stores and displays information from our hardware.'
ConfigurableDirectory='INSTALLDIR' Level='4'
AllowAdvertise='no'>
<ComponentRef Id='MainExecutable' />
<ComponentRef Id='SQLLibrary' />
<ComponentRef Id='ProgramIcon' />
<ComponentRef Id='RemovePluginsFolder'/>
<Property Id='ShowFinalCheckbox'>1</Property> #<--This won't work, but I'd like it to.
</Feature>