Can I have some control over components from command line?

asked 05 Sep '11, 09:09

Jake's gravatar image

Jake ♦♦
796222226235
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

where

name1, name2,...

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

link

answered 05 Sep '11, 09:14

Jake's gravatar image

Jake ♦♦
796222226235
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.

Thanks.

(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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×48
×23
×13

Asked: 05 Sep '11, 09:09

Seen: 2,056 times

Last updated: 16 Sep '13, 08:05