Jump to content

how to force RunOnceEx to wait?


Recommended Posts

hey, i'm calling a Setup.exe file to begin an silent Adobe Production Studio installation and it works perfectly, except right after Windows executes the setup.exe file and it call it's .msi children, Windows starts the next item in the RunOnceEx list without wait setup.exe complete it's task

the major problem about it is that Production Studio needs a lot of time to complete it's full install, so while it's running, others .msi based installation are not allowed to run

it there anyway to solve this?

maybe something like

"if setup.exe == running





goto next_item

Link to comment
Share on other sites

i guess that "setup.exe" is a self extracting exe right?

when the "setup.exe" is finishing extracting , the process "setup.exe" does not exists

and runonce continue to the next program

to make it wait you could make a litlle autoit script to run after setup.exe

and right this :


save this as "wait.au3"

then comiple this as "wait.exe" and add it in the batch file right after the setup.exe :

start /wait %systemdrive%\install\wait.exe

this script will not stop untill the given process finish

so ruonce will not continue to the next before this one finishes

i thing its better from sleep cause you dont know how much time to add

i have done this and its working very nice

try it and you'll be ok

Edited by InViSibLe Gr
Link to comment
Share on other sites

ScubaSteve > thanks, the problem now is I'm using XPlode to the RunOnce processes and, for some reason, sleep.exe don't seem to be working...

InViSibLe Gr > setup.exe isn't self extracting so its process keeps running until all Production Studio softwares are being installed, that's why I don't understand exactly whats going now...

I'll try to see the %temp% folder to see if setup.exe launches another setup.exe file or something

Link to comment
Share on other sites

the "sleep method" is working perfectly now, the problem I had with it was Windows "waking up" too early, so I had to increase the sleep time to 45 minutes (yes, Adobe Production Studio Premium takes a lot of time to install everything)

so, tks again :)

Link to comment
Share on other sites

You can solve it easily like you describe in your first post using AutoIt to run setup and wait for both processes to close before proceeding.

See autoit script collection and how I did this with Nero

Edited by BoardBabe
Link to comment
Share on other sites

  • 2 months later...

BoardBabe, I found your entry in the AutoIt script collection but could not find an attached Nero file. Would you point me to it or post it as I continue to have a need to pause installation awaiting the completion of a setup.exe command with a number of embedded msi files. thx

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
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...