gratz Posted March 6, 2006 Share Posted March 6, 2006 can any one tell me can you make runonceex batchfile wait until one installation is complete before progressing to the next installationthanks for any help or pointers Link to comment Share on other sites More sharing options...
bledd Posted March 8, 2006 Share Posted March 8, 2006 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 More sharing options...
Scubar Posted March 8, 2006 Share Posted March 8, 2006 u can either use sleep.exe or u could ping an unobtainable ip address with a specific timeout. Link to comment Share on other sites More sharing options...
MHz Posted March 8, 2006 Share Posted March 8, 2006 The registry will wait for cmd to finish.cmd /c "PathToFile\file.cmd" Link to comment Share on other sites More sharing options...
gratz Posted March 25, 2006 Author Share Posted March 25, 2006 Thanks for your replies Sorry i have been out of action for a few weeksand thanks for the welcomethe 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 helpcmd /c "PathToFile\file.cmd"is this a line to add to my code to solve the problem?thanks again Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 25, 2006 Share Posted March 25, 2006 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>nulThese 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 More sharing options...
ZileXa Posted March 27, 2006 Share Posted March 27, 2006 (edited) can any one tell me can you make runonceex batchfile wait until one installation is complete before progressing to the next installationthanks for any help or pointersuhm, i'm sorry I thought the answer to your question was simple but then I read the reacts 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 March 27, 2006 by ZileXa Link to comment Share on other sites More sharing options...
Djé Posted March 27, 2006 Share Posted March 27, 2006 uhm, i'm sorry I thought the answer to your question was simple but then I read the reacts 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 More sharing options...
ZileXa Posted March 28, 2006 Share Posted March 28, 2006 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 More sharing options...
Paradox Me Posted April 22, 2006 Share Posted April 22, 2006 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 OffSET PP=%SystemDrive%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "AVAST Antivirus" /fREG ADD %KEY%\000 /V 1 /D "%PP%AVASTsetup.exe /VERYSILENT /SP- /NORESTART" /fREG ADD %KEY%\005 /VE /D "uTorrent" /fREG ADD %KEY%\005 /V 1 /D "%PP%utorrent.exe" /fREG ADD %KEY%\010 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\010 /V 1 /D "%PP%\MP10setup\wmp.cmd" /fREG ADD %KEY%\015 /VE /D "Zone Alarm" /fREG ADD %KEY%\015 /V 1 /D "%PP%ZONEsetup.exe /s /noreboot" /fREG ADD %KEY%\020 /VE /D "Intellitype 5.5" /fREG ADD %KEY%\020 /V 1 /D "%PP%\intellitype\oemsetup.exe %PP%\intellitype\oemsetup.ini" /fREG ADD %KEY%\025 /VE /D "Intellipoint 5.5" /fREG ADD %KEY%\025 /V 1 /D "%PP%intellimouse\oemsetup.exe %PP%\intellimouse\oemsetup.ini" /fREG ADD %KEY%\030 /VE /D "WINTV PVR-150 Driver" /fREG ADD %KEY%\030 /V 1 /D "%PP%pvr150adriver.exe /s" /fREG ADD %KEY%\035 /VE /D "WINTV PVR-150 Main Application" /fREG ADD %KEY%\035 /V 1 /D "%PP%pvr150bwintv2k.exe /s" /fREG ADD %KEY%\040 /VE /D "WINTV PVR-150 Decoder" /fREG ADD %KEY%\040 /V 1 /D "%PP%pvr150cdecode.exe /s" /fREG ADD %KEY%\045 /VE /D "WINTV PVR-150 Scheduler" /fREG ADD %KEY%\045 /V 1 /D "%PP%pvr150dsched.exe /s" /fREG ADD %KEY%\050 /VE /D "WINTV PVR-150 TV Editor" /fREG ADD %KEY%\050 /V 1 /D "%PP%pvr150ewintvedit.exe /s" /fREG ADD %KEY%\055 /VE /D "WINTV PVR-150 IR Remote" /fREG ADD %KEY%\055 /V 1 /D "%PP%pvr150fir.exe /s" /fREG ADD %KEY%\060 /VE /D "WINTV PVR-150 IR Blaster" /fREG ADD %KEY%\060 /V 1 /D "%PP%pvr150girblast.exe /s" /fREG ADD %KEY%\065 /VE /D "Java" /fREG ADD %KEY%\065 /V 1 /D "%PP%jre506.exe" /fREG ADD %KEY%\065 /VE /D "Corel Draw Suite 12" /fREG ADD %KEY%\065 /V 1 /D "%PP%\corel12\setup.exe /S /v/qn" /fREG ADD %KEY%\070 /VE /D "Office 2000 Premium" /fREG ADD %KEY%\070 /V 1 /D "%PP%\o2k\setup.exe /qn" /fREG ADD %KEY%\100 /VE /D "Soundblaster Live! Drivers and Apps" /fREG ADD %KEY%\100 /V 1 /D "%PP%LiveDrvUni.exe" /fEXIT Link to comment Share on other sites More sharing options...
citaram Posted April 28, 2006 Share Posted April 28, 2006 (edited) 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 April 28, 2006 by citaram Link to comment Share on other sites More sharing options...
maxXPsoft Posted April 29, 2006 Share Posted April 29, 2006 (edited) The simplest answer to any of this is add"CMD /C Start /Wait %SystemDrive%\APPS\Winamp\winamp509_pro.exe /S" /fCMD /C Start /Wait is the key, yeah it opens an ugly cmd window but it will WAITI hide it thoughI've found Start /Wait don't allways workWith over 314 Apps I can choose for Install and some don't wait its been found to be a good thing 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 April 29, 2006 by maxXPsoft 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