Tuesday, 24 November 2009

Office 2010 Beta – Office 2007 Uninstall Fail?

After uninstalling Office 2007, we installed Office 2010 Beta. But, things were not working as we had expected. So, into the Programs and Features we went on this Windows 7 laptop and we found:

image

Note that the above was found after uninstalling Office 2007 and rebooting the laptop.

So, what does that mean?

It means that the script used to deploy Office 2007 on our network via Group Policy does not detect the newer version installed on this laptop and proceeds to install Office 2007.

It looks as though the script is not aware of the 64bit versions. We will need to look into updating it to work with the new versions of Office 2010 when we have access to our Open Value Licensing version.

The script:

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM Modified 2009-10-06 by Philip Elder for company variables.
REM *********************************************************************

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

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\SBS\ClientApps\Office2007Ent

REM Set ConfigFile to the configuration file to be used for deployment REM (required)
set ConfigFile=\\SBS\ClientApps\Office2007Ent\Enterprise.WW\config.xml

REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\SBS\ClientApps\Office2007Ent\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

So for now, we will restructure our OU and GPOs for the moment to exclude the GPO setting to deploy Office 2007 for any machines the Office 2010 Beta will be installed on.

Philip Elder
MPECS Inc.
Microsoft Small Business Specialists
Co-Author: SBS 2008 Blueprint Book

*Our original iMac was stolen (previous blog post). We now have a new MacBook Pro courtesy of Vlad Mazek, owner of OWN.

Windows Live Writer

No comments:

Post a Comment

NOTE: All comments are moderated.