Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register program on windows registry so that it appears on "Uninstall a program" on Control Panel

Let's say I have a simple program: SomeProgram.exe and Uninstaller.exe those programs are in C:\ProgramFiles\MyProgram along with several dll's and resources.

Anyways I have a simple installer that installs several prerequisites to that path. Now my question is how can I register SomeProgram.exe on window registry so that I can have it appear in add or remove programs in control panel. I will like to execute Uninstaller.exe when the user clicks on remove my program. Also I will like to create a folder on windows startup menu so that the user can start the program from there in case he does not want to have a shortcut on the desktop.

like image 721
Tono Nam Avatar asked Feb 09 '13 20:02

Tono Nam


People also ask

How do I force a program to Uninstall from Control Panel?

In Control Panel, double-click Add/Remove Programs. In Add/Remove Programs, verify that the program for which you deleted the registry key is not listed. If the program list is not correct in Add/Remove Programs, you can double-click the Uninstall.

Why when I Uninstall a program is it still in the registry?

Sometimes even after you've uninstalled a program, its entry will remain listed in the Add or Remove Programs or Programs and Features list under currently installed programs in the Control Panel. This is usually caused by a badly written program that doesn't properly uninstall itself.

How do you remove a program that is already uninstalled?

Type control panel in the search box of Windows 10 and then click this app from the search result. Go to Programs (viewed by category) > Programs and Features. Right-click on the program you want to remove and click Uninstall or Uninstall/Change.


1 Answers

All you need to do is to create the registry entries as documented in the second link from "sergmat". This will make the program to appear in the list from Control Panel. http://msdn.microsoft.com/en-us/library/windows/desktop/aa372105(v=vs.85).aspx

like image 81
Bogdan Mitrache Avatar answered Sep 28 '22 18:09

Bogdan Mitrache