In my Managed Bootstrapper Application I want to give the user the option to select which packages to install. Therefore I want to set a variable and pass it to the Wix Bootstrapper. My approach was to do it similar like it is possible with the installfolder (described here) and check the value with the InstallCondition of the MsiPackage.
<Chain>
<MsiPackage ...
InstallCondition="[VariableName] = 1"
...>
</MsiPackage>
</Chain>
<Variable Name="VariableName" Type="numeric" Value="1"/>
Is this the right approach? If yes, has someone an example that works? If no, what is the best way to achieve that goal?