I have to uninstall the bad patch KB3114409 and I have this script that worked but a command window pops up and gives the user opportunity to kill the uninstall. I need to know if there is another switch I can use to hide or minimize the window.

msiexec.exe /package {90140000-0012-0000-0000-0000000FF1CE} /uninstall {14CDCBF7-3CCC-42E2-A5BB-2D4926E16FAA} /qn /norestart

I was told I could hide it using VBScript but I have no idea how to do that.

Thank you in advance for your assistance.
Answer Summary:
Cancel
4 Comments   [ + ] Show Comments

Comments

  • I'm not sure offhand but when I have done this in the past I have run the command like this

    wusa /uninstall /kb:311409
  • Hi, yes I did that and I said it was uninstalled when in fact it wasn't. I could still see it in Windows Updates and had to uninstall is manually. I was told to look into enabling Windows Installer Logging to figure it out but don't have time for that.

    I found this worked perfect but I just need to minimize the window or hide it, put it in a GPO and send it out, I have a few hundred people still affected.

    Thanks for the input.
  • have you tried /quiet or /passive ??
    You can find some explanation about all the MSIEXEC parameters here:
    http://www.advancedinstaller.com/user-guide/msiexec.html
    and a mini-help if you launch msiexec with /?
    Kind regards,
    Marco - StockTrader
    • Hi, no just the /qn /norestart, so just try the /quiet alone or both?
      • Try to use /passive
        msiexec.exe /package {90140000-0012-0000-0000-0000000FF1CE} /uninstall {14CDCBF7-3CCC-42E2-A5BB-2D4926E16FAA} /passive /norestart

        P.s.: the official explanation is here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa372024(v=vs.85).aspx

        sometimes the author of a MSI is able to circumvent the behaviour and disattend there /quiet or /passive switches.
        Kind regards,
        Marco - StockTrader
  • Hi, thanks for the help. When I used the /passive I get a pop up window that show you the uninstall is running so I went back to /qn /norestart and the pop up is so fast that I think it will be ok and the user won't have time to close it. It's on a VM so maybe they won't see it at all??

    I will check out the other info you provided as well

    Thanks again
Please log in to comment

Answer Chosen by the Author

0
Answered 01/13/2016 by: SMal.tmcc
Red Belt

Please log in to comment

Answers

0
If these are 64 bit machines try it this way:


file: C:\windows\sysnative\wusa.exe
Answered 01/12/2016 by: SMal.tmcc
Red Belt

  • I think because I was testing on a VM that is slowed down the process, I tested on another PC and the user wouldn't have enough time or even see the command window so I think the original script was fine.

    I was also able to find this, just for info as I haven't tried it yet but some of you may find useful:

    Save this one line of text as file "invisible.vbs":

    CreateObject("Wscript.Shell").Run "" & WScript.Arguments(0) & "", 0, False

    Then use it like this:

    Invisible.vbs "msiexec.exe /package {90140000-0012-0000-0000-0000000FF1CE} /uninstall {14CDCBF7-3CCC-42E2-A5BB-2D4926E16FAA} /qn /norestart"

    This should make any script you have "invisible", let me know if anyone tries it please.

    Again thanks to everyone for the help!
Please log in to comment
Answer this question or Comment on this question for clarity