Step 1: Prepare the configuration XML
Below is the template of the XML from the Office installation and its customizable options.
<Info Description="Office Setup Template" />
<Add OfficeClientEdition="64" Channel="MonthlyEnterprise">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Teams" />
<ExcludeApp ID="Bing" />
</Product>
</Add>
<Property Name="SharedComputerLicensing" Value="1" />
<Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
<Property Name="DeviceBasedLicensing" Value="0" />
<Property Name="SCLCacheOverride" Value="0" />
<Updates Enabled="TRUE" />
<RemoveMSI />
<AppSettings>
<Setup Name="Company" Value="Cameyo" />
<User Key="software\microsoft\office\16.0\common\general" Name="shownfirstrunoptin" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableOptinWizard" />
<User Key="software\microsoft\office\16.0\firstrun" Name="disablemovie" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableMovie" />
<User Key="software\microsoft\office\16.0\firstrun" Name="bootedrtm" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableOfficeFirstrun" />
<User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="51" Type="REG_SZ" App="excel16" Id="L_SaveExcelfilesas" />
<User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
<User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
</AppSettings>
<Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
- Options that you need to modify for your installation include:
- Description: description of the XML file
- OfficeClientEdition: Downloads and installs the 64-bit or 32-bit edition of Office.
- Channel: Office Update Channel
- BetaChannel = Beta Release
- CurrentPreview = Current Release Preview
- Current = Current Release
- MonthlyEnterprise = Feature updates Monthly Update (recommended)
- SemiAnnualPreview = Feature updates Preview
- SemiAnnual = Feature updates 2 per year
- Version: It is possible to install a desired version.
For this add the Version attribute to the following line
<Add OfficeClientEdition="64" Channel="MonthlyEnterprise" Version="16.0.16924.20150"> - Language: For an additional language add another line into the Product tag
<Language ID="de-de" /> - ExcludeApp: Declare which apps should not be installed.
We recommend not to install the following items:- Groove
- Lync
- Bing
- Company: Company Name
- The remaining options:
- Property:
- SharedComputerLicensing, 1 is required for a Cameyo server installation.
- FORCEAPPSHUTDOWN, If the Office app is open, it will be closed.
- DeviceBasedLicensing, license by device not user (Only with Intune)
- SCLCacheOverride, 0 is 1 can specify a path for the license files.
- Updates Enabled="TRUE", Office Update enabled
- AppSettings / User Key:
With these you can set default user settings for Office (Policies)
- Property:
Step 2: Download the latest Microsoft Office setup.exe
- Office Deployment Tool link:
Step 3: Run Office 365 Setup
Installing Microsoft Office 365 Click-To-Run Using The Office Deployment Tool
- Open a command prompt as administrator.
- Create a folder for your ODT files.
- Change into that new folder.
- Copy the
setup.exefrom Step 2 into that folder. - Create a
configuration.xmlwith the modified content from Step 1 in that folder. - Run
setup.exewith the/downloadswitch followed by the location of yourconfiguration.xml file. In this case, the command would look like:
C:\ODT>setup.exe /download "C:\ODT\configuration.xml"
This command will result in the ODT downloading the client specified in your configuration.xml file.
The download itself will be silent but you will know it is complete when the command prompt window has a carriage return and brings you back to C:\ODT.
Further customization
For most scenarios the above XML template is enough. However, there might be circumstances where you want to configure your whole configuration with additional settings. For this, you can use the Office Apps Admin Center tool.
The Office Apps Admin Center is a tool from Microsoft to create the Office configuration.xml file. To use this tool:
- you need an Office 365 login.
- the xml must be customized before installation.
- In <Configuration>: ID=”abcdef12-3456-7890-abcd-ef12345678”
- In <Property Name=”TenantId”>: Value=”abcdef12-3456-7890-abcd-ef12345678
Related resources
Microsoft: Overview of Office deployment tool
Microsoft: Overview of update channels
Microsoft: What is your Microsoft Azure and Microsoft 365 tenant ID?