Office 2013 silent install question

Discussion in 'Microsoft Office' started by cocachris89, Jul 14, 2013.

  1. cocachris89

    cocachris89 MDL Senior Member

    Mar 1, 2013
    492
    147
    10
    Evening everyone,

    I'm attempting to make a silent installation config file for Office 2013 using XML instead of OCT; just my preference. In this config file I'd like to choose which components/features (Word, Excel etc.) of Office 2013 I'd like to install. However I'm having a bit of trouble finding the OptionState ID values used in Office 2013; I've only been able to find references for the language ID for the proofing tools. I also understand that some of the 2010 values are the same, correct?

    Does anyone know or have a list of the new values that are used?
     
  2. cocachris89

    cocachris89 MDL Senior Member

    Mar 1, 2013
    492
    147
    10
    #2 cocachris89, Jul 16, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
  3. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    #3 HALIKUS, Nov 30, 2013
    Last edited by a moderator: Apr 20, 2017
    I was messing around with this and found this thread after i found the same solution. I add Visio and Project Pro to my Office by adding the 2 dirs from the Visio and PP ISO. Then i configure them like you have above, and the only thing that changes is the key and Configuration Product.


    This is a simple autoit gui i made to install all 3 and activate it.
    Code:
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Icon=ssApp.ico
    #AutoIt3Wrapper_Compression=4
    #AutoIt3Wrapper_UseUpx=n
    #AutoIt3Wrapper_UseX64=n
    #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
    #AutoIt3Wrapper_Add_Constants=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    ;#AutoIt3Wrapper_Compile_Both=y
    ;#NoTrayIcon
    #include <File.au3>
    #include <String.au3>
    #include <Array.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstants.au3>
    #include <WinAPI.au3>
    #include <Constants.au3>
    #include <ButtonConstants.au3>
    
    Opt("TrayMenuMode", 2)
    
    ;DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) ; This disables 32bit applications from being redirected to syswow64 instead of system32 by default ;
    If Not IsAdmin() Then; This enables cmd to run as admin
    RunAs($user, $domain, $pass, 0, @ScriptName, @ScriptDir)
    EndIf
    
    $answer = MsgBox(4, "Office 2013", "This will install Office 2013, Project Plus and Visio. Wait 10 seconds or click Yes.    If you wish to choose a product click No.", 6)
    
    ; If "No" was clicked (7) then load gui
    If $answer = 7 Then
    #Region ### START Koda GUI section ### Form=
    ;$FormOffice = GUICreate("Choose an MS Office Product.", 486, 44, 239, 128)
    $FormOffice = GUICreate("Choose an MS Office Product.", 486, 44)
    $Button1 = GUICtrlCreateButton("Project Professional", 16, 8, 107, 25)
    $Button2 = GUICtrlCreateButton("Visio", 136, 8, 107, 25)
    $Button3 = GUICtrlCreateButton("Office 2013 Pro", 256, 8, 99, 25)
    $Button4 = GUICtrlCreateButton("Run KMSpico", 368, 8, 99, 25)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    
    Case $Button1;Project Professional
    RunWait("setup.exe /config " & @ScriptDir & "\prjpror.ww\config.xml")
    Run('KMSpico.exe /verysilent /DIR="C:\Windows\KMSpico"')
    Exit
    Case $Button2;Visio
    RunWait("setup.exe /config " & @ScriptDir & "\vispror.ww\config.xml")
    Run('KMSpico.exe /verysilent /DIR="C:\Windows\KMSpico"')
    Exit
    Case $Button3;Office 2013 Pro VL
    RunWait("setup.exe /config " & @ScriptDir & "\proplus.ww\config.xml")
    Run('KMSpico.exe /verysilent /DIR="C:\Windows\KMSpico"')
    Exit
    Case $Button4;KMSpico
    Run('KMSpico.exe /verysilent /DIR="C:\Windows\KMSpico"')
    EndSwitch
    WEnd
    
    Else
    RunWait("setup.exe /config " & @ScriptDir & "\proplus.ww\config.xml")
    
    RunWait("setup.exe /config " & @ScriptDir & "\prjpror.ww\config.xml")
    
    RunWait("setup.exe /config " & @ScriptDir & "\vispror.ww\config.xml")
    
    Run('KMSpico.exe /verysilent /DIR="C:\Windows\KMSpico"')
    
    Exit
    EndIf