Jump to content
Sign in to follow this  
Ontrack16

How to prevent restart ?

Recommended Posts

Ontrack16

I use AutoIT mainly for running several installation programs one after the other.

Some of the installation programs have the "unpleasant" habit to ask user to reboot the computer.

Example : I make a program to run setup1.exe, then setup2.exe then ...

When setup1.exe is at its' end, it tell the user to reboot the computer.

Which the user does.

Result : Not everything is installed.

Not everything has been installed (setup2.exe, ...)

Currently I just show a message box at the beginning, telling the user not to reboot even when it's asked for.

But I am looking for something better.

I tried by "detecting" the dialog box that tells the user to reboot (with autoinfo) without success.

Is there a way to detect that windows is trying to reboot, and prevent it ?

Share this post


Link to post
Share on other sites
cheatera

http://www.autoitscript.com/forum/index.ph...ic=88800&hl=

edit: run("shutdown.exe -a") the -a parameter, aborts system shutdown, restart etc /edit

Edited by cheatera

Is There A Life BEFORE Death?im stupidSaved warn logs: cheateraSmOke_N Note Added 17 January 2009 - 02:54 PM Added to warn level Posting a way to hack the registry and force sending someones desktop via TCP. Jos Note Added 25 November 2008 - 02:52 PM Added to warn level for being an impolite rookie.once a year i go bad ... what will happen in 2010??[u]Its GOOD to be BAD ... (Warlock's Succubus - World of Warcraft)[/u]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×