Microsoft Office 2016 – add language in config.xml

Custom config.xml with multiple languages commands for a Microsoft Office 2016 installation.

Note: Adding French, English, Danish, German and Spanish languages and set French language to default

<Configuration Product="ProPlus">
  <Display 
    AcceptEula="yes" 
    SuppressModal="yes" 
    CompletionNotice="no" 
    Level="none"
  />
  <!-- <Display Level="full" CompletionNotice="yes" SuppressModal="no" AcceptEula="no" /> -->
  <!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" /> -->
  <!-- <USERNAME Value="Customer" /> -->
  <!-- <COMPANYNAME Value="MyCompany" /> -->
  <!-- <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="Never" 
  />
  <Setting 
    Id="AUTO_ACTIVATE" 
    Value="1" 
  />
  <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
  <AddLanguage 
    Id="fr-fr" 
    ShellTransform="yes" 
  /> 
  < AddLanguage 
    Id="en-us" 
  /> 
  <AddLanguage 
    Id="da-dk" 
  /> 
  <AddLanguage 
    Id="de-de" 
  /> 
  <AddLanguage 
    Id="es-es" 
  /> 
</Configuration>

Source: Microsoft

Microsoft Office 2016 Proofing Tools Kit – config.xml

Custom config.xml for a Microsoft Office 2016 Proofing Tools kit installation.

Note: Install English and Danish languages only

<Configuration Product="Proofkit">
  <Display 
    AcceptEula="yes" 
    SuppressModal="yes" 
    CompletionNotice="no" 
    Level="none"
  />
  <!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Proofkit Setup(*).txt" /> -->
  <!-- <USERNAME Value="Customer" /> -->
  <!-- <COMPANYNAME Value="MyCompany" /> -->
  <!-- <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="Never" 
  />
  <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
  <OptionState 
    Id="IMEMain_1028" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="IMEMain_1041" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="IMEMain_1042" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="IMEMain_2052" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1025" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1026" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1027" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1028" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1029" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1030" 
    State="local" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1031" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1032" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1033" 
    State="local" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1035" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1036" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1037" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1038" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1040" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1041" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1042" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1043" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1044" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1045" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1046" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1048" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1049" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1050" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1051" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1053" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1054" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1055" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1056" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1058" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1060" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1061" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1062" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1063" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1069" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1081" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1087" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1094" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1095" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1097" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1099" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1102" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_1110" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_2052" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_2068" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_2070" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_2074" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_2076" 
    State="Absent" 
    Children="force" 
  />
  <OptionState 
    Id="ProofingTools_3082" 
    State="Absent" 
    Children="force" 
  />
</Configuration>

Source: Microsoft

Microsoft Office 2016 – config.xml

Custom config.xml for a Microsoft Office 2016 installation.

Note: Remember to install KB2999226 before installing Microsoft Office 2016

<Configuration Product="ProPlus">
  <Display 
    AcceptEula="yes" 
    SuppressModal="yes" 
    CompletionNotice="no" 
    Level="none"
  />
  <!-- <Display Level="full" CompletionNotice="yes" SuppressModal="no" AcceptEula="no" /> -->
  <!-- <Logging Type="standard" Path="%temp%" Template="Microsoft Office Professional Plus Setup(*).txt" /> -->
  <!-- <USERNAME Value="Customer" /> -->
  <!-- <COMPANYNAME Value="MyCompany" /> -->
  <!-- <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="Never" 
  />
  <Setting 
    Id="AUTO_ACTIVATE" 
    Value="1" 
  />
  <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
</Configuration>

Source: Microsoft

PrintUI (CMD)

Add and remove local printer and driver through the command line. Can be used in scripts or packages. Before adding the printer, setup port and restart the Print Spooler service.

rundll32 printui.dll PrintUIEntry /if /b "ETIAM Print-in" /f "%ProgramFiles%\Etiam\Print-In\Driver\Print-in.inf" /r "PrintIn Port" /m "ETIAM Print-in" /q
rundll32 printui.dll PrintUIEntry /Xs /n "ETIAM Print-in" comment "ETIAM virtual printer" location "http://www.etiam.com" /q
rundll32 printui.dll PrintUIEntry /dl /n "ETIAM Print-in" /q
rundll32 printui.dll PrintUIEntry /dd /m "ETIAM Print-in" /q

DIFxApp Configuration Flags (MSI)

Flag values for the DIFxApp merge module, to use in the MSIDriverPackages table when installing drivers in a MSI file. Remember to add the DIFxApp merge module, otherwise the driver will not be installed in the DriverStore.

This method is equivalent to DPinst.exe with a lot of switches.

Flag Description
1 Force driver installation
2 Suppress a prompt to connect a device
4 Suppress the creation of a Programs and Features entry for a driver package
8 Install an unsigned driver package
16 Remove installed files

Happy package building.

Source: Microsoft

SpecialFolders (VBS)

object.SpecialFolders(objWshSpecialFolders)

Values are:

  • AllUsersDesktop
  • AllUsersStartMenu
  • AllUsersPrograms
  • AllUsersStartup
  • Desktop
  • Favorites
  • Fonts
  • MyDocuments
  • NetHood
  • PrintHood
  • Programs
  • Recent
  • SendTo
  • StartMenu
  • Startup
  • Templates
Dim WshShell, sDesinationPath
Set WshShell = WScript.CreateObject("WScript.Shell")
sDesinationPath = WshShell.SpecialFolders("AllUsersStartMenu")

Source: Microsoft