VB6 Uninstall a Program

triphen
triphen used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

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

Author

Commented:
I can delete it, however I need to uninstall it not just the delete the EXE
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Well if you know where all the system files are you can delete them which will have the same effect as uninstalling the app.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2015

Commented:
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

Author

Commented:
st6unst.exe doesnt exist.

If it helps any, I am trying to uninstall LogMeIn from 1000 computers.
Top Expert 2015

Commented:
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

Author

Commented:
Funny, there is no folder named LogMeIn in

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Top Expert 2015

Commented:
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
Commented:
Looks like LogMeIn has an uninstaller.


C:\Program Files (x86)\LogMeIn\x86\logmein.exe uninstall

Author

Commented:
Best solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial