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

1
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.

1
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.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8152180314064026, "perplexity": 1708.8883696100152}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-13/segments/1490218189130.57/warc/CC-MAIN-20170322212949-00252-ip-10-233-31-227.ec2.internal.warc.gz"}