Ontrack16 Posted January 31, 2009 Posted January 31, 2009 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 ?
NerdFencer Posted January 31, 2009 Posted January 31, 2009 Use ControlSend to uncheck the restart box, or find silent install commands to run the installer with (They usually don't try to restart) _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell
cheatera Posted February 2, 2009 Posted February 2, 2009 (edited) 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 February 2, 2009 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now