I've got this script that I found, that allows for running the uninstallstring to uninstall programs like the google toolbar, etc.
I've modified it for winzip, but I need some help with a minor detail.
The switch for the silent uninstall is /quninstall (note the "q"), but the switch in the uninstallstring is /uninstall
The full uninstallstring that's in the registry is
How can I use the script to do this? I like the script because if it doesn't find the application, it doesn't generate an error.
Thanks!
Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
I've modified it for winzip, but I need some help with a minor detail.
Code:
' (c) 2006 Plamdi.com. This file silently uninstalls WinZip.
Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinZip\UninstallString")
If a<>"" Then WshShell.Run(a&" /S"),1,True:i=1
WshShell=Nothing:Wscript.Quit(i)
The switch for the silent uninstall is /quninstall (note the "q"), but the switch in the uninstallstring is /uninstall
The full uninstallstring that's in the registry is
Code:
"C:\Program Files\WinZip\WINZIP32.EXE" /uninstall
How can I use the script to do this? I like the script because if it doesn't find the application, it doesn't generate an error.
Thanks!
Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -