leatherleaf
asked on
Office 2010 Install Through GPO Fails
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%\Micr osoft Office" />
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <LIS SOURCELIST="\\server1\shar e\Office;\ \server2\s hare\Offic e" /> -->
<!-- <DistributionPoint Location="\\server\share\O ffice" /> -->
<!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
<Setting Id="SETUP_REBOOT" Value="IfNeeded" />
<Command Path="%windir%\system32\ms iexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" />
</Configuration>
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%\Micr
<!-- <LIS CACHEACTION="CacheOnly" /> -->
<!-- <LIS SOURCELIST="\\server1\shar
<!-- <DistributionPoint Location="\\server\share\O
<!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
<Setting Id="SETUP_REBOOT" Value="IfNeeded" />
<Command Path="%windir%\system32\ms
</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
ASKER
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??
I had already read the three posts above. Microsoft recommends running the install using a startup script - are you saying this doesn't work??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :)
close your question will delete the question, accept your own answer will leave a trace for some one to view it when needed :)
http://technet.microsoft.com/en-us/library/cc179070.aspx
http://technet.microsoft.com/en-us/library/ff602181.aspx
If you run from startup script, it will run as SYSTEM that do not share folder rights....