cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DataAnalyzer
Level 8

Removing flag from Release Flags ISReleaseFlags doesn't work

I've got the features I want to install defined under the Setup Design, Features, and Components.

Based on the user's response in an AskOptions dialog, I choose the feature to install (let's call them FlagA and FlagB).

When I define my release, I specify the release flags to be FlagA,FlagB. I presume I need to do this to include both features in my setup.

Within my script, I can verify the flags using this code:
MsiGetProperty(ISMSI_HANDLE, "ISReleaseFlags", szBuffer, nSize);

I'm later able to change this via code like this to set the flag the user's selection:
MsiSetProperty(ISMSI_HANDLE, "ISReleaseFlags", szNewFlags);

I use the MsiGetProperty to verify it's set properly.

However, when the setup program runs, both features (FlagA and FlagB) are always installed. What am I missing?
Labels (1)
0 Kudos
(1) Reply
DataAnalyzer
Level 8

I figured it out after hours of trying different things and banging my head.

It wasn't obvious from the documentation. I thought I needed to change the ISReleaseFlags property to control which features were installed. It turns out that property has nothing to do with what's actually installed.

Features are added or removed by using the FeatureSelectItem command.

Hope this helps someone else.
0 Kudos