Merge modules

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

Merge modules

Post by Stephen Ibbs »

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:

Post by Alex_Ronquillo »

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

Post by Stephen Ibbs »

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:

Post by Alex_Ronquillo »

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/
Post Reply