NSIS 注销(LogOff)、重启(Reboot)、关机(ShutDown)插件。
The Functions:
ShutDown::LogOff ;注销
ShutDown::PowerOff ;关机
ShutDown::Reboot ;重启
ShutDown::ShutDown ;关机
Switches (Parameters):
/FORCE
Uses EWX_FORCE to close all Windows applications (including
NSIS). This is not the prefered way to do it as the
user will not be able to cancel the shutdown if they have
unsaved work for example.
Example:
ShutDown::PowerOff /FORCE
/NOSAFE
As default, the shutdown process is cancelled if NSIS cannot
be successfully closed (with DestroyWindow). This can occur
when calling the plugin from within a Section (as the close
buttons are disabled at that time).
By using /NOSAFE, the shutdown process will ignore the fact
that your installer could not be closed, and you can use
the NSIS Quit command directly after calling the plugin.
Note that this may not work on faster machines or when not
many processes are running.
Example:
ShutDown::PowerOff /NOSAFE
Quit
下载地址:ShutDown.zip