aldebaran
Posts: 23
Joined: Wed Dec 05, 2007 4:04 pm
Location: Hannover, Germany
Contact: Website

Install Feature depending on MSI command line

We want to install certain files only if the user used a special msi command line parameter. This is about files needed for automated tests of the software which normal users will never need. There should be no mention of these in the ui.

How could this be done?

Thanks for a hint,
Moritz
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install Feature depending on MSI command line

Hi Moritz,

Please note that a MSI package supports only the msiexec command line parameters. However, what you need can be done by using a custom public property:
- in the Organization page condition the components you don't want installed with a custom property (for example AUTOMATED = "True")
- when launching the MSI use a command line which looks like this:

Code: Select all

msiexec /i "C:\myPackage.msi" AUTOMATED = "True"
where you replace "C:\myPackage.msi" with the path to your installation package.

This way, the components which use the "AUTOMATED" property in their install condition will be installed only if this property is set to "True".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”