Merge modules

Got a problem you cannot solve? Try here.
Stephen Ibbs
Posts: 36
Joined: Thu Oct 26, 2006 5:44 am

Merge modules

Postby Stephen Ibbs » Thu Nov 15, 2007 4:04 pm

I posted a question about conditionally installing an OCX file, but had no replies so am tackling the problem a different way.

If I include the merge module for MSCOMCT2 in my package, does it install every time, or does the logic within the merge module only install the file if it is NOT already on the user's machine?

Sincerely

Stephen

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Thu Nov 15, 2007 6:35 pm

Stephen,

It install everytime the installer is executed. If you want to make this conditionally, here is my suggestion:

1.- Create an installer containing only the merge module you want to install conditionally.
2.- In a main installer create your condition, if true call the installer with the merge module.

That would be a good way to do it.
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Stephen Ibbs
Posts: 36
Joined: Thu Oct 26, 2006 5:44 am

Postby Stephen Ibbs » Fri Nov 16, 2007 2:27 am

Thank you Alejandro - that makes sense.

I have not tried this before. I know how to test for the presence of the file, and I know how to create the separate installer. Could you further help by answering these two questions:

What is the line of code to run the second installer?
Where would be a good place to put this line?

Many thanks

Stephen

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Wed Nov 21, 2007 2:22 pm

What is the line of code to run the second installer?

Run Program setup.exe /s

Where would be a good place to put this line?

At the begining, at the "Check/Install Application Pre-Requisites" code region, after checking for the precense of the merge modules and inside the proper condition.
Alejandro Ronquillo

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 108 guests