简体   繁体   English

如何使用 C# 或 cmd 将程序添加到控制面板程序中

[英]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 ?我怎样才能用 C# 代码或 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.转到HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\并检查那里的条目。 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 .基本上,您需要创建一个以 GUID 作为名称的键,并在其下方创建一组值,最重要的是DisplayNameUninstallString

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#:如何在控制面板程序和功能中完全安装程序? - C#: How to get installing programs exactly like in control panel programs and features? 链接到C#中的控制面板(运行播发的程序和Configuration Manager) - Linking to control panel in C# (Run advertised programs and Configuration Manager) 如何从添加/删除程序控制面板中获取图标 - How to obtain the icons from add / remove programs Control Panel 如何在C#中在运行时在框架或面板上添加按钮控件 - How add button control on frame or panel at runtime in c# 如何在C#中将相同的控件添加到多面板中? - How to add the same control into multi panel in C#? 使用autoscroll(c#)将控件添加到面板 - Add control to a panel with autoscroll (c#) WPF C#如何动态地向面板子级添加用户控件,从而使从UC到面板的气泡/隧道 - WPF c# how to add a user control to a panel children dynamically that bubbles/tunnels from UC to Panel C#-带有面板的自定义控件,如何使IDE向面板添加项目? - C# - Custom control with panel on it, how do I make the IDE add items to the panel? 如何在C#程序中使用cmd命令? - How use cmd command in c# program? c#当我将控件添加到面板时,控件变为NULL - c# when I add control to panel, the control becomes NULL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM