gratz Posted March 5, 2006 Share Posted March 5, 2006 (edited) Hi I wonder if anyone can helpI have used the runonceex method to install various applicationsie intel chipset softwarenetwork drivers installation packageati catalyst control centre and driversetcmy problem is that upon each application running 'some times' it seems that the next application starts before the previous has completed.or so i think!this seems to happen with my chipset drivers which need a reboot to complete installation, the chipset drivers need to be fully installed before anything else is installed!alsoone of my applications stops and pops up a window asking for further input but the rest of the applications seem to carry on runningso my question is1 is there a way to pause/stop execution of the next application until the previous application has completed2 is there a way to use conditional syntax in the batch ie if something = yes the run the next application else skip itmy runonceex batch is listed belowcmdow @ /HID@Echo OffSET PP=%SystemDrive%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /f'Note The Words All Pcs Means this installation should be made on all pcs'All Asus P5ad2 Motherboard Pcs'Installs The Chipset drivers this needs a reboot hence the -b switch(must be installed before any other driversREG ADD %KEY%\001 /VE /D "Intel Chipset Software Installation" /fREG ADD %KEY%\001 /V 1 /D "%PP%Intelchipset\INFINST_AUTOL.EXE -A -b -s " /f'All Asus P5ad2 Motherboard PcsREG ADD %KEY%\010 /VE /D "Marvel Yukon network Card Driver Installation" /fREG ADD %KEY%\010 /V 1 /D "%PP%YukonNetworkDrivers\SetupYukonWin.exe /S /V \"/LIME %WINDIR%\YukonInstall.log REBOOT=ReallySuppress /qn"\"/f'this will remove marvel yukon drivers'REG ADD %KEY%\003 /VE /D "Marvel Yukon network Card Driver removal" /f'REG ADD %KEY%\003 /V 1 /D "%PP%YukonNetworkDrivers\SetupYukonWin.exe /S /V\"/LIME %WINDIR%\YukonInstall.log 'REMOVE=ALL REBOOT=ReallySuppress /qn"\"/f'REG ADD %KEY%\004 /VE /D "Marvel Yukon network Card Driver repair" /f'REG ADD %KEY%\004 /V 1 /D "%PP%YukonNetworkDrivers\SetupYukonWin.exe /S /V\"/LIME %WINDIR%\YukonInstall.log 'REINSTALLMODE=vomus REINSTALL=ALL REBOOT=ReallySuppress /qn"\"/f'All pcsREG ADD %KEY%\020 /VE /D "Microsoft.Net Framework V2" /fREG ADD %KEY%\020 /V 1 /D "%PP%MicrosoftNet2\dotnetfx.exe /q:a /c:\"install /q"\" /f'All Asus P5ad2 Motherboard PcsREG ADD %KEY%\035 /VE /D "Cmi 9880 high definition audio package" /fREG ADD %KEY%\035 /V 1 /D "%PP%CMIaudio\setup.exe /S" /fREG ADD %KEY%\040 /VE /D "Catalyst Control centre & all Drivers" /fREG ADD %KEY%\040 /V 1 /D "%PP%Ati\6-2_xp-2k_dd_ccc_wdm_enu_30152\setup.exe /s /w:wait " /f'All Pcs With nividea geforce 5300 graphics cards (Should be both shop pcs)REG ADD %KEY%\041 /VE /D "Nvidea GeForce 5300 Graphics drivers Installation" /f REG ADD %KEY%\041 /V 1 /D "%PP%Nvidia\setup.exe" /f'poss add the /s awitch for silent install above'IF EXIST %SYSTEMROOT%\system32\atiddc.dll REG ADD %KEY%\040 /VE /D "RadClocker" /f'IF EXIST %SYSTEMROOT%\system32\atiddc.dll REG ADD %KEY%\040 /V 1 /D "%SYSTEMDRIVE%\ATI\RadClocker\RadClocker.msi /qn" /f'REG ADD %KEY%\045 /VE /D "Ati Catalyst Contol Centre" /f'REG ADD %KEY%\045 /V 1 /D "%PP%\ATI\ATICCC.msi /qb /norestart" /f'dotnetfx.exe /q:a /c:"install /l /q"REG ADD %KEY%\050 /VE /D "Windows Media Player Installation" /fREG ADD %KEY%\050 /V 1 /D "%PP%WindowsMediaPlayer10\mpsetupedp.msi /qb" /f'REG ADD %KEY%\060 /VE /D "Nero burning v6" /fREG ADD %KEY%\060 /V 1 /D "%PP%Applications\Nero\Nero-6.6.0.18_no_yt.exe /silent /noreboot /no_ui /sn="myserialnumber" /write_sn" /f'All PcsREG ADD %KEY%\070 /VE /D "Adobe Reader 7.07 Installation" /f REG ADD %KEY%\070 /V 1 /D "%PP%AdobeReader7\setup.exe " /fREG ADD %KEY%\075 /VE /D "Microsoft office xp pro" /fREG ADD %KEY%\075 /V 1 /D "%PP%Applications\OfficeXP\SETUP.EXE " /f'try this for norton internet securityREG ADD %KEY%\080 /VE /D "Norton Internet Security 2005" /fREG ADD %KEY%\080 /V 1 /D "%PP%Norton\SYMSETUP.EXE /qn /norestart" /fEXIT Edited March 27, 2006 by gratz Link to comment Share on other sites More sharing options...
MHz Posted March 6, 2006 Share Posted March 6, 2006 You may consider using msiexec in your commands to execute your msi files.e.g.msiexec /i %PP%Folder\File.msi /qnThe registry would monitor the process id of msiexec for process close.Please remove your posted Nero Serial!And please use code tags in future [ CODE ] ... [ /CODE ] to wrap code, minus the spaces in the my displayed tags in this line. Link to comment Share on other sites More sharing options...
gratz Posted March 25, 2006 Author Share Posted March 25, 2006 just a test to check last commenthi therehope this works[\code]oops wrong slashtry again[code]hi therehope this worksyipee You learn something new every day Link to comment Share on other sites More sharing options...
Yzöwl Posted March 25, 2006 Share Posted March 25, 2006 First of all, you knew that you'd used the incorrect tags before you'd posted (no 'This post has been edited by')Secondly, now you know how to do it, try fixing the post, as requested.Thirdly, commented lines in NT batch scripting use :: not ' Link to comment Share on other sites More sharing options...
exrcizn Posted March 27, 2006 Share Posted March 27, 2006 The numbering is off. The number for each install does not reflect the order of the statements in your file. You start at 1, then 10, then 3, and so forth. Wasn't sure if this was tripping you up or not. 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