Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Prerequisites for Merge Modules

Hello,

in my AI-project the user needs to be able to choose between using an existing SQL-Server Instance or installing a new one.
The install-action is supposed to be inside a merge module.

Is there a way to set something like prerequisites for merge modules? Or can i somehow execute a msi-file inside a merge module?
I'm using AI 10.8.

Regards

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

Re: Prerequisites for Merge Modules

Hello Lena,
Is there a way to set something like prerequisites for merge modules?
I'm afraid that a prerequisite cannot be added in a merge module. However, you can add that prerequisite in the main package, the package that will contain the merge module. You can add it as "pre-install" or "feature-based" prerequisite and in this case, the prerequisite will be installed before the installation of the "SQL-Server Instance" that is inside the merge module.
Or can i somehow execute a msi-file inside a merge module?
You can launch a MSI file inside a merge module by using, for example, a "Launch File" custom action. However, please keep in mind that two MSI packages cannot run at the same time, so, in this case, a conflict may appear between the MSI package launched by the merge module and the main MSI package that will contain the merge module.

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
Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Re: Prerequisites for Merge Modules

Hello Eusebiu,


unfortunately i already tried the Launch exe custom action, which doesn't work.
I need to install SQL-Server Express Edition based on a user selection.
The selection is inside the main-project and the Installation is supposed to be inside the merge module.
Is there any way to do this?

Regards

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

Re: Prerequisites for Merge Modules

Hi Lena,

Please keep in mind that all the files and configurations from a merge module are integrated and installed with the main package, the merge module is not installed separately.

So, even if you would be able to add a prerequisite in a merge module, that prerequisite will still be installed by the main package. However, I'm afraid that a prerequisite cannot be added in a merge module, so you can add it in the main package and it will be installed just as you need.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Re: Prerequisites for Merge Modules

Hello Eusebiu,

the problem is, i need to start the sql-installation later, not when the prerequisite are installed.
If i can't do this in a merge module can i do it in the main-installation? If so, how?



Regards

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

Re: Prerequisites for Merge Modules

Hi Lena,

Depending on the time you want the SQL installation to start, you can add it in one of the "Pre-install", "Feature-based" or "Post-install" folders from the Prerequisites page.

So, if you want to install your prerequisites later, after the installation of the main package, you can add it as a "post-install" prerequisite.

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

Return to “Common Problems”