Can I add the same merge module to a setup twice? - Advanced Installer Community
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Can I add the same merge module to a setup twice?

I am using Advanced Installer 11.2.1.
I have created a simple merge module that delivers a few files to the Target computer/application folder.
I would like to deliver those same files to 2 different locations on the target computer, e.g. to the APPDIR folder, and also to a subfolder of APPDIR.
I can add the merge module once, and it will deliver the files as specified to one of those locations when I build and run my setup project.
But I cannot add the same merge module again to my setup project.
Is this possible?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Can I add the same merge module to a setup twice?

Hi

Merging a merge module in the main package includes getting the contents from the tables of the merge module and including it in
the tables of the main package. If you try to do this twice duplicate entries will start appearing, so this is not supported.

Why don't simply try to add the files two times in the merge module, once in APPDIR, and one more time in the sub-folder?
Also, you can set a condition on the components of the second set of files, and from the main installer control the property that is set
as a condition, to specify if the second set of files should be installed or not.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Re: Can I add the same merge module to a setup twice?

Thanks.
I had wanted to avoid modifying the merge module if possible, since it is used by several different setups, but only this particular setup requires the files in it installing into 2 different locations.
But since adding the merge module twice is impossible, I'll have to consider what alternative approach will be best for us. Thanks for your advice.

Return to “Common Problems”