A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » Setup, Installing & Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Automatic Removal and Install



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2008, 01:23 PM posted to microsoft.public.office.setup
Jeremy Becker
external usenet poster
 
Posts: 2
Default Automatic Removal and Install

Hello,

I am trying to remove Office 2003 and install Office 2007 using startup
scripts through GP. The previous IT guy here set the 2003 installs using GP
to install under the user, not the machine, so using GP to upgrade isn't
going to work.

Here's the script I have so far:

REM Remove Office 2003 Install

msiexec /x {90110409-6000-11D3-8CFE-0150048383C9} /qn

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

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

REM Set DeployServer to a network-accessible location containing the Office
source files.
set DeployServer=\\dc3610b\Office2007\

REM Set ConfigFile to the configuration file to be used for deployment REM
(required)
set ConfigFile=\\dc3610b\Office2007\ProPlus.WW\config. xml

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


This script works perfectly if run while logged in (as an admin, of course).
However, when the computer is set to use the script as a startup script,
Office 2003 is not removed, but the icons for Office 2007 appear in Start
Menu-All Programs-Microsoft Office. Clicking on one of the icons makes
Office 2007 install.

What needs to be done to get this script to run correctly as a startup
script? What I really want it to do is remove Office 2003, then fully
install Office 2007 so the install doesn't try to run under the user account
when opening one of the Office programs.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.