Jump to content

How do I detect to see if the setup.exe is running


Recommended Posts

How do I detect to see if the setup.exe is running? The setup.exe is a subprocess of the ntaskldr.exe. Code below doesn't detect it.

If ProcessExists("setup.exe") then
    MsgBox(0, "Running Program","setup.exe")
else
    MsgBox(0, "Not Running Program","setup.exe")
EndIf
Link to comment
Share on other sites

Process might not exist yet when you are checking for it, start the program and

ProcessWait("setup.exe")

then you can do a

while ProcessExists("setup.exe")

sleep ( 1000 )

wend

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...