Help - Search - Members - Calendar
Full Version: how to force RunOnceEx to wait?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Orsi
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
{
wait
}
else
goto next_item
Scubar
RunOnce should really wait on its own before calling the next setup. you can try using sleep.exe or just pinging an unobtainable ip with a timeout of a certain amount of time.
InViSibLe Gr
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 :
CODE
ProcessWait("setup.msi")
ProcessWaitClose("setup.msi")
Exit

save this as "wait.au3"

then comiple this as "wait.exe" and add it in the batch file right after the setup.exe :
CODE
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
Orsi
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
InViSibLe Gr
you can run the taskmanager before starting setup.exe and see whats going on
if another process is launching after setup.exe you can make it with my way very easy
add the process name inside the (" ") and runonce will wait
Orsi
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 smile.gif
BoardBabe
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 7.0.8.2.
bigfatroundguy
BoardBabe, I found your entry in the AutoIt script collection but could not find an attached Nero 7.8.8.2 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
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.