如何让制造商字符串显示在 msconfig“启动”选项卡中?

发布于 2024-12-01 18:34:30 字数 230 浏览 2 评论 0原文

我有一个在 Visual Studio 2010 中开发的 C# 应用程序,安装后将其放置在用户的启动文件夹中,以便用户每次登录时该应用程序都会在托盘中启动。我已经在 VS 安装项目中设置了制造商字符串,它在控制面板的“添加/删除程序”部分中正确显示。问题是,当我们启动 msconfig.exe 并查看“启动”选项卡时,“制造商”列显示“未知”。我在网上找不到任何帖子告诉我 msconfig.exe 从哪里获取其制造商字符串。有人可以帮忙吗?

I have a C# application that I have developed in Visual Studio 2010 that, upon installation is placed in the user's Startup folder so that the application launches in the tray each time the user logs on. I have set the Manufacturer string in the VS setup project and it shows up correctly in the Add/Remove Programs part of Control Panel. The problem is that when we launch msconfig.exe and look at the Startup tab, the Manufacturer column says "Unknown". I cannot find any posts on the web that tell me where msconfig.exe gets its Manufacturer string. Can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

兮颜 2024-12-08 18:34:30

MSConfig.exe 了解有关安装程序的 bean,它只查看实际的可执行文件。没有任何方法可以将 .exe 文件与复制该文件的安装程序相匹配。

因此它使用不同的显示信息源,即 .exe 文件本身。它使用嵌入在文件中的 Authenticode 证书。任何商业程序都有一个。但是,是的,您的证书很可能会丢失,因为从 Verisign 等公司购买证书需要花费很多钱。值得注意的是,当应用程序要求提升权限时,证书还用于在 UAC 提示中显示发布者的名称。这是获取真实姓名的最可靠方法,其他任何东西都太容易被欺骗。

MSConfig.exe knows beans about your installer, it only looks at the actual executable. There isn't any way to match an .exe file to the installer that copied the file.

So it uses a different source of the info it displays, the .exe file itself. It uses the Authenticode certificate that's embedded in the file. Any commercial program has one. But yes, it is likely to missing from yours because buying a certificate from the likes of Verisign costs a lot of money. Notable is the certificate is also used to display the name of the publisher in the UAC prompt when the app asks for elevation. It is the most reliable way to get the real name, anything else can be too easily spoofed.

°如果伤别离去 2024-12-08 18:34:30

您需要使用程序集信息对话框。

来自 MSDN:

要访问此对话框,请在解决方案资源管理器中选择一个项目节点,
然后,在“项目”菜单上单击“属性”。当项目
出现设计器后,单击“应用程序”选项卡。在申请页面上,
单击“程序集信息”按钮。

msconfig 启动列表中的制造商列与程序集信息对话框中的公司字段相关。

希望这有帮助。

You will need to specify the assembly information for your application using the Assembly Information Dialog Box.

From MSDN:

To access this dialog box, select a project node in Solution Explorer,
and then, on the Project menu, click Properties. When the Project
Designer appears, click the Application tab. On the Application page,
click the Assembly Information button.

The manufacturer column in the msconfig startup list relates to the Company field in the Assembly Information Dialog.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文