Office 2007 not fully installed in upgrade script

K

Kay

Hello,

I was trying to install office 2007 via shutdown script through GPO.

The script works fine installing office 2007 on clean XP OS's.

But with OS's where office 2003 is already installed, the application
will uninstall office 2003 but will not install office 2007. It will
only copy some files to the Program Files\Microsoft\Office 12.0\, but
no office 2007 application is available.

The script I used has the same structure as the one in the following
link:

http://technet.microsoft.com/en-us/library/cc179134(office.12).aspx
Script code as follows: Please help! Thank you!
-------------------------------
Code----------------------------------------------
setlocal

REM
*********************************************************************
REM Environment customization begins here. Modify variables below.
REM
*********************************************************************

REM Get ProductName from the Office product's core Setup.xml file.
set ProductName=Standard

REM Set DeployServer to a network-accessible location containing the
Office source files.
set DeployServer=\\server\share\Office12

REM Set ConfigFile to the configuration file to be used for deployment
REM (required)
set ConfigFile=\\server\share\Office12\Enterprise.WW\config.xml

REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server\share\Office12Logs

REM
*********************************************************************
REM Deployment code begins here. Do not modify anything below this
line.
REM
*********************************************************************

IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\

reg query HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%Microsoft\Windows
\CurrentVersion\Uninstall\%ProductName%
if %errorlevel%==1 (goto DeployOffice) else (goto End)

REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\%computername%.txt

REM If 0 or other was returned, the product was found or another error
occurred. Do nothing.
:End

Endlocal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top