如何让制造商字符串显示在 msconfig“启动”选项卡中?
我有一个在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
您需要使用程序集信息对话框。
来自 MSDN:
msconfig 启动列表中的制造商列与程序集信息对话框中的公司字段相关。
希望这有帮助。
You will need to specify the assembly information for your application using the Assembly Information Dialog Box.
From MSDN:
The manufacturer column in the msconfig startup list relates to the Company field in the Assembly Information Dialog.
Hope this helps.