Office 2010 scripted uninstall question


  1. Posts : 3
    Windows 10
       #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:
    Code:
    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,

    Andrew
      My Computer

  2. Superfly's Avatar
    Posts : 3,325
       #2

    Try enclosing everything after wait in single quotes
    Code:
    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 Computer


  3. Posts : 3
    Windows 10
    Thread Starter
       #3

    Superfly said:
    Try enclosing everything after wait in single quotes
    Code:
    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 Computer


  4. Posts : 3
    Windows 10
    Thread Starter
       #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 Computer


 

  Related Discussions
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 16:47.
Find Us




Windows 10 Forums