I have customized an .MSP package for Office 2007 Enterprise and saved it as unattended.msp.
After customization there was another file called config.xml that was created.
I have put both these files in a folder inside Office 2007 DVD, called customXN
At the root of the DVD i've created a batch file called installOffice.bat with the following code
@ECHO off title Microsoft Office 2007 ECHO. ECHO Installing Microsoft Office 2007 Echo Please wait... setup.exe /adminfile customXN/Unattended.MSP exit
I have put this whole Office 2007 folder inside $OEm$/$1/Install/Applications/O2007
In my Winnt.sif i have the following entry:
[SetupParams] UserExecute = "%systemdrive%\install\RunOnceEx.cmd"
I have put the RunOnceEx.cmd file in $OEm$/$1/Install Folder. In the same folder i have a cleanup.cmd
So far so bad.
RunOnceEx has the following code:
@echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\010 /VE /D "Microsoft Office 2007" /f REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\O2007\installOffice.bat" /f REG ADD %KEY%\020 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /f EXIT
So, when Administrator auto log-ins for the first time i get :
please go to the control panel to install and configure system components and Office 2007 does not install.
It's driving me crazy. Has anyone seen this before?
EDIT: i forgot to mention that when i run the installOffice.bat after i double click it manually, it install Office 2007 properly, but it doesn't do it at RunOnceEx.
This post has been edited by engert100: 08 July 2008 - 09:06 PM