Advertisement

05.01.2008 at 05:43AM PDT, ID: 23368268
[x]
Attachment Details

how do i use "start /wait" in this runonce.cmd to install office 2000 from a windows disc

Asked by skyeg in Windows XP Operating System, MS DOS, Microsoft Applications

Tags: Microsoft, Windows XP, sp2

I want to install office 2000 automaticaly when i install windows xp.  the office instalation is on two disc.  after windows is installed and you log into the computer runonce.cmd runs and installed office cd1 but doesnt wait for it to finnish before it tries to run cd2 so only the first disc gets installed.  someone told me to use start /wait command but i dont know how to fit it into my runonce.cmd.   could someone please add it to the .cmd file i have attached and explain the syntax?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
@ECHO OFF
 
FOR /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') DO SET CDROM=%%i
SET CDROM=%CDROM:~0,2%
 
SET RUNONCEEX=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
 
REG ADD %RUNONCEEX% /v Title /d "Installing Applications" /f
REG ADD %RUNONCEEX% /v Flags /t REG_DWORD /d 20 /f
 
REG ADD %RUNONCEEX%\Apps01 /ve  /d "Office 2000 CD1" /f
REG ADD %RUNONCEEX%\Apps01 /v 1 /d "%systemdrive%\IT_Tech\Office2000\CD1\SETUP.EXE TRANSFORMS="""Setup.mst""" /qb-" /f
 
REG ADD %RUNONCEEX%\Apps02 /ve  /d "Office 2000 CD2" /f
REG ADD %RUNONCEEX%\Apps02 /v 1 /d "%systemdrive%\IT_Tech\Office2000\CD2\SETUP.EXE TRANSFORMS="""Setup.mst""" /qb-" /f
 
REG ADD %RUNONCEEX%\Apps03 /ve  /d "Java" /f
REG ADD %RUNONCEEX%\Apps03 /v 1 /d "%CDROM%\Apps\Java\jre-6-beta2-windows-i586.exe /s /v"""/qn ADDLOCAL=ALL"""" /f
 
REG ADD %RUNONCEEX%\Apps04 /ve  /d "Adobe Reader" /f
REG ADD %RUNONCEEX%\Apps04 /v 1 /d "MSIEXEC.EXE /QN /I %CDROM%\Apps\adoberdr\adoberdr.msi" /f
 
REG ADD %RUNONCEEX%\Apps05 /ve  /d "Flash Player for IE" /f
REG ADD %RUNONCEEX%\Apps05 /v 1 /d "MSIEXEC.EXE /QN /I %CDROM%\Apps\flash\flash.msi" /f
 
REG ADD %RUNONCEEX%\Apps06 /ve  /d ".Net Framework 1.1" /f
REG ADD %RUNONCEEX%\Apps06 /v 1 /d "%CDROM%\Apps\dotnetfw\dotnetfx1.exe /q:a /c:"""install.exe /q /l"""" /f
 
REG ADD %RUNONCEEX%\Apps07 /ve  /d ".Net Framework 2.0" /f
REG ADD %RUNONCEEX%\Apps07 /v 1 /d "%CDROM%\Apps\dotnetfw\dotnetfx2.exe /q:a /c:"""install.exe /q /l"""" /f
 
Keywords: how do i use "start /wait" in this ru…
 
Loading Advertisement...
 
[+][-]05.01.2008 at 09:24PM PDT, ID: 21484526

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 09:28PM PDT, ID: 21484534

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 04:50AM PDT, ID: 21485864

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 05:53AM PDT, ID: 21486190

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 05:32AM PDT, ID: 21499501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 06:08AM PDT, ID: 21506906

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 01:18PM PDT, ID: 21520013

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows XP Operating System, MS DOS, Microsoft Applications
Tags: Microsoft, Windows XP, sp2
Sign Up Now!
Solution Provided By: matrixnz
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628