简体   繁体   中英

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

I have a program file. And I want to add this program into Control Panel Programs like this: 在此处输入图片说明

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM