Executing the msi files based on feature selection - Advanced Installer Community
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Executing the msi files based on feature selection

Hi Support,

We want to execute a multiple msi files one by one using vbscript based on the feature selection. Could you please suggest steps to implement this requirement from the advanced installer.

Its urgent, please provide your suggestions at the earliest.

Regards
Sony
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Executing the msi files based on feature selection

Hi Support,

Updates Please?

Regards
Sony
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Executing the msi files based on feature selection

Hi Sony,

I'm not sure I fully understand your scenario.
If you want to merge multiple installers into a single one, and install them based on the user choice, then you can take a look on the Merging multiple installers and Install 5 programs in sequence ? forum threads which debates similar subject.

If this is not your case, please give me more details about your specific scenario (maybe exemplify).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Executing the msi files based on feature selection

Hi Dan,

Your suggestion doesn't fulfill our requirement.

We want to execute a .msi file based on the feature state selected in the feature dialog but not from the prerequisite phase. We are trying to achieve it by using a vbscript. Attached the vbscript for reference.

Getting an error while executing the script from advanced installer 9.8. Could you please review and let me if am doing it right way or please provide the alternate suggestion.

Regards
Sony
Attachments
featureExecution.txt
(1.07 KiB) Downloaded 287 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Executing the msi files based on feature selection

Hi Sony,

Please note that this is not the recommended approach since you are waiting predefined time upon the additional installation packages to be installed. Here are some scenario which you may encounter:
  • 1) the time is greater than the install time of the additional installation package. That means the user will have to wait until the time passed in order to proceed further with the other installation package.
    2) the time is smaller than the install time of the additional installation package. You will get an install error since Windows Installer allows only one MSI-based installation to run at any given time. Therefore, if you launch another MSI package while an MSI installation is in progress, you will see this message: another installation is in progress....
The best approach is to add the related installation packages as a prerequisites in the prerequisites page. You can take a look on the add prerequisite article which may be useful to you.
If you want to give the user the possibility to choose that prerequisites to install, you can go in the Dialogs page and add the PrerequisitesDlg from the Add Dialog list.
The PrerequisitesDlg uses the Prerequisites Selector to displays the state of feature-based prerequisites and allows the user to choose which one to be installed.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”