- Product 1.1 setup has the user select Value A or Value B which affects setup by setting in the following way:
Code: Select all
If Session.Property("VALUE") = "A" then
Session.FeatureRequestState("FeatureX") = msiInstallStateAbsent
Session.FeatureRequestState("FeatureY") = msiInstallStateLocal
end If
If Session.Property("VALUE") = "B" then
Session.FeatureRequestState("FeatureY") = msiInstallStateAbsent
Session.FeatureRequestState("FeatureX") = msiInstallStateLocal
end If
I was thinking of manually having the user put in the HKCU registry Value = "A" as a fix for existing installs. The update.exe would read the value and based on that choose the install state for the two features.
My question is, how do I do that in an update situation? The InstallExecuteSequence is too late - setup/update is already baked. So how can I insert the install state in setup before InstallExecuteSequence is off doing its job.
Thanks.
Update: In my haste to make a clean example I neglected to user the proper case for VALUE.