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.
triphenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
If you can find the exe via code, does Kill MyApp.exe delete it?
triphenAuthor Commented:
I can delete it, however I need to uninstall it not just the delete the EXE
Martin LissOlder than dirtCommented:
Well if you know where all the system files are you can delete them which will have the same effect as uninstalling the app.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Kanti PrasadCommented:
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
triphenAuthor Commented:
st6unst.exe doesnt exist.

If it helps any, I am trying to uninstall LogMeIn from 1000 computers.
Kanti PrasadCommented:
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
triphenAuthor Commented:
Funny, there is no folder named LogMeIn in

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Kanti PrasadCommented:
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
triphenAuthor Commented:
Looks like LogMeIn has an uninstaller.


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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
triphenAuthor Commented:
Best solution
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.