Passing Properties to chained msi - Advanced Installer Community
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Passing Properties to chained msi

Hello,

I have the following issue to a chained msi:

- in the main package a feature can be selected to install (files are located under a feature in the chained msi)
- in the chained msi feature will only be installed when a property is set, i.e. in the condition: [FEATURE_INSTALL]="1"
- passing FEATURE_INSTALL="1" to the chained package in the properties would set the property and install it

My question is, how to code the property evaluation to pass "1" or another value for that property to the chained package:

FEATURE_INSTALL="(Is the Feature checked in the main package to install)"

How can "(Is the Feature checked in the main package to install)" be evaluated to "1", that means: feature in main package is selected and should be installed?

Thank you and best regards
Bernd
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Passing Properties to chained msi

Hello Bernd,
How can "(Is the Feature checked in the main package to install)" be evaluated to "1", that means: feature in main package is selected and should be installed?
You can use our predefined Set installer property predefined custom action in the main installation package to set the FEATURE_INSTALL property with its appropriate value (e.g. 1).
In order to execute this custom action only when a certain feature from the main installation package is selected, you can add the
&Feature=3 statement in the Condition field of this custom action.
This condition will be true only if the feature "Feature" will be installed locally. If the feature is not selected for installation the condition is false.

You can also take a look on the Edit Condition Dialog article which may be useful to you.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Passing Properties to chained msi

Hi Dan,

thank you. I added custom actions as described in your post, but it seems they are never executed.
Is it ok to use public properties?
When I execute the package in AI with logging there are logged all the property changes, but there is no change to the properties I used in custom action"Set Installer Property"
I removed the condition --> just the same, do you have any idea?

Best regards
Bernd
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Passing Properties to chained msi

Hello Bernd,

In order to have a better view about this, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Passing Properties to chained msi

Hello Dan,

file is sent to support.

Best regards
Bernd

Return to “Common Problems”