+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    989
    Thank Post
    192
    Thanked 39 Times in 32 Posts
    Rep Power
    25

    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.

  2. IDG Tech News
  3. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,889
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,367 Times in 1,197 Posts
    Rep Power
    362

  4. #3
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    989
    Thank Post
    192
    Thanked 39 Times in 32 Posts
    Rep Power
    25
    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

  5. #4

    Join Date
    Mar 2013
    Location
    Santa Barbara
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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,

    Quote Originally Posted by OverWorked View Post
    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:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 18th October 2012, 05:59 PM
  2. Replies: 0
    Last Post: 2nd February 2012, 12:20 PM
  3. [MS Office - 2010] Deploy Office 2010 - Startup Script
    By adamchapman in forum Office Software
    Replies: 8
    Last Post: 4th August 2011, 12:16 AM
  4. Replies: 8
    Last Post: 23rd September 2008, 03:46 PM
  5. Installing GoogleSketchup 6 via startup script
    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
  •