lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Download prerequisites based on condition...

I have added 2 web download prerequisites (SQL Server 2008 Express 32 and 64bit) to my installer. My installer has an option to the user if they want to install either "Evaluation" or "Licensed" versions of my software. If the user selects the "Evaluation" version then SQL Server 2008 Express is installed on their machine, whereas "Licensed" version does not install SQL Server 2008 Express, this works fine. The problem is that the installer always downloads the SQL Server 2008 Express prerequisite regardless of the install version they select. What I want is for SQL Server 2008 Express to only be downloaded if they are installing the "Evaluation" version of my software as this is the only version that needs the prerequisite.

A installer property called "InstallType" has either a value of "Evaluation" or "Licensed" depending on the option selected. Is there a way that I can use the "InstallType" property to control if the prerequisite is downloaded or not, if so how would I do this.

Thanks for your help.

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

Re: Download prerequisites based on condition...

Hi Simon,

Which folder is your prerequisite added in (pre-install, feature-based, post-install)? For the "pre-install" prerequisites you cannot use a property as a condition, but it can be used for a "feature-based" or "post-install" prerequisite.

To achieve this, you can go in the Organization page, select the feature related to the prerequisite, click on the "Add install-time conditions" blue link and set the appropriate condition for it.

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
lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Re: Download prerequisites based on condition...

Eusebiu,

Thank you for getting back to me. I have tried to follow your instructions, but cannot locate the "Add install-time conditions" link that you mention. Please find attached screen shot of the "Organization" page.

Thanks

Simon
Attachments
AdvancedInstaller.png
AdvancedInstaller.png (204.01 KiB) Viewed 17278 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download prerequisites based on condition...

Hi,

To find that link, you should select the "SQL Server 2008 Express R2 SP2" feature, not its component. Also, you should consider the limitations of adding this prerequisite as "feature-based" which are described in the How to install SQL Server Express with your application article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Re: Download prerequisites based on condition...

Eusebiu,

Thank you for the information, I will read up on this.

However the solution that you have given me adds a condition that controls the installation of SQL Server Express 2008, whereas I want to control when the SQL Server 2008 Express installer is downloaded. e.g. if the user selects "Evaluation" version then SQL Server is downloaded, however if the users selects "Licensed" version then SQL Server is not downloaded.

Unless I have misunderstood something

Thanks

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

Re: Download prerequisites based on condition...

Hi Simon,

Yes, that condition controls when the prerequisite will be installed, but if a prerequisite will not be installed, then it will not be downloaded, too.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Re: Download prerequisites based on condition...

Understood, however in the "Install Conditions" for the SQL Server prerequisite I have the "Always install prerequisite" option, as it does not allow you to only install if an installer property is set to a value, it only seems to look for registry options.

I have attached my project for you to see.

Not to sure how to accomplish what I require.

Thanks

Simon
Attachments
ReviewInsight.aip
(187.45 KiB) Downloaded 551 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download prerequisites based on condition...

Hi Simon,

Your configurations regarding the SQL prerequisites are correct. Even if the "Always install prerequisite" option is selected, the prerequisite will not be installed, nor downloaded if the condition from the Organization page is False.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Re: Download prerequisites based on condition...

Eusebiu,

Attached is what I have currently set for the SQL Server on the "Organization" page, however it still downloads if the user select the "Licensed" option i.e. RADIOBUTTONGROUP_1_PROP = "Licensed"

Any ideas

Simon
Attachments
16-09-2014 15-20-58.png
16-09-2014 15-20-58.png (215.78 KiB) Viewed 17257 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download prerequisites based on condition...

I tested the AIP file that you attached to this thread, on my machine and it worked correctly, the prerequisite was not downloaded when the "Licensed" option was chosen.

Can you reproduce the problem on multiple clean machines? If so, can you send us a link to download your package build using that AIP, to support at advancedinstaller dot com, so we can test it and try to reproduce the problem?

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

Return to “Building Installers”