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
- :
- How do I have multiple releases install different files
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
‎Oct 27, 2010
10:45 AM
How do I have multiple releases install different files
Within one MSI project, I'd like to have multiple releases which would install or not install certain files. How do I do that?
I see there are Release Flags I can assign to each release but don't see how they apply to the installed files.
And what if I need to rename the file? For instance, I may have Readme1.txt and Readme2.txt and want them to both be Readme.txt depending on whether I create Release 1 or Release 2.
Thanks in advance.
I see there are Release Flags I can assign to each release but don't see how they apply to the installed files.
And what if I need to rename the file? For instance, I may have Readme1.txt and Readme2.txt and want them to both be Readme.txt depending on whether I create Release 1 or Release 2.
Thanks in advance.
(12) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2010
12:22 PM
Regarding to the release flags, you also need to set them on your features so that the files will be included/excluded depending on releases.
Hope that helps.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2010
08:57 AM
What do you mean by setting them on my features?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2010
10:18 AM
You need to assign release flags to features using the Release Flags setting in the Setup Design view or the Features view. Please see the Release Flags online help topic for more information.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2010
04:55 PM
Thanks. I think I'm making progress. I created two features under Organization. I set their levels to 1 and 2, and assigned some extra files to the second one.
The help system says "You can change the package’s INSTALLLEVEL property in the Property Manager".
I can't figure out where I do that. Each of the Features has a Release Flags property as well. Am I supposed to set something in that corresponding to the Release Flags in the Release's Build tab?
I guess I'm getting confused between the INSTALLLEVEL and Release Flags.
The help system says "You can change the package’s INSTALLLEVEL property in the Property Manager".
I can't figure out where I do that. Each of the Features has a Release Flags property as well. Am I supposed to set something in that corresponding to the Release Flags in the Release's Build tab?
I guess I'm getting confused between the INSTALLLEVEL and Release Flags.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2010
05:20 PM
The Release Flags setting is to include and exclude features, InstallShield prerequisites, and chained .msi packages in installation packages depending on the type of release at build time. The Install Level setting is to determine which features are available for installation at run time.
If you want to include and exclude files in your installation packages depending on the type of release, you need to use the Release Flags setting. If you want to install and not install files from an installation depending on the type of setup, you need to use the Install Level setting.
Hope that helps.
If you want to include and exclude files in your installation packages depending on the type of release, you need to use the Release Flags setting. If you want to install and not install files from an installation depending on the type of setup, you need to use the Install Level setting.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2010
04:46 PM
I'm sorry to be so dense at trying to understand this but for some reason, I'm still having trouble and don't understand the difference or how they are invoked.
Given that I have release flags, how do I use those in combination with the features? Where/how in the properties or InstallScript do I reference the features to specify which ones go with which flags?
Given that I have release flags, how do I use those in combination with the features? Where/how in the properties or InstallScript do I reference the features to specify which ones go with which flags?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2010
05:02 PM
Release flags are used by InstallShield build process to determine which features should be built into your installation packages depending on the type of release. If a feature determines to be excluded from a release, it will not be built into the installation package. Hope that clarifies your question.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
06:36 AM
Thanks. Actually, I found this thread that explained the way to configure this: http://community.flexerasoftware.com/showthread.php?t=179463
It's working great, so thanks for your guidance.
Now, I've run into a new issue. Can I change the INSTALLDIR default folder based on a release flag?
It's working great, so thanks for your guidance.
Now, I've run into a new issue. Can I change the INSTALLDIR default folder based on a release flag?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
11:12 AM
A possible solution is to set the INSTALLDIR property by conditionally launching the Set Property custom actions based on release flags.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
05:32 PM
Thanks. That link didn't go to SetProperty, but I searched and found this page:
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?mgr=agm&tpc=%2Frobo%2Fprojects%2Finstallshield17helplib%2FIHelpCustomActionsReleaseFlags.htm&wnd=InstallShieldLivingHelp%7CMain&agt=wsm&ctxid=showthread.php
So is it doing something like this?
MsiSetProperty(hMSI, "INSTALLDIR", svName);
If so, what's hMSI and how/where do I set this up in the Install Script?
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?mgr=agm&tpc=%2Frobo%2Fprojects%2Finstallshield17helplib%2FIHelpCustomActionsReleaseFlags.htm&wnd=InstallShieldLivingHelp%7CMain&agt=wsm&ctxid=showthread.php
So is it doing something like this?
MsiSetProperty(hMSI, "INSTALLDIR", svName);
If so, what's hMSI and how/where do I set this up in the Install Script?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
07:33 PM
The Creating Custom Actions in the Custom Actions and Sequences View help topic discusses about how to create custom actions. See also the Sequencing Custom Actions that Set Properties or Directory Properties help topic for more information about the Set Property custom action.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2010
11:25 PM
Thanks.
Now that I have multiple releases in one product configuration, is there a way to copy all the releases of one product configuration to a new one or at least copy one release at a time?
I see how to clone a release but can't figure out how to move it to another product configuration.
I'd also be nice to have all the code signing information stored in one place rather than each release. I can see how that could be a pain to manage in the future.
Now that I have multiple releases in one product configuration, is there a way to copy all the releases of one product configuration to a new one or at least copy one release at a time?
I see how to clone a release but can't figure out how to move it to another product configuration.
I'd also be nice to have all the code signing information stored in one place rather than each release. I can see how that could be a pain to manage in the future.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)