Page 1 of 1
Merge modules
Posted: Thu Nov 15, 2007 4:04 pm
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
Posted: Thu Nov 15, 2007 6:35 pm
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.
Posted: Fri Nov 16, 2007 2:27 am
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
Posted: Wed Nov 21, 2007 2:22 pm
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.