Contact UsContact Us

Uninstalling all Claro Products

The following VBScript, run from a command line with administrator privileges, will remove all Claro Software products on the machine.

Run with cscript, e.g. cscript removeallproducts.vbs


Set fso = CreateObject("Scripting.FileSystemObject")

Set installer = CreateObject("WindowsInstaller.Installer")

Set objShell = WScript.CreateObject("WScript.Shell")    

On Error Resume Next ' we ignore all errors

For Each product In installer.ProductsEx("", "", 7)

   productcode = product.ProductCode

   name = product.InstallProperty("ProductName")

   version=product.InstallProperty("VersionString")

   manufacturer=product.InstallProperty("Publisher")

   if instr(1, manufacturer, "Claro Software") > 0 then

    call objShell.Run("msiexec /X " & productcode & " /passive", 1, True) 

   end if

Next

Still need help? Contact us here