如何在 UAC 对话框中控制我的应用程序名称? [英] How do I control my application's name in the UAC dialog?

查看:24
本文介绍了如何在 UAC 对话框中控制我的应用程序名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想控制我的应用程序在 UAC 对话框中显示的名称.现在它显示为类似MyCompany.MyApp.exe";我更喜欢MyApp Pro"之类的东西.换句话说,我想要一个简短、友好的短语而不是原始 EXE 文件名.

I would like to control the name of my application as it appears in the UAC dialog. Right now it shows up as something like "MyCompany.MyApp.exe"; I would prefer something like "MyApp Pro". In other words, I would like a short, friendly phrase instead of the raw EXE file name.

我注意到 MMC.EXE 在 UAC 对话框中显示为Microsoft 管理控制台",所以这似乎是可能的.但是如何?一定有一个构建设置来控制这个,我似乎找不到它......

I noticed that MMC.EXE appears in the UAC dialog as "Microsoft Management Console", so it seems to be possible. But how? There must be a build setting somewhere that controls this, I just can't seem to find it ...

该应用已进行数字签名.

The app is digitally signed.

推荐答案

经过一些实验,我发现为 signtool.exe 提供一个 /d 开关参数会做的伎俩.这适用于二进制文件以及 Windows Installer 数据库(.msi 文件).

After some experimentation, I've found that providing a /d switch argument to signtool.exe will do the trick. This works for binaries as well as Windows Installer databases (.msi files).

如果没有提供 /d 开关,UAC 对话框将使用 exe 的 VERSION 资源中的 FileDescription 字段.

If no /d switch was provided, the UAC dialog uses the FileDescription field in the exe's VERSION resource.

对于 .NET 应用程序,这是从 AssemblyTitle 属性填充的.

For .NET apps, this is populated from the AssemblyTitle attribute.

这篇关于如何在 UAC 对话框中控制我的应用程序名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆