I've created an NSIS installer that installs a certain program. 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?

I tried to abort it via CTRL+C as it works for other programs, too, but that didn't work.

有帮助吗?

解决方案

NSIS is not a console program so it is not going to respond to console keyboard shortcuts.

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...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top