Stécy
Stécy

Reputation: 12339

What is the proper way to use the same merge module in an MSI multiple times?

I am creating a windows installer script and I have two features to be installed in their own folder.

I want to execute a merge module to BOTH of these folders. However, Windows Installer only allow a single copy of the merge module so I can only install it for one the application folder.

Is it possible to do this and if not, is there a workaround?

Thanks!

Upvotes: 0

Views: 742

Answers (2)

Alexey Ivanov
Alexey Ivanov

Reputation: 11838

Merge module can't be imported into a single MSI twice.

A better approach is to install the merge module components into one shared folder, and both your components will use it from there.

Another option is to add CopyFile elements and copy everything the merge module installs into the folder of your 2nd component. Yet I'd suggest using shared folder. Why do you need to duplicate files? Later, after an update, the versions of the shared component could become different which can lead you to trouble.

Upvotes: 1

Stein Åsmul
Stein Åsmul

Reputation: 42136

Merge modules are troublesome, better to use prerequisites delivered as separate MSI files. What merge module are you referring to?

Upvotes: 1

Related Questions