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
- :
- Re: Conditional installation
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
‎Dec 10, 2008
09:52 AM
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
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
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2008
06:08 PM
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...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2008
02:38 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2008
05:14 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 11, 2008
08:17 AM
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
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.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)