Office Software Thread, Office 2013 install startup script wanted in Technical; Does anyone have a startup batch file to install Office 2013?
There was one (on Technet I think) for installing ...
-
16th November 2012, 12:21 PM #1 Office 2013 install startup script wanted
Does anyone have a startup batch file to install Office 2013?
There was one (on Technet I think) for installing Office 2010 - I'll try just modifying that.
The official Deployment Guide for Office 2013 just tells you to write your own script. How hard would it have been to put an example in?
As far as I can see, it's the same process as for Office 2010: copy to administrative share, use the OCT to create MSP file in the /updates folder, use startup script to deploy. Except MS don't provide the script.
-
-
IDG Tech News
-
16th November 2012, 12:43 PM #2
-
-
22nd November 2012, 01:39 PM #3 Thanks FN-GM, but I'd already seen that.
I tweaked the Office 2010 .bat file below.
The process for deploying Office 2013 is largely the same as 2010.
Unpack the .iso to an administrative share (the path and name must not contain spaces)
Run setup.exe /admin to run the OCT and create a .MSP file for silent install. Copy this file to the \updates\ folder.
Run the script, either manually or as a GPO startup script.
Code:
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 "office15." as a prefix.
set ProductName=Office15.PROPLUS
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server\share\MS_Office_Professional_Plus_2013_32Bit
REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\server\share\MS_Office_Professional_Plus_2013_32Bit\ProPlus.WW\config.xml
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server\share\MS_Office_Professional_Plus_2013_32Bit\Office2013LogFiles
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 2013 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
-
-
19th March 2013, 04:57 PM #4
- Rep Power
- 0
I've tried to use this script and other batch scripts to run the Office 2013 setup.exe via group policy - but it never actually initiates the installation. I can run the script when logged on as a administrative user - but the script will not run during the startup process.
When I perform an rsop.msc - I see that the script was executed. The install just doesn't kick off.
Not sure what I am missing. I've never had a problem deploying .msi packaged software.
I can look at the event logs and see that the computer I am testing is receiving the group policies,

Originally Posted by
OverWorked
Thanks FN-GM, but I'd already seen that.
I tweaked the Office 2010 .bat file below.
The process for deploying Office 2013 is largely the same as 2010.
Unpack the .iso to an administrative share (the path and name must not contain spaces)
Run setup.exe /admin to run the OCT and create a .MSP file for silent install. Copy this file to the \updates\ folder.
Run the script, either manually or as a GPO startup script.
Code:
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 "office15." as a prefix.
set ProductName=Office15.PROPLUS
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server\share\MS_Office_Professional_Plus_2013_32Bit
REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\server\share\MS_Office_Professional_Plus_2013_32Bit\ProPlus.WW\config.xml
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server\share\MS_Office_Professional_Plus_2013_32Bit\Office2013LogFiles
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 2013 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
-
SHARE: 
Similar Threads
-
By basicchannel in forum Windows
Replies: 2
Last Post: 18th October 2012, 05:59 PM
-
By TornUp in forum Scripts
Replies: 0
Last Post: 2nd February 2012, 12:20 PM
-
By adamchapman in forum Office Software
Replies: 8
Last Post: 4th August 2011, 12:16 AM
-
By contink in forum Windows
Replies: 8
Last Post: 23rd September 2008, 03:46 PM
-
By markwilliamson2001 in forum Windows
Replies: 3
Last Post: 4th March 2008, 07:26 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules