Description
User story
As a setup developer, I want give user to select option if feature is installed or not (separate MSI under bootstrapper application).
I have variable
<Variable Name="FeatureInstall" Persisted="yes" bal:Overridable="yes" Type="numeric" Value="1" />
then on upgrade I want check if previously feature was installed
<util:ProductSearch Id="Feature_Installed" UpgradeCode="0-1-2-3-4"
Result="exists" Variable="FeatureInstall" After="UpgradeCheck" Condition="IsUpgrade = 1" />
and on option page user is able to toggle feature on or off
<Checkbox Name="FeatureInstall" X="30" Y="124" Width="-11" Height="17" TabStop="yes" FontId="3">Install feature</Checkbox>
Current situation:
There is ProductSearch Result="state" and if msi was not installed, then result value will be 2 (ABSENT) and it will trigger the checkbox on.
Proposal
Add exists option to ProductSearch Result
Considerations
No response
Acknowledgements
- I am paying the Open Source Maintenance Fee by sponsoring the
wixtoolset
project because I support the maintainers.