cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
aup2008
Level 3

Conditional installation

Hi,

I am new to InstallShield 2009, please if you can help me.

Here is the situation:

I have 3 products which each of them has specific set of files.

During installation, the installer will do some checks, which product is installed.

If product_A then FILES_A will be installed.
If product_B then FILES_B will be installed.
If product_C then FILES_C will be installed.

Is it possible to do this using InstallShield?

If yes, could you please point out in general, how to configure that in InstallShield Pro 2009?

I could not figure it out how to do this.

Thanks for any info
Labels (1)
0 Kudos
(4) Replies
RobertDickau
Flexera Alumni

Which type of project are you using (Basic MSI, InstallScript, ...)? Different project types different ways of attaching conditions to features or components, or dynamically selecting or deselecting them...
0 Kudos
aup2008
Level 3

I am using Basic MSI.

Well, to be honest, I am pretty new to InstallShield and dont know which one to choose for this project.

Please if you can help. Just the general ideas, where to put the conditions and how to add the files, something like that.

Thanks
0 Kudos
IlkkaV
Level 7

aup2008 wrote:

Please if you can help. Just the general ideas, where to put the conditions and how to add the files, something like that.


In a Basic MSI project, first define the features at Organization -> Features.

When the features are there, add the files into correct folders at Application Data -> Files & Folders. Once the files are defined, select Show Components from the context menu in the "Destination Computer Folders". Now when you access the component's Properties, there's a Features tab in which you can define the features the component (and the files contained in it) is associated with.
0 Kudos
aup2008
Level 3

Here what I did:

1. Create BASIC MSI project and go to the Installation Designer. I did not touch anything in the project assistant.

2. Go to Setup Design and add 3 Features

Product_R1 -> Display Name set to Product_R1
Product_R2 -> Display Name set to Product_R2
Product_R3 -> Display Name set to Product_R3

3. Create a component for each feature

Component_R1
- Add Files -> Dynamic Link set to C:\Packages\R1

Component_R2
- Add Files -> Dynamic Link set to C:\Packages\R2

Component_R3
- Add Files -> Dynamic Link set to C:\Packages\R3

4. In the Application data -> Files and Folders
[CODE]
[FONT="Courier New"]* Destination Computer
[AppDataFolder]
[CommonFilesFolder]
[ProgramFilesFolder]
- MY_COMPANY
- TEST_PRODUCT [INSTALLDIR]
- etc[/FONT]
[/CODE]

Now, where and how to add the condition?

For example: before installation, I must check the content of this text file:

C:\Program Files\MY_COMPANY\TEST_PRODUCT\etc\config.txt

And find out:
if contain word "R1" -> Install Product_R1
if contain word "R2" -> Install Product_R2
if contain word "R3" -> Install Product_R3
other -> Abort installation

IlkkaV wrote:
In a Basic MSI project, first define the features at Organization -> Features.

When the features are there, add the files into correct folders at Application Data -> Files & Folders. Once the files are defined, select Show Components from the context menu in the "Destination Computer Folders". Now when you access the component's Properties, there's a Features tab in which you can define the features the component (and the files contained in it) is associated with.
0 Kudos