Archive: How to suppress shutdown


How to suppress shutdown
Is it possible to suppress Windows from shutting down while the the installer is running?

Any ideas are welcome!

Thanks!


With a plug-in.


Thank you!!


Does anyone know how to solve the opposite of the problem discussed above? - to make NSIS close when windows tries to shutdown. As far as I can tell, NSIS seems to be shutdown-proof while it is running...


Remove WM_QUERYENDSESSION handling from Source\exehead\Ui.c and recompile. But why would you want to do that? File copying can be disrupted without this.


I see the disadvantage of closing NSIS installers when windows shuts down, but IMHO this message is something the application should adhere to.

IDEA: Mabey with a new option by default set to off, but if someone really wants to adhere to MS guidlines.

....ahh well, if one really needs this you are right, one has the sourcecode.


Thanks...

Explanation of why I want the computer to be able to shut down: I have a lot of NSIS programs that run in the background, organising the execution of other programs and communication between computers. Basically, a large proportion of the users of my programs have been confused by the way that the programs will not close when they want Windows to shut down, so I needed to somehow remove the shutdown-proof feature of NSIS.

If you want to know more, visit http://www.emptosoft.plus.com . (My website).