qctrip Posted March 23, 2005 Share Posted March 23, 2005 I have my RunOnceEx.cmd installing many tools that work because I have tested the CD/DVD many times now. I added Office 2000 and Office 2000 Multilanguage pack. Usually RunOnceEx install the first item, when finished installs the next and so on. When it gets to Office, the install starts, but then the next item on the list starts up as well. I re-arranged my install order but I would like to know how to permamnently fix this.Here is my runonce.exe===========================================cmdow @ /HID@echo offFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation D'Outils de Support ADS 2003" /f;REG ADD %KEY%\005 /VE /D "Microsoft .NET Framework 1.1" /f;REG ADD %KEY%\005 /V 1 /D "%CDROM%\Applications\NetFramework11\netfx.msi /quiet /norestart" /fREG ADD %KEY%\010 /VE /D "Group Policy Management Console" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\GPMCSP1\gpmc.msi /qn" /fREG ADD %KEY%\015 /VE /D "Windows 2003 AdminPak" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Applications\Adminpak2003\adminpak.msi /quiet /norestart" /fREG ADD %KEY%\020 /VE /D "XP Support Tools (KB838079)" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\SupportTools\suptools.msi /quiet /norestart" /fREG ADD %KEY%\025 /VE /D "Windows 2003 Resource Kit" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\Applications\ResourceKit\rktools.msi /quiet /norestart" /fREG ADD %KEY%\026 /VE /D "Microsoft Office 2000 SP3" /fREG ADD %KEY%\026 /V 1 /D "%CDROM%\Applications\Office2000SP3\setuppro.exe TRANSFORMS=GPNET.MST /qb-" /fREG ADD %KEY%\027 /VE /D "Microsoft Office 2000 MultiLangue" /fREG ADD %KEY%\027 /V 1 /D "%CDROM%\Applications\Office2000MUI\langpack.msi TRANSFORMS=MUI.MST /qb-" /fREG ADD %KEY%\028 /VE /D "Windows XP MultiLangue" /fREG ADD %KEY%\028 /V 1 /D "%CDROM%\Applications\MUIXP\muisetup.exe /i 040c /d 040c /r /s" /fREG ADD %KEY%\029 /VE /D "Adobe Acrobat Reader 5.05" /fREG ADD %KEY%\029 /V 1 /D "%CDROM%\Applications\Acrobat505\Acrobat.msi /qn /norestart" /fREG ADD %KEY%\035 /VE /D "Modifications de Registre" /fREG ADD %KEY%\035 /V 1 /D "REGEDIT /S %CDROM%\Applications\tweaks.reg" /fREG ADD %KEY%\040 /VE /D "Nettoyage et Redemarrage" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\cleanup.cmd" /fEXIT=======================================So Office 2000 and Office 2000 MultiLangue installations start, but RunOnceEx does not wait to start the install of the next item. Any help would be greatly appreciated.Thank you Link to comment Share on other sites More sharing options...
qctrip Posted March 24, 2005 Author Share Posted March 24, 2005 I found a solution. I put sleep.exe to good use.REG ADD %KEY%\026 /VE /D "Microsoft Office 2000 SP3" /fREG ADD %KEY%\026 /V 1 /D "%CDROM%\Applications\Office2000SP3\setuppro.exe TRANSFORMS=GPNET.MST /qb-" /fREG ADD %KEY%\026 /V 2 /D "C:\Windows\System32\sleep.exe 200" /f Link to comment Share on other sites More sharing options...
jondercik Posted March 24, 2005 Share Posted March 24, 2005 Dont have it call the exe to setup office, use the msi file. What I believe is happening is the setup program is doing its work and spawning the actual install process, then quitting, causing RunOnceEx to go to the next step. Link to comment Share on other sites More sharing options...
Dahi Posted March 25, 2005 Share Posted March 25, 2005 I call this batch file from runonceex, and each installer runs one after the other.Setuppro.exe does not exit until MS-Office installation is finished.@echo offecho Installing Office 2003 SP1"%~dp0Office2003\setuppro.exe" transorms=Unattended.mst /QBecho Installing Frontpage 2003"%~dp0Frontpage\FP11.MSI" /QBecho Installing OneNote 2003"%~dp0OneNote2003sp1\ONOTE11.MSI" /QBecho Installing Visio 2003"%~dp0Visio2003SP1\VISPRO.MSI" /QB 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