1

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
  • 167,268
  • 50
  • 405
  • 846
101010
  • 13,695
  • 26
  • 85
  • 162

1 Answers1

0

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
  • 167,268
  • 50
  • 405
  • 846