简体   繁体   English

中止NSIS静默安装程序

[英]Abort NSIS silent installer

I've created an NSIS installer that installs a certain program. 我已经创建了一个安装某个程序的NSIS安装程序。 Everything works fine but I wonder if it is possible to abort the installation when it runs in silent mode. 一切正常,但我想知道在静默模式下运行时是否可以中止安装。

So is there a way to abort an installation when I install an NSIS installer via the command line with this command: installer.exe /S /D=Path/To/Directory ? 当使用此命令通过命令行安装NSIS安装程序时,有没有办法中止安装: installer.exe /S /D=Path/To/Directory

I tried to abort it via CTRL + C as it works for other programs, too, but that didn't work. 我试图通过CTRL + C中止它,因为它也适用于其他程序,但这不起作用。

NSIS is not a console program so it is not going to respond to console keyboard shortcuts. NSIS不是控制台程序,因此它不会响应控制台键盘快捷方式。

Even if you could trick it into behaving like a console program when started silent it is not going to work in a stable manner because CTRL + C will just kill the process unless the program has added extra code to handle the aborting events... 即使你可以在开始静默时欺骗它就像控制台程序一样,但它不会以稳定的方式工作,因为除非程序添加额外的代码来处理中止事件,否则CTRL + C将会终止进程...

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

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