buzz71
Posts: 25
Joined: Tue Nov 02, 2010 11:03 am

Conditional Install of file with same name

Hi

I have the scenario where I have 2 DLLs with the same name to be installed to the same location depending on a users selection in the UI.

I have set up the project as per http://www.advancedinstaller.com/user-g ... -name.html link.

The problem I have is that the "Install based on condition" for the features does not seem to see the property value collected in the UI.

My condition is like

Code: Select all

ANSWER = "Y"
for one feature and

Code: Select all

ANSWER = "N"
for the other. When I run in logging mode the variable appears to have the right value.

The features are not attempted to be installed (from log):
MSI (s) (18:50) [10.11:50:963] Feature: MainFeature; Installed: Absent; Request: Local; Action: Local
MSI (s) (18:50) [10.11:50:963] Feature: FEATUREA; Installed: Absent; Request: Null; Action: Null
MSI (s) (18:50) [10.11:50:963] Feature: FEATUREB; Installed: Absent; Request: Null; Action: Null
If I switch the "Install based on Condition" to "Installed by default" for one of the components the component gets installed correctly so it is just an issue with the condition.

Please could you help identify what I am doing incorrectly?

Best Regards

Buzz
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional Install of file with same name

Hi Buzz,

Can you please go in the Dialogs page and make sure that in the "Properties" pane, the "Property Name" text field of the control you use to let the user select an option is set to "ANSWER" and also the "Value" text field contain "Y" for the first option and "N" for the second option (in case you use a "Radio Button Group" control)? Otherwise can you tell us what controls you use for the selection and give us more details about how you try to achieve this?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”