Page 1 of 1

Installing merge modules conditionally with light mode

Posted: Fri Apr 15, 2016 8:40 am
by jaspers
I need to install two sets of merge modules for different platforms conditionally,they are also dependent on specific feature selection. I tried wrapping the MSMs in a light install, but the light install is listed in add\remove programs and can be uninstalled independently. I need these merge modules (or in this case my light install wrapper around them) to be installed and uninstalled from my main install only and I should not be able to uninstall the light install by itself.

Here is what I tried: I added the MSMs to blank light installs that only sets variables present in one of the MSMs and then call Apply Install. I included two compiler variables (NOEXE=TRUE and ProductVersion that is passed from the main install)

Here is the Light Install Script:

Code: Select all

~InstallAware Clipboard Data~
~Apply Changes~
~{BCCFD9C3-BCA3-4AB9-8807-A496FC1BB4AC}~
~~
~SUCCESS~
~TRUE~
~FALSE~
~Set Variable~
~{A7CB129D-041E-49A9-819C-823F34B45687}~
~ODBXHOSTAPPGLOROOT$MYAH$MYAH$FALSE~
~Software\SNDWGImportCS\#ProductVersion#~
~Set Variable~
~{8C1920F2-1610-4C31-AFE4-7E037296B58F}~
~ODBXHOSTAPPREGROOT$MYAH$MYAH$FALSE~
~Software\SNDWGImportCS\#ProductVersion#~


I already looked at this
viewtopic.php?p=915
and
http://www.installaware.com/forums/view ... 28&start=0
(I used the sample rar file)

However, they produce independent light installs (meaning they can be uninstalled independent from the main product)

Re: Installing merge modules conditionally with light mode

Posted: Fri Apr 15, 2016 1:50 pm
by FrancescoT
Dear Jaspers,

those samples produce independent light installs of course.

Unfortunately you cannot use that approach if you want to keep the installations dependent from the main installer.
By the way, if your Merge Modules are used to install some runtimes, these should never be uninstalled from your main installer.
This because some other application may use them.

Regards

Re: Installing merge modules conditionally with light mode

Posted: Fri Apr 15, 2016 2:29 pm
by jaspers
Hello Francesco

This merge modules are installed to my application target folder and also has parameters that calling installers must configure, it is not a shared runtime.

Do you have any other suggestions about what I can do?

Jasper

Re: Installing merge modules conditionally with light mode

Posted: Mon Apr 18, 2016 8:28 am
by FrancescoT
Dear Jasper,

you may try to convert your MSM packages using the IA Import Wizard (...open the New Project window in the InstallAware IDE, choose MSI/MSM Import Wizard).

The Database Import Wizard opens a Windows Installer setup (MSI file) or merge module (MSM file) database. It inspects the contents of the database, extracts and/or copies files from inside the database and/or source media, and then emits a ready-to-build InstallAware setup, complete with a customizable script.

The MSM converter creates a MSI based setup project by default and due of this, it produces an independent install. If you want to generate an installer that will be not listed in ARP, you may modify the converted project as described with the following link. At any rate, you must also have to implement your custom method to uninstall such package. This because the approach described with the link doesn't install the package in reality (... it simply copies files on the target) and due of this, the default unistall process will be not available.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10517

Alternatively, you may integrate the scripts generated by the MSM converter into you main project.

Hope this helps you.