need a script for office
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!
thanks
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
bwilkerson
9 years ago
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
https://social.technet.microsoft.com/Forums/office/en-US/75d50085-28b4-400b-97d4-77203c173352/repairremove-office-2010-silently
Then I built an admin install with all the options off of the Office 2013 ISO by following the information I found here
https://technet.microsoft.com/en-us/library/cc179121.aspx
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.
I basically followed the steps here to uninstall Office 2010
https://social.technet.microsoft.com/Forums/office/en-US/75d50085-28b4-400b-97d4-77203c173352/repairremove-office-2010-silently
Then I built an admin install with all the options off of the Office 2013 ISO by following the information I found here
https://technet.microsoft.com/en-us/library/cc179121.aspx
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.
Posted by:
chucksteel
9 years ago
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.