h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Allow user to select the installer exe/msi for a prerequisit

My requirement is like below.

1. Give two options to the user
a) Install SQLServer Express
b) Use existing SQLServer instance

When user choose (a) I will have to present the user with two more options
x) Download the SQL Express installer from internet and start installing
y) Install from local SQL Express installer file

I was able to achieve (x) by adding SQL Express as prerequisite where setup file would get downloaded from internet and then moving it under Feature-based.
Then designing a dialog with two radio control which will eventually give me the user selection (Download or local file).
Then from the Organization -> Installation Behavior of SQL Express set the condition to use the value form (x)

Now if user select (y), I need to allow the user to select a local msi/exe file and execute that msi/exe file.

How can I allow the user to select the file and execute it. Can anyone help me please. Thank you in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Allow user to select the installer exe/msi for a prerequisit

Hello and welcome to our forums,

To achieve (y) you can use our browse for file support. After the user selects the setup file from disk its path will be stored in the property associated with the edit path control (e.g. "MY_FILEPATH").

Then in order to launch the selected file you can just use "Launch file" custom action without sequence called on a button push. The "Launch file" custom action should be configured like this:
  • File to launch: [MY_FILEPATH]
Let us know if you have any questions or doubts.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Re: Allow user to select the installer exe/msi for a prerequisit

Really helpful. Thank you Daniel
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Allow user to select the installer exe/msi for a prerequisit

You're always welcome.

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

Return to “Building Installers”