Paul Lalonde
Paul Lalonde

Reputation: 5050

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

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.

Upvotes: 8

Views: 3139

Answers (1)

Paul Lalonde
Paul Lalonde

Reputation: 5050

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.

Upvotes: 16

Related Questions