Jump to content

is it possible to make runonceex wait until install completed


Recommended Posts


they do wait for each other to finish!

are you running into any problems? some call other things before finishing up and may still be using the files for a few seconds..

you can use sleep.exe to overcome any problems like this..

google for it :)

also, welcome to the forums

Link to comment
Share on other sites

  • 3 weeks later...

Thanks for your replies

Sorry i have been out of action for a few weeks

and thanks for the welcome

the sleep.exe that is mentioned, is this a internal command? that i can use?

can you please tell me more about it?

also can you give me a bit more info on this bit of help

cmd /c "PathToFile\file.cmd"

is this a line to add to my code to solve the problem?

thanks again

:D

Link to comment
Share on other sites

the sleep.exe that is mentioned, is this a internal command? that i can use?

can you please tell me more about it?

You have to down load that and add it to XP, the ping cmd is built in.

Change this color for the amount of time to pause the script

The below is set for a 3 second pause.

ping -n 3 127.0.0.1>nul

These will start and wait for the to finish.

start /wait "PathToFile\file.cmd"

start /w "PathToFile\file.cmd"

Link to comment
Share on other sites

can any one tell me

can you make runonceex batchfile wait until one installation is complete before progressing to the next installation

thanks for any help or pointers

uhm, i'm sorry I thought the answer to your question was simple but then I read the reacts :blink:

I'm still gonna give the simple answer:

after every line that runs a setup in RunOnceEx, you place /f. this /f means it will first finish the command before proceeding to the next one.

no need for sleep.exe or ping trics.

Edited by ZileXa
Link to comment
Share on other sites

uhm, i'm sorry I thought the answer to your question was simple but then I read the reacts :blink:

I'm still gonna give the simple answer:

after every line that runs a setup in RunOnceEx, you place /f. this /f means it will first finish the command before proceeding to the next one.

no need for sleep.exe or ping trics.

You're right, the answer is really simple, as bledd gave it in the first answer:

they do wait for each other to finish!

But you're wrong with the /f.

Use /? on the REG command and you'll have the right meaning of that switch.

Now gratz, if you have some problem with your runonceex maybe you should show us your script.

Attach it if it is too long. And explain which program is not polite enough to line up.

Link to comment
Share on other sites

oo ok I wasn't sure about the /f, was the first thing I remembered :) I haven't worked on my uA project couple of months.. its finished I guess, just waiting for Nlite 1.0 to build a final one..

perhaps the TS has the numbers in different order.. then progB is started before progA, were A was first in the list and B came after.. I remember the annoying typos when quickly updating the RunOnceEx!

Link to comment
Share on other sites

  • 4 weeks later...

Interesting that others have had the same problem. I have office 2000 premium that is still installing when the sound blaster drivers start. In fact they finish first BEFORE Office installs. The other problems I face, silent installs work on some things and not on others. Can you spot them?? Here is my runonce:

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Install\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%\000 /VE /D "AVAST Antivirus" /f
REG ADD %KEY%\000 /V 1 /D "%PP%AVASTsetup.exe /VERYSILENT /SP- /NORESTART" /f

REG ADD %KEY%\005 /VE /D "uTorrent" /f
REG ADD %KEY%\005 /V 1 /D "%PP%utorrent.exe" /f

REG ADD %KEY%\010 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\010 /V 1 /D "%PP%\MP10setup\wmp.cmd" /f

REG ADD %KEY%\015 /VE /D "Zone Alarm" /f
REG ADD %KEY%\015 /V 1 /D "%PP%ZONEsetup.exe /s /noreboot" /f

REG ADD %KEY%\020 /VE /D "Intellitype 5.5" /f
REG ADD %KEY%\020 /V 1 /D "%PP%\intellitype\oemsetup.exe %PP%\intellitype\oemsetup.ini" /f

REG ADD %KEY%\025 /VE /D "Intellipoint 5.5" /f
REG ADD %KEY%\025 /V 1 /D "%PP%intellimouse\oemsetup.exe %PP%\intellimouse\oemsetup.ini" /f

REG ADD %KEY%\030 /VE /D "WINTV PVR-150 Driver" /f
REG ADD %KEY%\030 /V 1 /D "%PP%pvr150adriver.exe /s" /f

REG ADD %KEY%\035 /VE /D "WINTV PVR-150 Main Application" /f
REG ADD %KEY%\035 /V 1 /D "%PP%pvr150bwintv2k.exe /s" /f

REG ADD %KEY%\040 /VE /D "WINTV PVR-150 Decoder" /f
REG ADD %KEY%\040 /V 1 /D "%PP%pvr150cdecode.exe /s" /f

REG ADD %KEY%\045 /VE /D "WINTV PVR-150 Scheduler" /f
REG ADD %KEY%\045 /V 1 /D "%PP%pvr150dsched.exe /s" /f

REG ADD %KEY%\050 /VE /D "WINTV PVR-150 TV Editor" /f
REG ADD %KEY%\050 /V 1 /D "%PP%pvr150ewintvedit.exe /s" /f

REG ADD %KEY%\055 /VE /D "WINTV PVR-150 IR Remote" /f
REG ADD %KEY%\055 /V 1 /D "%PP%pvr150fir.exe /s" /f

REG ADD %KEY%\060 /VE /D "WINTV PVR-150 IR Blaster" /f
REG ADD %KEY%\060 /V 1 /D "%PP%pvr150girblast.exe /s" /f

REG ADD %KEY%\065 /VE /D "Java" /f
REG ADD %KEY%\065 /V 1 /D "%PP%jre506.exe" /f

REG ADD %KEY%\065 /VE /D "Corel Draw Suite 12" /f
REG ADD %KEY%\065 /V 1 /D "%PP%\corel12\setup.exe /S /v/qn" /f

REG ADD %KEY%\070 /VE /D "Office 2000 Premium" /f
REG ADD %KEY%\070 /V 1 /D "%PP%\o2k\setup.exe /qn" /f

REG ADD %KEY%\100 /VE /D "Soundblaster Live! Drivers and Apps" /f
REG ADD %KEY%\100 /V 1 /D "%PP%LiveDrvUni.exe" /f
EXIT

Link to comment
Share on other sites

From what I see you have two \65 keys although I believe RunOnceEx wil perform the keys alphabeticaly so that really should not matter. But I thought you may want to know for clean code. Also try putting a "zz" before the %KEY%\100 in ur label...so it looks like %KEY%\zz100. This way it will def run last. Also sometimes intaller applications launch other programs and close themselves. At that time RunOnce might assume that office 2000 has finished installing. This is when sleep and wait commands come in handy. I suggest you do a little testing by either running a batch install method on ur current system using the wait command. If that works launch a batch script from RunOnceEx instead of the actual install file.

Edited by citaram
Link to comment
Share on other sites

The simplest answer to any of this is add

"CMD /C Start /Wait %SystemDrive%\APPS\Winamp\winamp509_pro.exe /S" /f
CMD /C Start /Wait is the key, yeah it opens an ugly cmd window but it will WAIT

I hide it though

I've found Start /Wait don't allways work

With over 314 Apps I can choose for Install and some don't wait its been found to be a good thing :lol:

StartX is another option but its a pain to make it work right allthough for Autoit's its a good thing to make them wait.

"StartX /Wait \"%SystemDrive%\APPS\AxialisScreenSaver\Axialis_autoit.exe\"" /f
Edited by maxXPsoft
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...