Page 1 of 1

CMDLINE & COMPONENTS

Posted: Mon Mar 20, 2017 7:11 am
by mikKummerfeld
Hello Support,

in our current MSI package we have 4 components. How can I active/deactive each of them at silent installations using CMDLINE ?

E.g

component one
component two
component three
component four

I only want to install "component one" and "component three".

Heiko

Re: CMDLINE & COMPONENTS

Posted: Mon Mar 20, 2017 10:12 am
by FrancescoT
Dear Heiko,

this is quite simple.

At very beginning of the "Perform First Time or Maintenance Installation" code-region of your main script file, you may use the "Set Component State" command, to conditionally set the state of component based on the value of a custom script variable. Then the same variable can be passed from command line.

Hope this helps you.

Regards