"ByB" <this_is_not@a_valid.mail> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> Is there a value to be set somewhere in the registry and making Windows
> ask the user (or warn the user) before rebooting ?
>
> As a matter of fact, I am creating an install file for a software, and
> sometimes after the installation, Windows reboots without any warning
There is a program called Shudown Stopper that will accomplish what you want
though it is slightly more awkward. When you run it, it sits in your tray,
and blocks ALL shutdown attempts. To allow shutdown, you can right click and
exit the program or left click and select "Allow Shutdown." I use it
sometimes when installing hotfixes, etc. because they can create a race
condition between the last script they run and the shutdown, leading to the
message "this program cannot be initialized because the system is shutting
down.
See
http://www.snapfiles.com/get/shutdownstop.html.
--
Jim
"Be right back... Godot"