Windows 10: Office 2010 scripted uninstall question Solved

  1.    07 Aug 2017 #1

    Office 2010 scripted uninstall question

    I am trying to get an uninstall script to work for Office Std 2010 x64, and I am running into an issue.
    For starters, here's the script I have:
    Start /wait "\\PATH\Setup.exe" /config "\\PATH\Uninstall.xml" /uninstall Standard
    I believe this will work without the "Start /wait" portion, but I need that part in the script, as this is part of a larger script, and I need the parent script to wait for this to complete before proceeding. Everything after "/wait" should be referenced as a switch for the setup.exe file, but it appears that the "Start" command is seeing "/config" as one of it's switches, which then errors out because "Start" doesn't have a "/config" switch.

    Strangely enough, this same script works fine when I point it to the Office Std 2010 x86 setup file, so I'm not sure what the problem is. If this were in Powershell, I would try putting everything after "/wait" in a script block so it knows to process that portion separately, but I am not sure how to do that in a batch script.

    Thanks in advance,

      My ComputerSystem Spec

  2.    07 Aug 2017 #2

    Try enclosing everything after wait in single quotes
    Start /wait '"\\PATH\Setup.exe" /config "\\PATH\Uninstall.xml" /uninstall Standard'
    I'm assuming you have spaces in the path thus the double quotes...
      My ComputerSystem Spec

  3.    07 Aug 2017 #3

    Superfly said: View Post
    Try enclosing everything after wait in single quotes
    Start /wait '"\\PATH\Setup.exe" /config "\\PATH\Uninstall.xml" /uninstall Standard'
    I'm assuming you have spaces in the the path thus the double quotes...
    That's correct.
      My ComputerSystem Spec

  4.    07 Aug 2017 #4

    I removed the "Start /wait" portion and tested once more, and that seems to work fine, and the parent script still waits for this portion to complete. I thought I tested this unsuccessfully last week, but I must be mistaken. Sorry for the false alarm.
      My ComputerSystem Spec


Related Threads
Install Office 365 in place of Office 2010 in Microsoft Office and 365
On a different computer, I had a trial version of Office 365 installed. I purchased Office 2016 and uninstalled the trial 365 and installed Office 2016. However, Office 365 "remnants" mingled in with the Office 2016 installation and it was a mess...
Hi... My lady friend of the moment has been given an Asus Vivobook as a birthday present. It's a basic unit with an 11.6'' screen which she'd like to use instead of her laptop, when she needs something lighter and easily carried. The Asus...
I have Office 2007 installed on my PC and will be installing Office 365. Would it be best to uninstall the previous version before installing Office 365? What will happen to all of my Word and Excel Files? I will back up the important files to a...
Solved Office 2010 or Office 2013 ? Help Me Decide in Microsoft Office and 365
Clean installing Windows 10 and have both Office 2010 and Office 2013 available and your thoughts on which should I use. I have been running Office 2010 on my systems and mainly basic use of Word and Excel. Also x86 or x64? Also would my files...
Hi there I think this comment is allowed - there is an NDA but I think this is OK. The latest update installs OFFICE 2016 just fine and works OK. Office 2010 is left untouched so you can run BOTH concurrently. OUTLOOK 2016 though uses the same...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:18.
Find Us