This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Removing flag from Release Flags ISReleaseFlags doesn't work
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 05, 2011
06:17 PM
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?
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 06, 2011
04:00 AM
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.
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.