Can I have some control over components from command line?

asked 05 Sep '11, 09:09

Jake's gravatar image

Jake ♦♦
accept rate: 98%

You can enable/disable components from the command line using the following options:

--enable-components name1,name2,name3
--disable-components name1,name2,name3


name1, name2,...

are the names inside the <name> tag of components. Component names are case sensitive.


answered 05 Sep '11, 09:14

Jake's gravatar image

Jake ♦♦
accept rate: 98%

I have two components named C1 and C2 in my installer named demo_installer. What should be the command if want to install C1 only. What should be the command if I want to remove component C1 only using uninstall.exe.


(12 Sep '13, 10:00) SuryaSingh

To Install only C1, you should execute:

installer.exe --enable-components C1 --disable-components C2

And to uninstall only C1 (only if your project includes <allowAddRemoveComponents>1</allowAddRemoveComponents>):

uninstaller.exe  --disable-components C1
(16 Sep '13, 08:05) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 05 Sep '11, 09:09

Seen: 2,108 times

Last updated: 16 Sep '13, 08:05