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
- :
- Install File On Condition
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 12, 2012
03:58 PM
Install File On Condition
Hello,
I am using InstallShield 2011. I would like to install one of three different files based on a radio button selection made by the user in a custom dialog screen. I have created the dialog screen and have access to my variable, but I cannot figure out how to use this variable to flag which of the three files to install.
Is there a way under ‘Files and Folders’ to set a condition on a file so it is only installed if that condition is true?
I have also tried creating an InstallScript that would copy the correct file from the CDROM. The issue is that I cannot figure out how to get the path to the CDROM. I have searched the web and tried every suggestion I can find, but cannot find one that will simply tell me the path to the original setup.exe that was executed from the CDROM. For example, SRCDIR returns the path to the temporary directory that the files have been copied to instead of the path of the CDROM where the files came from.
Seems simple but I’m stumped,
Teg
I am using InstallShield 2011. I would like to install one of three different files based on a radio button selection made by the user in a custom dialog screen. I have created the dialog screen and have access to my variable, but I cannot figure out how to use this variable to flag which of the three files to install.
Is there a way under ‘Files and Folders’ to set a condition on a file so it is only installed if that condition is true?
I have also tried creating an InstallScript that would copy the correct file from the CDROM. The issue is that I cannot figure out how to get the path to the CDROM. I have searched the web and tried every suggestion I can find, but cannot find one that will simply tell me the path to the original setup.exe that was executed from the CDROM. For example, SRCDIR returns the path to the temporary directory that the files have been copied to instead of the path of the CDROM where the files came from.
Seems simple but I’m stumped,
Teg
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 13, 2012
01:50 PM
For each component (file) set the condition...
Example
Component A
OPTION_PROPERTY = 1
Component B
OPTION_PROPERTY = 2
Component C
OPTION_PROPERTY = 3
Example
Component A
OPTION_PROPERTY = 1
Component B
OPTION_PROPERTY = 2
Component C
OPTION_PROPERTY = 3
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)