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!

ledanganh
Posts: 2
Joined: Tue Oct 30, 2012 3:10 am

Set options when building installers.

Dear all,

When building installers, I have a requirement to customize my installer following:

- Building a userface to when run installer will have three options for selection:

+ Select the first option: the first program will be set up.
+ Select the second option: the second program will be set up.
+ Select the last option: two programs will be set up automatically.

Please reccomend me a way to do this.

Thank you very much for help.
Regards,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Set options when building installers.

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add the related programs components in separate feature, from "Organization" page, and then you can condition the related feature installation. Please take a look on our "Show a custom feature selection dialog" article.

Let us know if this helps, otherwise please give us more details about this scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ledanganh
Posts: 2
Joined: Tue Oct 30, 2012 3:10 am

Re: Set options when building installers.

Hi,

Thank you for your support.

When I devide the folders and files into each feature, I want option: "All programs" call again 2 features above without adding any another folders or files. Please reccomend me a way to do this.

Cheers,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Set options when building installers.

Hello,

In order to achieve this you can proceed like this:
- Go to "Dialogs" page and add a new dialog containing a radio button group with three radio button controls.
- Select the radio button group and set the "Property Name" field, from "Properties" right pane, to MY_PROP.
- Select the first radio button and set the "Value" field, from "Properties" right pane, to 1 and "Text" field to Feature1.
- Select the second radio button and set the "Value" field, from "Properties" right pane, to 2 and "Text" field to Feature2.
- Select the third radio button and set the "Value" field, from "Properties" right pane, to all and "Text" field to ALL.
- Go to "Organization" page, select the first feature and in the "Condition" field, from "Feature Properties" right pane, add the following condition:

Code: Select all

((MY_PROP = "1") OR (MY_PROP = "all"))
- Select the second feature and in the "Condition" field, from "Feature Properties" right pane, add the following condition:

Code: Select all

((MY_PROP = "2") OR (MY_PROP = "all"))
- Build and run your project.

Also, here's attached a sample, created with version 9.6.1 of Advanced Installer, which implements a similar scenario.
sample.zip
(3.28 KiB) Downloaded 346 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”