How do I control my application's name in the UAC dialog?

偶尔善良 提交于 2020-02-01 02:49:06

问题


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.

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 ...

Edit: The app is digitally signed.


回答1:


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).

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

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



来源:https://stackoverflow.com/questions/1683160/how-do-i-control-my-applications-name-in-the-uac-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!