/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script to uninstall KB311409

01/12/2016 1745 views
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:
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

Answer Chosen by the Author

All 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!
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ