I've got another Office 2003 related question.
Office 2003, frontpage, visio and the dutch language pack are all compressed in a SFX Rar file on my cd. I made transform files for each part of the installation using the "custom installation wizard" that comes with the office cd.
At first I tried to install office like this:
install.cmd, called from cmdlines.txtCODE
cmdow @ /HID
@echo off
net accounts /maxpwage:unlimited
FOR %%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\RunOnceEx
REG ADD %KEY% /V TITLE /D "De volgende programma's worden geinstalleerd:" /f
REG ADD %KEY%\051 /VE /D "Microsoft Office 2003" /f
REG ADD %KEY%\051 /V 1 /D "%CDROM%\Software\Office2003Pro\Office\Office.exe /s" /f
REG ADD %KEY%\052 /VE /D "Microsoft Frontpage 2003" /f
REG ADD %KEY%\052 /V 1 /D "%CDROM%\Software\Office2003Pro\Frontpage\Frontpage.exe /s" /f
REG ADD %KEY%\053 /VE /D "Microsoft Visio 2003" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\Software\Office2003Pro\Visio\Visio.exe /s" /f
REG ADD %KEY%\054 /VE /D "Microsoft Office 2003: Nederlands taalpakket" /f
REG ADD %KEY%\054 /V 1 /D "%CDROM%\Software\Office2003Pro\DutchUI\DutchUI.exe /s" /f
EXIT
The archives containing the office components are supposed to extract to a temporary folder. After that, SETUPPRO.EXE is called from the SFX archive comment:
CODE
;The comment below contains SFX script commands
Setup=SETUPPRO.EXE TRANSFORMS="NewInst.MST" /qb-
TempMode
Silent=1
Overwrite=1
This does not work. The SFX archive extracts as expected(at least they used up a lot of processor power according to the task manager. Afer that, nothing happens. The next RunOnceEx entry is parsed and the office setup doesn't start.
After that the same happens with the Frontpage setup, and again with visio and the dutch lang. pack.
I guess the method is wrong, but I haven't been able to find the problem.
[edit]Forgot to mention the install DOES work correctly when I just double click the SFX archive from a fully installed OS.[/edit]
So I tried something else. In stead of calling SETUPPRO.EXE from the archive comment, I added install.cmd to the archive and executed that instead.
The archive commentCODE
;The comment below contains SFX script commands
Path=%SystemDrive%/Install/Office2003temp
SavePath
Setup=install.cmd
Silent=1
Overwrite=1
install.cmd inside the archiveCODE
@echo off
echo Installing Office 2003...
start /wait %SystemDrive%/Install/Office2003temp/SETUPPRO.EXE TRANSFORMS="NewInst.MST" /qb-
RD /S /Q %SystemDrive%/Install/Office2003temp
EXIT
This does work, but not as expected. The archive unpacks as intended, and after that the install.cmd file is executed. "Installing Office 2003..." appears and the setup basic progress bar appears.
Then the problem occurs: After about 15 minutes of installing the next RunOnceEx entry gets parsed, while the setup and the command prompt are still active and busy. Why? Is there some sort of timeout period that RunOnceEx used? And why didn't the first method work as expected?