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
- :
- Condtionally create a folder in InstallShield 2010
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
Mar 11, 2013
02:17 PM
Condtionally create a folder in InstallShield 2010
I am using InstallShield 2010 to build an installer for our product (yes I know it's out of date and I'm trying to get the upgrade but for now this is what I have).
One of the things the installer needs to do is create a directory for storing data. But I only want to create that directory if a certain combination of features are selected (basically, one feature should be selected and two others should not).
I created the folder in the Files and Folder view, but I don't see how to create it conditionally. I tried associating the component to the feature that should be selected, and setting as a condition of the component that the other two features are not selected, but this didn't work. The folder is still created every time the associated feature is selected, regardless of whether the other two features are selected or not.
I suppose I could create it within an if statement using InstallScript, but I'd rather do it from the InstallShield GUI, if possible.
One of the things the installer needs to do is create a directory for storing data. But I only want to create that directory if a certain combination of features are selected (basically, one feature should be selected and two others should not).
I created the folder in the Files and Folder view, but I don't see how to create it conditionally. I tried associating the component to the feature that should be selected, and setting as a condition of the component that the other two features are not selected, but this didn't work. The folder is still created every time the associated feature is selected, regardless of whether the other two features are selected or not.
I suppose I could create it within an if statement using InstallScript, but I'd rather do it from the InstallShield GUI, if possible.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 11, 2013
05:37 PM
To create an empty folder, Windows Installer creates a record in CreateFolder table. Make sure the component referenced is associated to the feature that needs to be installed. For the condition (2 features being not selected for installation) on the component, please refer to Conditional Statement Syntax (Windows). It would probably be a combination of !feature-state and &feature-action.
