开发者

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

开发者 https://www.devze.com 2022-12-11 04:00 出处:网络
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开发

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号