Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Silent Uninstall of Microsoft Products

Hi Community!
Thought I'd share an interesting find about uninstalling MS Office Products Silently. MS has made it easy to install Office silently but couldn't find any working solutions to uninstall it silently. Without further ado, this was my solution. Also a shoutout to Cory Gibson who showed me how to find the uninstall paths in PDQ Inventory.
1)Find uninstall path of MS product you would like to remove in PDQ Inventory: For Microsoft Office Professional Plus 2016 64x bit would be located here: "C:\Program Files\Common Files\Microsoft Shared\OFFICE16\Office Setup Controller\setup.exe" /uninstall PROPLUS /dll OSETUP.DLL
2) Create a config.xml file and these are the lines of code I copied from another setup.xml file "note: you need to change the product code depending on what your uninstalling":
<Configuration Product="OUTLOOK">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
</Configuration>

3) After you have saved the XML file copy it to a central location for your PDQ Deployments

4) This is how I setup my PDQ Package: Step1 copy config.xml to uninstall folder:

Step 2: New Command: You'll use the uninstall string from PDQ inventory but add this to the end of it calling your config file: /config config.xml "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall OUTLOOK /dll OSETUP.DLL /config config.xml (include the quotation marks)

Step 3: I used the following command to clean up the folder structure and to delete the custom XML file: rmdir "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15" /s /q

2

Comments

1 comment
Date Votes
  • Thanks for sharing that, Samuel!

    0