Avatar of triphen
triphen
 asked on

VB6 Uninstall a Program

Hello Experts,

I am trying to build a utility that will uninstall program A and install program B with 1 click. The program I am trying to uninstall doesn't have an uninstall.exe. Pretty much I am trying to automate the uninstallation by avoiding Add/Remove Programs.

To further clarify,  Program A and B are not written by me.

Windows 7 is the OS.
Visual Basic Classic

Avatar of undefined
Last Comment
triphen

8/22/2022 - Mon
Martin Liss

If you can find the exe via code, does Kill MyApp.exe delete it?
triphen

ASKER
I can delete it, however I need to uninstall it not just the delete the EXE
Martin Liss

Well if you know where all the system files are you can delete them which will have the same effect as uninstalling the app.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Kanti Prasad

Hi

Try the below by using the st6unst.exe program (VB6) in the Windows directory and give the name inside the Text1

http://www.vb-helper.com/howto_uninstall.html
triphen

ASKER
st6unst.exe doesnt exist.

If it helps any, I am trying to uninstall LogMeIn from 1000 computers.
Kanti Prasad

Hi

At Start - Run  type regedit and  go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

Search for LogMain in this location and get the uninstall registry entry for this application.

then  create a bat file ( open notepad put the below and save as .bat) and run it by putting that value

msiexec.exe /x {put your string 09876453f0e03 value here} /qn
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
triphen

ASKER
Funny, there is no folder named LogMeIn in

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Kanti Prasad

Hi
Maybe look at another system and see if you can find anything, you just need to get the reg key and put it in that string and you can delete all your systems
ASKER CERTIFIED SOLUTION
triphen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
triphen

ASKER
Best solution
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes