2

Can Inno Setup handle this?

How do we access command line parameters/switches passed to an Inno Setup uninstaller?

I'm trying to make a conditional uninstaller in Innosetup that can conditionally leave behind files. I'd like it to be silent, hence the command line switches.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
101010
  • 14,866
  • 30
  • 95
  • 172

1 Answers1

1

You can use ParamStr and ParamCount functions.

In case your command-line switch have a value, using {param:ParamName} pseudo-constant can be more convenient.


For some examples, see some of more specific questions on Inno Setup custom command-line arguments:

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992