Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 670
Paul Lalonde Avatar asked Nov 05 '09 20:11

Paul Lalonde


People also ask

What does the user Account control UAC feature do?

User Account Control is a security feature of Microsoft Windows which helps prevent unauthorized changes (which may be initiated by applications, users, viruses, or other forms of malware) to an operating system.

What is UAC dialog?

With UAC enabled, Windows 10 or Windows 11 prompts for consent or prompts for credentials of a valid local administrator account before starting a program or task that requires a full administrator access token. This prompt ensures that no malicious software can be silently installed. The consent prompt.

What is user Account control settings?

User Account Control (UAC) helps prevent malware from damaging a PC and helps organizations deploy a better-managed desktop. With UAC, apps and tasks always run in the security context of a non-administrator account, unless an administrator specifically authorizes administrator-level access to the system.

How do I disable UAC prompts for specific programs in Windows 10?

On your desktop, right click and select New > Shortcut. Paste 'C:\Windows\System32\schtasks.exe /RUN /TN "Name of folder\Name of task" into the text box. This will create a link to your program that will automatically skip the prompt asking for permission to make changes to your computer.


1 Answers

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.

like image 118
Paul Lalonde Avatar answered Oct 28 '22 21:10

Paul Lalonde