Bleile Datentechnik
Posts: 12
Joined: Mon Oct 11, 2010 3:13 pm

How to set ini enries by condition

Hello,

Is it possible to add entries in an ini file only if a condition is true ?

I tryed it this way:

1. Make a new feature "FeatureA"
(Set condition to BRAND="A" Install Lavel 1 and set Installation Behavior to disabled)
2. Create ini file named configA in appdir under MainFeature
(Set some keys and entries)
3. Select FeatureA
4. Create new folder in appdir named "FeatureA" (Install in parent folder enabled)
5. Create ini file named configA in Folder "FeatureA"
6. (set the specific entries)

Failed! The specific ini entries are always installed :(

Regards
Christian
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to set ini enries by condition

Hello Christian,

To condition the entry in an ini file you will need either to create or import the INI in Advanced Installer.
You can then edit it by double clicking it in the "Files and Folders" page.
For each entry you add from the editor you will need to provide a component, thus organizing your project as you see fit.
In the end you can condition each entry's component from the "Organization" page.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”