I have just spent several hours trying to solve an unattended uninstall of Office 365 within Configuration Manager that does not uninstall all Office products installed on the system. To uninstall everything in one hit is well documented. You create an Uninstall.xml file that looks like this:
<Configuration> <Remove All="TRUE" /> <Logging Level="Standard" Path="C:\Windows\Temp" /> <Display Level="None" AcceptEULA="TRUE" /> <Property Name="AUTOACTIVATE" Value="1" /> <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" /> <Property Name="SharedComputerLicensing" Value="1" /> </Configuration>
You then use the command Line: setup.exe /configure uninstall.xml
But what if you have Visio Click to Run and you only wish to uninstall this product?
Here is the solution that has worked for me.
Create your Uninstall.xml File
<Configuration> <Remove All="FALSE" SourcePath="\\SourceFileLocationServer\source\Apps\Microsoft\Office365"> <Product ID="VisioPro2019Volume" > <Language ID="en-us" /> </Product> </Remove> <Display Level="None" AcceptEULA="True" /> <Property Name="AutoActivate" Value="0" /> <Property Name="FORCEAPPSHUTDOWN" Value="True" /> <Property Name="SharedComputingLicensing" Value="0" /> <Property Name="PinIconsToTaskbar" Value="False" /> </Configuration>
You may have noted that I have used Source Path pointing to the SCCM source files Share. This is because I found if the cache was cleared on a client device, the uninstall would fail. As I didn’t wish to make all click to run installs persistant in cache I looked for a method of calling the source files from a remote location.
No that you have created the uninstall.xml, you add the uninstall command setup.exe /configure uninstall.xml, as shown below.
Here are the Product IDs that I have found to work
“VisioStdXVolume” = Visio Standard 2016 Volume License
“VisioStd2019Volume” = Visio Standard 2019 Volume License
“VisioProXVolume” = Visio Professional 2016 Volume License
“VisioPro2019Volume” = Visio Professional 2019 Volume License
A complete List of Product IDs can be found on Microsoft Support https://support.microsoft.com/en-us/help/2842297/product-ids-that-are-supported-by-the-office-deployment-tool-for-click
I also struggled with a detection method for the products and finally settled on using a reg key
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\O365BusinessRetail - en-us
DisplayName “Microsoft Office 365 Business - En-US
This is how it looks in Configuration Manager
I hope this helps save others time creating your Click-to-Run Applications in Configuration Manager. The organisation I am working for Is currently at version 1806 of Configuration Manager.
References that helped me: