RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Selection Tree Doubt

I need an option to disable the selection tree when TestODBCConnection is true. How to proceed in this situation?

This message was translated with Google Translator :D
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Selection Tree Doubt

Hi and welcome to Advanced Installer forums.

In order to achieve this you can go in the Dialogs page, select the "Selection Tree" control and from the "Control Condition" tab add a new condition like below:
  • Condition: SqlConnectionOK = "1"
    Action: Disable
Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Selection Tree Doubt

Eusebiu wrote:Hi and welcome to Advanced Installer forums.

In order to achieve this you can go in the Dialogs page, select the "Selection Tree" control and from the "Control Condition" tab add a new condition like below:
  • Condition: SqlConnectionOK = "1"
    Action: Disable
Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
___________________________________________________________________________________
Hello Eusebiu!

This option is on your part to my solution!

What I really need is to disable one of the options and not all the Selection Tree.
How would: Have a SQL Server Express Setup on my project and advanced instaler sql script to create the database.
The script is rodade in a specific instance, ex: localhost\PROJECT.
If this instance already exists, it let the script run normally and dasabilita sql express. If the instance does not exist, it forces the user to install SQL Express on the machine.
Attachments
Projeto!
Projeto!
Capturar.PNG (10.13 KiB) Viewed 4681 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Selection Tree Doubt

Hi,

Can you please tell me if the "SQL Server" application is added as a "feature-based" prerequisite in the Prerequisite page? If so, can you also tell which version of "SQL Server" is that?

I am asking for these details because the approach may differ depending on the way the "SQL Server" is added in your application and also, starting with "SQL Server 2008 R2 SP1" it cannot be added as a "feature-based" prerequisite. You can take a look on the Installing SQL 2012 Based On A Feature thread for more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Selection Tree Doubt

Eusebiu wrote:Hi,

Can you please tell me if the "SQL Server" application is added as a "feature-based" prerequisite in the Prerequisite page? If so, can you also tell which version of "SQL Server" is that?

I am asking for these details because the approach may differ depending on the way the "SQL Server" is added in your application and also, starting with "SQL Server 2008 R2 SP1" it cannot be added as a "feature-based" prerequisite. You can take a look on the Installing SQL 2012 Based On A Feature thread for more details.

Best regards,
Eusebiu
Hi, yes. The Sql is added as a prerequisite, the SQL I'm using is SQL Server Express 2008 R2. Looking at the post for the SQL 2012, I could not find a solution to my problem.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Selection Tree Doubt

Hi,

Sorry for the delayed reply.

In order to achieve what you want you can create your own custom feature selection dialog as described in the Use checkboxes to select which features will be installed article, then use the SqlConnectionOK = "1" condition to enable/disable the checkbox related to the SQL feature.

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”