sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Multi-installer using msi's

We have a system that requires different 'bits' of it to be installed on different servers.
We have installers for all of the 'bits', but would like one installer from which a user can specify which 'bit' to install, and, therefore, which installer to fire up.

We want to be able to work on each installer separately, and then just update the msi files for the 'Overall' installer.

Is there a better (more correct) way to do this rather than selecting a package from the SetupTypeDlg/CustomizeDlg, and having a Custom Action that runs at the end of the installer to install the applicable 'bits'?
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Multi-installer using msi's

This issue was initially with another. I have separated them so that the solutions could be clearer.

Reply to original post regarding this bit of the original issue(s):
We have a system that requires different 'bits' of it to be installed on different servers.
We have installers for all of the 'bits', but would like one installer from which a user can specify which 'bit' to install, and, therefore, which installer to fire up.

Is there a better (more correct) way to do this rather than selecting a package from the SetupTypeDlg/CustomizeDlg, and having a Custom Action that runs at the end of the installer to install the applicable 'bits'?
You can try using chained packages. Each chained package can be conditioned with a feature action so it will be installed only if the feature is installed.

Regards,
Cosmin
Last edited by sdm10101 on Mon Jul 13, 2009 2:56 pm, edited 1 time in total.
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Multi-installer using msi's

It seems to me that 'Chained Packages' requires all of the files to be in that installer.

What we'd like to do, is have an installer that will just 'fire' other installers when they are specified.

Can Chained Packages be used in this way? Or must we fire them ourselves at the end of the 'Overall' installer using custom actions?

(I hope I'm making this clear enough)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multi-installer using msi's

Hi,

Yes, the chained packages feature will include all the packages in the main installer. If you want to download and launch other installers based on features, currently the solution is to use custom actions. In a future version Advanced Installer will support this automatically.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Multi-installer using msi's

ok

Thanks
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Multi-installer using msi's

I'm still having problems with this.

What is the correct way to call msi's that should install when this installer has completed?

I thought it would be to use 'New Installed Custom Action' and point to the package and give it the correct condition (&SERVER_SOFTWARE = 3) on the 'Finish' button.

This gives an error.

I actually need to launch several msi's in succession, given the correct selection of packages (in case this changes the way to do this).

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multi-installer using msi's

Hi,

On the "Finish" button you can try using a DoAction control event which runs a BAT file (you can use a "Launch file or open URL" custom action). This is the only way to run multiple MSI installers one after another at the end of the install process. Note that instead of the BAT you can also use a custom EXE, DLL or any other Win32 custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Multi-installer using msi's

Thanks.

Do I need to put this (installing multiple msi's from one overall msi using CustomizeDlg) into the feature request forum, or will it suffice that it has been in here (or is it actually on the todo list already)?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multi-installer using msi's

Hi,

The improvement is already on our TODO list.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”