cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Teg_Aroni
Level 2

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
Labels (1)
0 Kudos
(1) Reply
D_Fraz
Level 4

For each component (file) set the condition...
Example
Component A
OPTION_PROPERTY = 1
Component B
OPTION_PROPERTY = 2
Component C
OPTION_PROPERTY = 3
0 Kudos