Bac83 Posted March 29, 2011 Share Posted March 29, 2011 Hi Im coding a script that needs to wait for the Exe to finish before a msgbox pops up telling the user its complete and to move on, however when i run the following the msgbox pops up under the install as soon as the Java.exe is called, what i want to acheieve is for the msgbox to appear after the .exe has finished executing Many Thanks Run("\Apps\Java\jre-6u24-windows-i586-s.exe /s AgreeToLicense=YES IEXPLORER=1 REBOOT=Supress JAVAUPDATE=0") MsgBox(0, "Java", "Installation complete, move onto next application") Link to comment Share on other sites More sharing options...
NicePerson Posted March 29, 2011 Share Posted March 29, 2011 Use the following function! RunWait() Link to comment Share on other sites More sharing options...
dufran3 Posted March 29, 2011 Share Posted March 29, 2011 If RunWait() doesn't work, as I know from experience sometimes it doesn't you can always use a If ProcessExists() and wait for the installer process to close also. Link to comment Share on other sites More sharing options...
Bac83 Posted March 29, 2011 Author Share Posted March 29, 2011 Ahhhh so simple! Thanks! Link to comment Share on other sites More sharing options...
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