Link to home
Start Free TrialLog in
Avatar of KenanO
KenanO

asked on

Script a silent Uninstall of QuickTime

I need to be able to remove Quicktime from several hundred machines without requiring any user interaction.  I have been able to create a batch file with the uninstall string (C:\WINDOWS\unvise32qt.exe C:\WINDOWS\system32\QUICKT~1\UNINST~1.LOG) and run it as a Start-up script in a Computer GPO.  However, when the batch file executes, a prompt appears asking the user if they want to "Uninstall Everything", "Uninstall" or "Cancel".  If the GPO executes when no one is there, it simply times out and skips the uninstall; and, of course, I don't want to offer cancel as an option.  
Any ideas?
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

I could attempt to make a vbscript for you to do the above if that is of any use to you ?
Avatar of oBdA
oBdA

Try to add a "/s" to the command line, and use %Systemroot% instead of C:\Windows:
%Systemroot%\unvise32qt.exe /s %Systemroot%\system32\QUICKT~1\UNINST~1.LOG
Avatar of KenanO

ASKER

I will try the system root variable and /s option, which would be the easiest for me to implement - stay tuned.  
Set WshShell = CreateObject("wscript.Shell")

WshShell.Run "%Systemroot%\unvise32qt.exe /s %Systemroot%\system32\QUICKT~1\UNINST~1.LOG"
wscript.Sleep 1000                    ' <--- Alter sleep time as required
wscript.SendKeys "{TAB}"          '<-- edit here for tabbing between options on un installer
wscript.Sleep 250                      ' <--- Alter sleep time as required
wscript.SendKeys "{ENTER}"      '<--- To hit the ok button to make it do the un install

This is just a basic example of the sort of vbscript you are looking for as far as I can tell, you may have to make it sleep for like a minute or something and then make it hit ok on the finish button or something like that or you could just let it time out or something I guess.
Avatar of KenanO

ASKER

Unfortunately, the /s did not suppress the pop-up.  Would vb to able to trick the uninstall into thinking the user was responding with a Uninstall Everything selection?
what about using the shells minimizeall method ?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/minimizeall.asp

    function fnShellMinimizeAllVB()
        dim objShell
       
        set objShell = CreateObject("Shell.Application")
        objShell.MinimizeAll

        set objShell = nothing
    end function
Not sure how much that helps though because if you minimize it I am not sure if you can use sendkeys still :P
Cant you just use the sendkeys to make it select the un install everything selection ?

I know when I was making a previous script to change options in the proxy settings of IE I had to use sendkeys to send the specific options Letter so if the letter U was underlined then I had to use sendkeys to send the letter U and same goes for any other options that were underlined, if that makes sense ?
ASKER CERTIFIED SOLUTION
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KenanO

ASKER

Thanks for the input - I believe the vb option will work nicely in this scenario.  Regards, Kenan
Post back and let us know how it goes :)
On other quicktime uninstalls I have found using the "/uninst" or /"removeonly" switch which is suposed to uninstall the program.

Example: C:\WINDOWS\unvise32qt.exe C:\WINDOWS\system32\QUICKT~1\UNINST~1.LOG /uninst

I know the question have been closed but if your still having issues you could try it.
I tried the solution mentioned but it didn't work. The SendKeys on the script ends on the following error:
" Object doesn't support this property or method: 'wscript.SendKeys'
The Script I am using is the following:

Set WshShell = CreateObject("wscript.Shell")
WshShell.Run "%Systemroot%\unvise32qt.exe /s %Systemroot%\system32\QUICKT~1\UNINST~1.LOG"
wscript.Sleep 2000
wscript.SendKeys "{TAB 2}"
wscript.Sleep 1000
wscript.SendKeys "{ENTER}"  

I have to remove QuickTime from 350 wks in a silent way...any help would be great.
Thanks!
I wrote this article on how to uninstall quicktime silently.
http://www.questiondriven.com/2016/04/15/script-to-uninstall-quicktime-silently/