Currently, all the command-line options supported by a created installer are prefixed with two hyphens, e.g.:
Setup.exe --version

For compatibility reasons, it would be nice to make the installer also support command-line options which are prefixed by a leading forward slash, e.g.:
Setup.exe /version

Adding the "ignoreInvalidOptions" flag to my project doesn't help, passing options with a leading forward slash still causes an error.

Is there a way to accomplish that?


asked 31 Jan '13, 10:57

Dirk%20Stegemann's gravatar image

Dirk Stegemann
accept rate: 31%

Unfortunately it is currently not possible to change the prefix or specify acceptable prefixes.

I have added your suggestion to our bug tracking system to improve this behavior on Windows.


answered 01 Feb '13, 09:28

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

ok, If I may can I ask you how can I pass command line argument while executing the ".run" and read this value in installbuilder ?


answered 19 Dec '16, 06:39

deepak's gravatar image

accept rate: 0%

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: 31 Jan '13, 10:57

Seen: 2,704 times

Last updated: 19 Dec '16, 06:39