Search code examples
windowswindows-installerinstallationadvanced-installer

Chained Packages in Advanced Installer


I am trying to launch another MSI while installing a first one. I found out about the chained packages. I followed this tuto, everything works great but I'd like to go further in the settings.

My final goal is to avoid, for the secondary installer, the install folder selection, and automatically install the files in the same folder as the principal MSI.

Is it possible ? If not, what could I do to reach my purpose ?

Any help would be greatful.


Solution

  • The main MSI install folder property is APPDIR. To achieve what you want you can set the install folder property of the chained MSI to the APPDIR property value. This can be done by setting the Properties field like this:

    CHAINED_INSTALL_DIR_PROP = "[APPDIR]"
    

    Also the chained package could be configured to install without full UI so the user cannot select the install folder.