Uninstall Office 2010 With Msiexec Parameters
Including a stop at the Donington Download festival in June. So why come back again Wes?
Recently, we performed an upgrade of our Microsoft Office Suite. We had Office 2010 installed on all user machines, and we were switching to Office 2013. However, we didn’t want to go around to each user and manually uninstall Office 2010 (since we wanted Office 2013 to have a clean install, we couldn’t do a normal upgrade). So I had to devise a way to uninstall Office 2010 with minimum input and effort on behalf of the users. The easiest way to perform an unattended uninstall of Office is via combination of.bat file and edits to a.xml file.
Don’t worry, you don’t need experience in code in order to do this – I certainly didn’t! First, you must extract the Office 2010 installation media to a shared network location that is accessible to everyone. This is important, as your batch file will reference it. In our case, we were lucky, as the vast majority of our users were using MS Office 2010 with SP1, x64 edition. So, it was fairly easy for me to create a network share and copy the CD there.
Ran the command as: setup.exe /uninstall ProPlus /config vn111 admin SCCM PackageSource Applications Microsoft_Office_2010_32bit ProPlus.WW uninstall.xml 3. In the XML i have the below settings. Silent Uninstall MS Project Standard 2010 SCCM HELP!! By CraigSCCM on Mar 26, 2015 at 11:19 UTC Software Deployment & Patching.
Next, you have to create the batch file. This is easier than it seems. Open a Notepad document, type your code, when do a File>Save As and name it something like “UninstallOffice.bat”. Below is a sample one, for Office 2010 Pro: @ECHO OFF ECHO PLEASE CLOSE ALL OPEN OFFICE PROGRAMS (Including Outlook, Word and Excel). PAUSE ECHO Removing Office 2010. “ server shared drive Office 2010 Pro setup.exe” /uninstall ProPlus /config “ server shared drive Office 2010 Pro ProPlus.WW UninstallConfig.xml” ECHO Uninstall Complete, please reboot your computer now PAUSE Let me break down the code here so you can edit it as necessary: • @ECHO OFF – This line basically prevents the command prompt’s version and path information from showing up. For example, when you run this code, instead of this: You get this instead: It’s a lot cleaner and easier to read.
• ECHO Please close all Office programs (Including Outlook, Word and Excel) – This line is optional. The ECHO command prints to screen anything after it; that’s why the “Please close.” line is shown above. This line can be edited as necessary or deleted. • PAUSE – This line pauses the batch file and inserts the “Press any key to continue.” line shown above. This is optional; I inserted it to make sure that the users read the notice about closing all Office programs, and then they can continue the batch file after they have done so. • ECHO Removing Office 2010.