在 NSIS 脚本中使用命令行参数实现依赖性检查
我的目标是知道您是否使用任何检查或代码片段来确定在使用静默安装( /S param )将 NSIS 命令行参数传递到编译设置时是否存在某些依赖性。
NSIS 示例: http://nsis.sourceforge.net/Get_command_line_parameter_by_name
例如,如果我有三个参数:Setup.exe /S param1="" param2="" param3=""
如何检查以下secanrio:
${if} <Param1 is passed to Setup.exe>
<Param2 must ALSO be passed to Setup.exe>
${else}
<Error message notifiing that Param1 is present, but dependent Param2 param is missing in CMD parameters>
谢谢!
我真的希望你至少能分享代码片段......如果不是完整的功能代码。
My goal is to know if you use any check or code snipp to determine if ther is some dependecy when passing NSIS command line params to copiled setup using Silent installation ( /S param ).
The NSIS sample: http://nsis.sourceforge.net/Get_command_line_parameter_by_name
For example, If I have three params: Setup.exe /S param1="" param2="" param3=""
How to check the following secanrio:
${if} <Param1 is passed to Setup.exe>
<Param2 must ALSO be passed to Setup.exe>
${else}
<Error message notifiing that Param1 is present, but dependent Param2 param is missing in CMD parameters>
Thank you!
I really hope you will share at least code snipp ... if not whole functional code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)