I have an exe which when tried to run as administrator shows the program name as TestSampleConsoleSign.exe. Its a simple console application with hello world in it.
namespace TestSampleConsoleSign
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
}
I have also changed the AssemblyTitle field in AssemblyInfo.cs to HelloWorld. But when UAC is enabled the program name still shows as TestSampleConsoleSign.exe instead of HelloWorld. I also tried to signtool by creating a digital certificate using this : http://msdn.microsoft.com/en-us/library/ff699202.aspx and signing my exe with following command
signtool sign /f test.pfx /p password /d HelloWorld TestSampleConsoleSign.exe
I found this solution on How change attributes to UAC? What am I missing? Is this mandatory- How change attributes to UAC?