

Here’s an example of a configuration.xml file that installs the 64-bit Current Channel version of Microsoft 365 Apps for enterprise in English from the Office Content Delivery Network (CDN) on the internet and uninstalls any Windows Installer (MSI) versions of Office on the computer. Language resources – for example, language packs, language interface packs, or proofing tools – will also be removed.

To uninstall all versions of Office, including Visio and Project, that are already installed on the computer, add to your configuration.xml file. For more information, see Windows 7 end of support and Microsoft 365 Apps. Support for Windows 7 ended on January 14, 2020.

You can uninstall those versions of Office through Control Panel or by running the Office Deployment Tool and using the Remove element in your configuration.xml file. RemoveMSI doesn’t uninstall prior versions of Office, including Visio and Project, that use Click-to-Run as the installation technology.
