- LAPS in Windows 11: Password encryption and DSRM account management - Wed, Jun 29 2022
- Install subsystem for Linux 2 (WSL2) on Windows Server - Wed, Jun 22 2022
- Next version of Exchange to arrive in 2025; meanwhile, new features for Exchange 2019 - Fri, Jun 10 2022
Microsoft no longer ships newer versions of Office with an MSI installer, but instead uses the Click-to-Run technique. Therefore, the setup program downloads the installation files from the internet. However, these are also available over local data media as usual.
No options for a standard setup ^
Unlike a conventional installation, Click-to-Run by default does not allow you to select which applications you want to install or specify the path where you want to save them.
However, if you want to customize the setup, Microsoft offers the ODT for this purpose. It consists of an .exe file that unpacks its contents into the selected directory when executed.
If you want to bypass this procedure and the corresponding User Account Control (UAC) prompt, you can also extract the contained files directly with 7-Zip.
Contents of the ODT ^
The package consists of serveral files: the setup.exe, example configuration files, and a text file with the end-user license agreement (EULA). To prepare for a customized installation, you have to create a new configuration file or edit the supplied template in the next step.
It is available in XML format and accepts a handful of elements to control the setup. Under "Configuration" an "Add" node is required. Its attribute "OfficeClientEdition" (with values "32" or "64") determines whether to install the 32- or 64-bit version.
Specify the source path ^
The attribute "SourcePath" points where to retrieve the installation files. If you have mounted the ISO file as a virtual DVD, you specify the root directory of the drive here (for example "D:\"):
<Add OfficeClientEdition="32" SourcePath="D:\">
Alternatively, you can copy the installation media to a share in the network and enter the universal naming convention (UNC) path.
As a child node of Add, the configuration expects one or more Product elements. These do not describe the individual applications, but the stock-keeping units (SKUs) of Office using the ID attribute. Allowed values for Office 2016 and 365 are, for example:
Office 2019 supports the following strings, amongst others:
This support document contains the full list of all product IDs the ODT accepts.
Excluding certain Office applications ^
Another child element of Product determines which applications not to install. For each program you would like to do without, you insert such an element and specify its name in the attribute ID, for example:
<ExcludeApp ID="Access" />
Supported values for the applications are:
Groove also covers OneDrive for Business, and Lync covers Skype for Business.
More options ^
In addition to this core configuration, the ODT also supports several other options. With these, you can acknowledge the EULA automatically or specify which channel to use for future updates.
A useful setting allows you to pin the Office applications to the taskbar. However, this only works under Windows 7 and 8.1; in Windows 10 it has no effect.
The Microsoft Website has complete documentation for all supported settings.
Configuration example ^
A sample configuration for installing from local media could look like this:
<Configuration> <Add OfficeClientEdition="32" SourcePath="D:\"> <Product ID="O365ProPlusRetail"> <Language ID="de-de" /> <ExcludeApp ID="Publisher" /> <ExcludeApp ID="Access" /> <ExcludeApp ID="OneDrive" /> <ExcludeApp ID="Groove" /> <ExcludeApp ID="Lync" /> <ExcludeApp ID="OneNote" /> </Product> </Add> <Updates Enabled="TRUE" Channel="Broad" /> <Display Level="None" AcceptEULA="TRUE" /> <!-- <Property Name="AUTOACTIVATE" Value="1" /> --> <Property Name="PinIconsToTaskbar" Value="TRUE" /> </Configuration>
Running a custom setup ^
Once the configuration file contains all desired settings, you can start the ODT. Launch the setup.exe from the downloaded ODT archive.
The command looks like this:
setup.exe /configure configuration.xml
After a short preparation phase, the tool displays the icons of the programs it will install.
Removing applications ^
If you have installed unwanted Office components, either because you have not excluded them in the configuration file or because you have executed the standard setup, you cannot uninstall them via the control panel. Uninstalling them via the control panel will remove Office entirely.
However, it is not necessary to remove the entire package and then reinstall the desired programs. Instead, you can use the ODT and simply add the programs you want to uninstall under ExcludeApp in the configuration file.
Subscribe to 4sysops newsletter!
The subsequent execution of setup.exe will then remove all applications you have already installed but excluded in the configuration file.