How to use ComponentArgs

Jul 21, 2010 at 12:27 PM

Hi all,

I'm creating a bootstrapper that contains an MSI installer that may require multiple command line parameters, some of which may have values that contain spaces. How would I used the /ComponentArgs parameter within this situation, as I've tried quite a few different combinations, and can only seem to get one parameter to work at a time, and the value must not contain spaces otherwise the MSI doesn't launch.

Jul 22, 2010 at 1:08 PM
Edited Jul 22, 2010 at 1:11 PM

Specify multiple /ComponentArgs if you need multiple settings and quote both IDs and values if you need to.

/ComponentArgs componentA:value /ComponentArgs "mycomponent 1":"value 1"


If you're going to pass these on to MSI, then you need to make sure you quote the value with spaces itself. Try this (I am not sure it will work, try replacing " with ' as well):

/ComponentArgs componentA:"INSTALLLOCATION="c:\Program Files\My Program""