I have used the runonceex method to install various applications
ie intel chipset software
network drivers installation package
ati catalyst control centre and drivers
etc
my 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!
also
one of my applications stops and pops up a window asking for further input but the rest of the applications seem to carry on running
so my question is
1 is there a way to pause/stop execution of the next application until the previous application has completed
2 is there a way to use conditional syntax in the batch ie if something = yes the run the next application else skip it
my runonceex batch is listed below
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 '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 drivers REG ADD %KEY%\001 /VE /D "Intel Chipset Software Installation" /f REG ADD %KEY%\001 /V 1 /D "%PP%Intelchipset\INFINST_AUTOL.EXE -A -b -s " /f 'All Asus P5ad2 Motherboard Pcs REG ADD %KEY%\010 /VE /D "Marvel Yukon network Card Driver Installation" /f REG 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 pcs REG ADD %KEY%\020 /VE /D "Microsoft.Net Framework V2" /f REG ADD %KEY%\020 /V 1 /D "%PP%MicrosoftNet2\dotnetfx.exe /q:a /c:\"install /q"\" /f 'All Asus P5ad2 Motherboard Pcs REG ADD %KEY%\035 /VE /D "Cmi 9880 high definition audio package" /f REG ADD %KEY%\035 /V 1 /D "%PP%CMIaudio\setup.exe /S" /f REG ADD %KEY%\040 /VE /D "Catalyst Control centre & all Drivers" /f REG 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" /f REG ADD %KEY%\050 /V 1 /D "%PP%WindowsMediaPlayer10\mpsetupedp.msi /qb" /f ' REG ADD %KEY%\060 /VE /D "Nero burning v6" /f REG 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 Pcs REG ADD %KEY%\070 /VE /D "Adobe Reader 7.07 Installation" /f REG ADD %KEY%\070 /V 1 /D "%PP%AdobeReader7\setup.exe " /f REG ADD %KEY%\075 /VE /D "Microsoft office xp pro" /f REG ADD %KEY%\075 /V 1 /D "%PP%Applications\OfficeXP\SETUP.EXE " /f 'try this for norton internet security REG ADD %KEY%\080 /VE /D "Norton Internet Security 2005" /f REG ADD %KEY%\080 /V 1 /D "%PP%Norton\SYMSETUP.EXE /qn /norestart" /f EXIT
This post has been edited by gratz: 27 March 2006 - 12:21 PM



Help
Back to top









