Eddie Studer
Eddie Studer

Reputation: 135

Attempting to Uninstall a Program with a Batch file

I am trying to uninstall a program using a batch file. I looked at a previously posted question from about 3 years ago using a variation of this:

wmic product where name="VIPRE Business Agent" call uninstall

While it appears to be working, the script runs and returns a successful reply, the program isn't uninstalling. What am I doing wrong or am I using the script wrong?

I know there is another question exactly like this, it's mine, and I am am trying to have it deleted since it started out completely different. I should have closed it first and then opened this one.

Here is the output from when the batch is ran:

E:\>echo off

E:\>wmic product where name="VIPRE Business Agent" call uninstall
Executing (\\DC-30026\ROOT\CIMV2:Win32_Product.IdentifyingNumber=" {56CA3334-8B72-48D1-81E7-3EF5243E45D5}",Name="VIPRE Business Agent",Version="7.5.5841")->Uninstall()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
        ReturnValue = 1603;
};

Edit Addition: I finally got the batch to uninstall Vipre. But it still leaves behind the folder C:\Program Files (x86)\Vipre Business Agent w\ a deployment folder and a config folder. How can I get a total uninstall?

Upvotes: 0

Views: 4075

Answers (1)

RGuggisberg
RGuggisberg

Reputation: 4750

If this was a 32 bit app installed with InstallShield use this command: C:\Program Files (x86)\InstallShield Installation Information[YourUninstallProductCodeGoesHere]\Setup.exe

Upvotes: 1

Related Questions