How to add program into Control Panel Programs with C# or cmd

533 Views Asked by At

I have a program file. And I want to add this program into Control Panel Programs like this:enter image description here

How can I do that with C# code or cmd ?

1

There are 1 best solutions below

2
PMF On

To add an entry to that list, you need to create a subkey in the registry. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ and check the entries there. Basically you need to create a key with a GUID as the name and below that a set of values, the most important being DisplayName and UninstallString.