Share this post

Link to post

Share on other sites

martin 72

martin 72

How can i find out if windows needs to be restarted ? For example Nero knows that this must be done and alerts me. How can i do that in autoit ? It s a value from registry ?

I would expect that when a program makes some changes, or installs some software which only starts working correctly when Windows restarts, then that program will say that Windows needs to be restarted. I wouldn't expect that there is a way one program would know that another needed Windows to restart, unless you could detect that a more recent version of the kernel had been installed but was not running. I might be wrong of course.

Share this post

Link to post

Share on other sites

martin 72

martin 72

when the autoit script is runned at the end of the script make a reg key or make a file

in the beginning of the script check if the regkey/file exsist if fileexsist "" then exit

or if the file already exsist then its runned one time

in the beginning

if fileexsist run1.txt then

msgbox pc is restarted one time

if fileexsist run2.txt then

msgbox pc is restarted 2 times

like that etc etc further do you understand ?

No.

at the end of the script do

if fileexsist run1.txt then

msgbox pc is restarted one time

filewrite run2.txt

Maybe you are talking about RunOnce which is a registry entry for programs to be run when Windows starts, and once started Windows deletes the registry entry so it isn't run again next time Windows starts.