Scripting Question

need a script for office

04/13/2015 1907 views
i am looking for a script that i can use with k1000 to "uninstall office 2010" and "install office 2013".
my systems currently have office 2010 and we are getting ready to upgrade to 2013.
i do have one script to uninstall 2010 and another script to install 2013 but i dont know how to put them together as on task.

can you help!

0 Comments   [ + ] Show comments


All Answers

I am not sure how others did it but this is how I did it.

I basically followed the steps here to uninstall Office 2010

Then I built an admin install with all the options off of the Office 2013 ISO by following the information I found here

I ran them separately using KACE distribution setting the Office 2010 to uninstall (obviously) using the command line as outlined in the first link

Then I set the Install of Office 2013 to a label I made detecting computers with No Office version installed.   That way Office 2013 would not install if another version of Office was installed.

All in all I think I had a few machines I had to touch by hand to get Office 2010 uninstalled but the vast majority were automated this way.

Sorry I cannot give more details as I am not at my office to look at all my notes but I hope this is at least somewhat helpful.

You can probably combine your scripts into a batch file.  List your separate commands that you have for the uninstall and then for the reinstall and I can combine them for you that can be used in the Software distribution.
Answered 04/13/2015 by: bwilkerson
Fourth Degree Brown Belt

I created a batch file that uninstalls Office 2010 and then installs Office 2013. You need to use the admin install like bwilkerson said. You can set the admin install to remove previous versions of Office but that doesn't remove all of the Office 2010 components. Here is the batch file I used:

if exist "C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\" (
copy 2010uninstall.xml "C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\2010uninstall.xml"
"C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall PROPLUS /dll OSETUP.DLL /config 2010uninstall.xml
setup.exe /adminfile FullInstallRemovePrevious.msp
This batch file along with the msp and the 2010uninstall.xml file are included in the zip archive of the Office 2013 install files and then uploaded to KACE. I also have a version of the batch file which isn't silent so I can create separate managed installs for either completely silent or visible installs. 

Answered 04/14/2015 by: chucksteel
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ