Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

share|improve this answer
    
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 Oct 9 '12 at 18:35
    
@JPEmedi that is correct. –  nhinkle Oct 9 '12 at 21:41
    
Thanks lots nhinkle –  MaestroIT Oct 10 '12 at 13:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.