Re: Uninstall software through VB scrips by joseomjr
joseomjr
Wed Jul 12 12:43:15 CDT 2006
marci,
in your case it would be something like this.
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "msiexec.exe /x {1912F734-6580-4620-8AFD-ECCCEA19CDE2}
/quiet"
marci.smith@bmgch.com wrote:
> I also have a need to remove software with a script. I have this
> script but it doesn't seem to work. Applications were installed as
> MSI.
>
> Dim WSHShell
> Set WSHShell = WScript.CreateObject("WScript.Shell")
>
> On Error Resume Next
>
> regUninstallString =
> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MsiExec.exe
> /I{1912F734-6580-4620-8AFD-ECCCEA19CDE2}\UninstallString"
> strUninstallString = WshShell.RegRead ( regUninstallString )
>
> Dim objRun
> Set objRun = WSHShell.Run( strUninstallString & " /SILENT /NORESTART",
> 1, true )
>
> WScript.Quit
>
> Any help would be appreciated!