Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Installing exes and MSI's

Hi, hopefully someone can help me.

I have a project where I need to install some 3rd party applications, these are 2 MSI files and 1 exe. I currently have them as pre-requisites but what I really want is to be able to have an option in one of my dialog boxes which allows the user to select the item, then the 3rd party installer runs, this needs to be done before my project runs and completes.

It can be a radio button, check box or whatever but I must have the option of selecting either 0,1, 2 or 3 of these apps.

Hopefully this makes sense
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installing exes and MSI's

Hi,

You can make the prerequisites feature-based and add the "PrerequisitesDlg" dialog in the "Dialogs" page. This way the installation will show a prerequisite selection dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Re: Installing exes and MSI's

Thanks for your reply, I found this on the site but when I look to edit my pre-requisites, the options tab doesn't include the feature-based part, I've attached a screenshot.
Attachments
prereq.JPG
prereq.JPG (36.39 KiB) Viewed 6948 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing exes and MSI's

Hello,

The feature-based prerequisites functionality has been introduced in version 7.3 of Advanced Installer.
You can try creating some dummy features and depending on whether or not they are selected for install, run some UI Custom actions that launch your installers.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Re: Installing exes and MSI's

Hi, thanks for your advice.

I've used custom actions for other things but I'm unsure how to run a custom action depending on whether a feature is selected for install. If you could offer some advice or direct me to an article which explains this that would be great.

Thanks
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installing exes and MSI's

Hi,

All you have to do is to condition the feature using the feature's identifier, like this:

Code: Select all

((&MainFeature = 3) AND NOT (!MainFeature = 3))
This is for a feature which has the identifier set to "MainFeature" and it is tested if the feature will be installed and that it is not re-installed (it wasn't already on the machine).

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Re: Installing exes and MSI's

brilliant, I've finally got it working, thanks, the trouble is it only runs exe's and not MSI's, is there a setting somewhere that will allow this.

Thanks again
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installing exes and MSI's

Hi,

A MSI requires a specific command line to be installed, it is not launched as a simple EXE file, here are more details.

You can try using the custom action "Launch File or Open URL" to launch the MSI with the desired command line options.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Re: Installing exes and MSI's

Thanks works a treat

Return to “Common Problems”