MSFN Forum: runonceex pausing - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

runonceex pausing Rate Topic: -----

#1 User is offline   gratz 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 20-November 05

Posted 05 March 2006 - 01:45 PM

Hi I wonder if anyone can help
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



#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 05 March 2006 - 07:57 PM

You may consider using msiexec in your commands to execute your msi files.
e.g.
msiexec /i %PP%Folder\File.msi /qn

The 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.

#3 User is offline   gratz 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 20-November 05

Posted 25 March 2006 - 12:25 PM

just a test to check last comment


hi there

hope this works

[\code]

oops wrong slash

try again


[code]
hi there

hope this works


yipee

You learn something new every day

#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 25 March 2006 - 02:31 PM

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 '

#5 User is offline   exrcizn 

  • Rock Star
  • PipPip
  • Group: Members
  • Posts: 123
  • Joined: 15-October 04

Posted 27 March 2006 - 07:07 AM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy