Skip to content

Instantly share code, notes, and snippets.

@FlipperPA
Last active March 27, 2023 11:47
Show Gist options
  • Save FlipperPA/fd6b40aa9802f0d73273dfb2ea566e3a to your computer and use it in GitHub Desktop.
Save FlipperPA/fd6b40aa9802f0d73273dfb2ea566e3a to your computer and use it in GitHub Desktop.
At Wharton: Install Office, Only the Applications You Want

First, Download the Deployment Tools

  • Go to: \\wharton.upenn.edu\wcit\technet\MS Products\Microsoft Office\Office 2019 for Windows
  • Download Office_Deployment_Tools_2019_-3_MLF_X22-09817.EXE and run it.
  • Extract it somewhere easy, like ~/Desktop/deployment

Download the XML Configuration File Below

  • Within the folder you extracted to, download configuration.xml from below, and edit the file.
  • In the example file, only Word, Excel, and Outlook will be installed.
  • Comment out the Office applications you want installed.

The Commands to Run

  • Open up cmd.exe as an Administrator, navigate to ~/Desktop/deployment, and run these commands to download and install.
setup /download configuration.xml
setup /configure configuration.xml

The /download will take a little while to run, as it is downloading the custom bundle from Microsoft. You can watch progress through your OS task manager. The /configure step will pop a window with a progress installation bar. Once that's finished, you should be all set with just the applications you selected!

<Configuration>
<Add OfficeClientEdition="64" Channel="Monthly">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<!-- <ExcludeApp ID="Excel" /> -->
<ExcludeApp ID="Groove" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="OneNote" />
<!-- <ExcludeApp ID="Outlook" /> -->
<ExcludeApp ID="PowerPoint" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="SharePointDesigner" />
<ExcludeApp ID="Skype" />
<ExcludeApp ID="Skypeforbusiness" />
<ExcludeApp ID="Visio" />
<ExcludeApp ID="Teams" />
<!-- <ExcludeApp ID="Word" /> -->
</Product>
</Add>
<!-- <Updates Enabled="TRUE" Channel="Monthly" /> -->
<!-- <Display Level="None" AcceptEULA="TRUE" /> -->
<!-- <Property Name="AUTOACTIVATE" Value="0" /> -->
</Configuration>
@dark-rider
Copy link

Very good, expecially that all App IDs are listed, thank you! But how to proceed if Office is already installed and you want to exclude some of its applications afterwards (because if installed as Microsoft 365, you cannot remove single apps like OneNote via windows)?

@FlipperPA
Copy link
Author

FlipperPA commented Mar 27, 2023

Unfortunately, I think the only option is an uninstall / reinstall, which should only take a few extra minutes.

You can also change where Program Files are installed by modifying the registry values in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion. The ProgramFilesDir entry in there can be changed to D:\Program Files if you want to install to D:\ by default.

Note that this value has to be changed PRIOR to installation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment