Solved

Office 2010 Install Through GPO Fails

Posted on 2010-08-26
5
1,699 Views
Last Modified: 2012-05-10
We are trying to install Office 2010 using a startup script that is assigned through Group Policy. The script works great if I run it manually, but if it runs via the startup script the install fails with the error:

Setup ended with error code 5

I believe this is related to permissions required to cache the install files to the local drive, but I'm not sure. I work for a school district and have over 1600 PCs that need this update, so doing it by hand is not an option. The .bat file is located below and is simply a modification of the sample script from Tech Net. I've also included the Office 2010 config.xml file. Any help is appreciated. Thanks

config.xml:

<Configuration Product="ProPlus">

      <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
      
      <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" />

      <USERNAME Value="*******" />
      
      <COMPANYNAME Value="************" />
      
      <INSTALLLOCATION Value="%programfiles%\Microsoft Office" />
      
      <!-- <LIS CACHEACTION="CacheOnly" /> -->
      
      <!-- <LIS SOURCELIST="\\server1\share\Office;\\server2\share\Office" /> -->
      
      <!-- <DistributionPoint Location="\\server\share\Office" /> -->
      
      <!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
      
      <Setting Id="SETUP_REBOOT" Value="IfNeeded" />
      
      <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" />
</Configuration>

setlocal

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

REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix. 
set ProductName=Office14.PROPLUS

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\campus\dfsroot\dist$\Office\Office2010ProPlus\CD

REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\campus\dfsroot\dist$\Office\Office2010ProPlus\CD\ProPlus.WW\config.xml

REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\campus\dfsroot\dist$\Office\Office2010LogFiles

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

IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)

REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if NOT %errorlevel%==1 (goto End)

REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS) 
:ARP86
reg query HKEY_LOCAL_MACHINE\SOFTWARE\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

Open in new window

0
Comment
Question by:leatherleaf
  • 2
  • 2
5 Comments
 
LVL 36

Expert Comment

by:Jian An Lim
ID: 33539333
0
 

Author Comment

by:leatherleaf
ID: 33544426
What do you mean by "SYSTEM  that do not share folder rights"? The user, SYSTEM, has full control to the local hard drive as well as the shared directory where the installation files are stored.

I had already read the three posts above. Microsoft recommends running the install using a startup script - are you saying this doesn't work??
0
 

Accepted Solution

by:
leatherleaf earned 0 total points
ID: 33544887
I actually found the answer to this in the technet forums. "Authenticated Users" needs to have read access to the distribution point (install source files). Once I set that everything worked beautifully.
0
 
LVL 36

Expert Comment

by:Jian An Lim
ID: 33547632
i prefer you to accept your answer instead of close this questions.
close your question will delete the question, accept your own answer will leave a trace for some one to view it when needed :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook 2016 hangs on the Launch Screen 3 59
Microsoft Word - New Language Dictionary 2 47
Generating a graph via Excel 3 27
how to re-acticvate Office 2010 6 25
Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now