We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

scottboyte
Posts: 4
Joined: Wed Jan 13, 2016 6:28 pm

How do you set the [APPDIR] based on the feature selection?

I have setup 4 different features

1. App Server
2. Web Server
3. Print Server
4. Client Install

Using the OptionalFeatsDlg dialog, how can I change the [APPDIR] property based on the user's selection? I have created 4 properties for each install type that contain the typical install paths but I cannot figure out how to push the values to the [APPDIR] property based on the selection.


EDIT
------------------------------------------

I may have found another way to do this but I am still having issues getting it working. I have created a custom dialog that uses a RadioButtonGroup and radio buttons. On the "Next" button I have setup a new published event

Event (Property) Argument Condition
[INSTALLDIR] [WebDir] RADIOBUTTONGROUP_1_PROP = "WEB"

This does not seem to update the [INSTALLDIR] property which I am using on the next dialog which is assigned to the text field next to the browse button.

What am I doing wrong?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How do you set the [APPDIR] based on the feature selection?

Hi and welcome to Advanced Installer forums.
Event (Property) Argument Condition
[INSTALLDIR] [WebDir] RADIOBUTTONGROUP_1_PROP = "WEB"

This does not seem to update the [INSTALLDIR] property which I am using on the next dialog which is assigned to the text field next to the browse button.

What am I doing wrong?
The [INSTALLDIR] property might not be updated on the next dialog if the [WebDir] property is not set when it is assigned to the [INSTALLDIR] property on the "Next" button. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scottboyte
Posts: 4
Joined: Wed Jan 13, 2016 6:28 pm

Re: How do you set the [APPDIR] based on the feature selection?

Eusebiu,

Thanks for the reply. I found out that I could just assign the property value to [APPDIR] which is being used by the Folder Dialog. This is now working.

Thanks,

Scott
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How do you set the [APPDIR] based on the feature selection?

You're welcome Scott. I'm glad you got this working.

Just let us know anytime you need help.

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

Return to “Building Installers”