How I can create a batch file to silent install an MSI program without 1 component?

2

1

How can one create a batch file to silently install an MSI program without 1 component?

MaestroIT

Posted 2012-10-09T16:15:53.823

Reputation: 39

Answers

2

Assuming you know what all the component options are, you can do the following:

msiexec /i [msi filename] /qb COMPADDLOCAL=LIST,OF,COMPONENTS,TO,INSTALL

The annoying thing about this method is that you have to find our the names for each and every component that you want to have installed, rather than just the one component you want to not install. This is doable, but can be a pain. You can use Orca.exe to help find out what all of the component and feature IDs are.

See KB230781 for more info.

nhinkle

Posted 2012-10-09T16:15:53.823

Reputation: 35 057

Thanks lots nhinkle, this means that I'll have to list all my components to where you wrote COMPONENTS, and separate them one by one by comma? – MaestroIT – 2012-10-09T18:35:26.273

@JPEmedi that is correct. – nhinkle – 2012-10-09T21:41:49.630