简体   繁体   English

我们如何访问传递给 Inno Setup 卸载程序的命令行开关?

[英]How do we access command line switches passed to an Inno Setup uninstaller?

Can Inno Setup handle this? Inno Setup 可以处理这个问题吗?

How do we access command line parameters/switches passed to an Inno Setup uninstaller?我们如何访问传递给 Inno Setup 卸载程序的命令行参数/开关?

I'm trying to make a conditional uninstaller in Innosetup that can conditionally leave behind files.我正在尝试在 Innosetup 中制作一个可以有条件地留下文件的条件卸载程序。 I'd like it to be silent, hence the command line switches.我希望它保持沉默,因此命令行切换。

You can use ParamStr and ParamCount functions.您可以使用ParamStrParamCount函数。

In case your command-line switch have a value, using {param:ParamName} pseudo-constant can be more convenient.如果您的命令行开关有值,使用{param:ParamName}伪常量会更方便。


For some examples, see some of more specific questions on Inno Setup custom command-line arguments:有关某些示例,请参阅有关 Inno Setup 自定义命令行参数的一些更具体的问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM