C# .NET - Delete some item from added remove programs

Asked By mostafa hamdy on 08-Sep-10 07:36 AM
Hello all
I have some C# program , and in this program I want to delete some program title from the ARP(added remove programs) list but not unistall it from the machine , just to delet the title , please I want to know how can I do that in the C# ?, please if any body get what I mean and can help me or tell me about some url may help me in doing that please send me
Super Man replied to mostafa hamdy on 08-Sep-10 09:33 AM

I am very poor in registry operation. I have given full idea for this.


Manual Operation. : -


Start Registry Editor (Regedit.exe).

1.     Locate the following key:

2.     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

3.     Locate the key to be deleted by locating the key name created by the program. If the name of the key is not apparent, browse through each key and note the value for DisplayName. This is the viewable string in the Add/Remove Programs tool.

4.     Using the Registry menu, export the selected registry key to make a backup. Store the .reg file in a safe location in case you need to import it at a later date.

5.     Delete the selected registry key and its values. Do not delete the entire Uninstall key.

6.     Quit Registry Editor.

7.     Verify that the reference in the Add/Remove Programs tool is no longer visible.



Now do this in your C# application


Find the subkey which you want to delete ,from this location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

And then delete it Entry.