Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

UAC - How to specify application name (managed)

Closed Thread
 
Thread Tools Display Modes
Old 05-09-2007   #1 (permalink)
SugarDaddy
Guest
 
Posts: n/a

UAC - How to specify application name (managed)

This pertains to .NET apps.

I managed to get the UAC process pretty much understood. I create the
uac.manifest file, the .rc file and generate the .RES file for my
applications. I use the project properties to specify the .RES file.
I also use signtool to sign the executable with my organization's code-
signing certificate. It all works great. Instead of the "Allow/
Cancel" UAC dialog, I get the "Continue/Cancel" UAC dialog, so I'm
happy with that.

So, on the "Continue/Cancel" UAC dialog, in general it shows the
application name and the organization below it. However, on my
managed applications it shows a weird .tmp name and my organization.
How do I get it to show the application name instead of the ugly .tmp
name?

For example. I wrote a little Registry test file that uses UAC. It's
called RegistryTest.exe. After implementing all the UAC stuff
explained above and specifying "requireAdministrator" in the
uac.manifest, the UAC dialog pops up showing the application name as:
"RegBFA6.tmp". Well basically it shows "Reg[4-digit hex].tmp". Why
is this? How do I fix it? I've seen how to do it for unmanaged apps,
but I don't know how to translate it to managed apps.

 
Old 05-09-2007   #2 (permalink)
Mr. Arnold
Guest
 
Posts: n/a

Re: UAC - How to specify application name (managed)


"SugarDaddy" <eric.olstad@gmail.com> wrote in message
news:1178736019.735362.214270@u30g2000hsc.googlegroups.com...
> This pertains to .NET apps.
>
> I managed to get the UAC process pretty much understood. I create the
> uac.manifest file, the .rc file and generate the .RES file for my
> applications. I use the project properties to specify the .RES file.
> I also use signtool to sign the executable with my organization's code-
> signing certificate. It all works great. Instead of the "Allow/
> Cancel" UAC dialog, I get the "Continue/Cancel" UAC dialog, so I'm
> happy with that.
>
> So, on the "Continue/Cancel" UAC dialog, in general it shows the
> application name and the organization below it. However, on my
> managed applications it shows a weird .tmp name and my organization.
> How do I get it to show the application name instead of the ugly .tmp
> name?
>
> For example. I wrote a little Registry test file that uses UAC. It's
> called RegistryTest.exe. After implementing all the UAC stuff
> explained above and specifying "requireAdministrator" in the
> uac.manifest, the UAC dialog pops up showing the application name as:
> "RegBFA6.tmp". Well basically it shows "Reg[4-digit hex].tmp". Why
> is this? How do I fix it? I've seen how to do it for unmanaged apps,
> but I don't know how to translate it to managed apps.
>


I suggest you post to a MS.Public.dotnet NG, as Vista questions are being
posted in them.

 
Old 05-10-2007   #3 (permalink)
Ronnie Vernon MVP
Guest
 
Posts: n/a

Re: UAC - How to specify application name (managed)

SugarDaddy

Microsoft has a free forum, staffed by Microsoft developers who answer these
questions everyday. You can access them here:

MSDN Forums:
http://forums.microsoft.com/MSDN/def...ID=24&SiteID=1


--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"SugarDaddy" <eric.olstad@gmail.com> wrote in message
news:1178736019.735362.214270@u30g2000hsc.googlegroups.com...
> This pertains to .NET apps.
>
> I managed to get the UAC process pretty much understood. I create the
> uac.manifest file, the .rc file and generate the .RES file for my
> applications. I use the project properties to specify the .RES file.
> I also use signtool to sign the executable with my organization's code-
> signing certificate. It all works great. Instead of the "Allow/
> Cancel" UAC dialog, I get the "Continue/Cancel" UAC dialog, so I'm
> happy with that.
>
> So, on the "Continue/Cancel" UAC dialog, in general it shows the
> application name and the organization below it. However, on my
> managed applications it shows a weird .tmp name and my organization.
> How do I get it to show the application name instead of the ugly .tmp
> name?
>
> For example. I wrote a little Registry test file that uses UAC. It's
> called RegistryTest.exe. After implementing all the UAC stuff
> explained above and specifying "requireAdministrator" in the
> uac.manifest, the UAC dialog pops up showing the application name as:
> "RegBFA6.tmp". Well basically it shows "Reg[4-digit hex].tmp". Why
> is this? How do I fix it? I've seen how to do it for unmanaged apps,
> but I don't know how to translate it to managed apps.
>


 
Old 05-11-2007   #4 (permalink)
SugarDaddy
Guest
 
Posts: n/a

Re: UAC - How to specify application name (managed)

On May 10, 9:43 pm, "Ronnie Vernon MVP" <r...@invalid.org> wrote:
> SugarDaddy
>
> Microsoft has a free forum, staffed by Microsoft developers who answer these
> questions everyday. You can access them here:
>
> MSDN Forums:http://forums.microsoft.com/MSDN/def...ID=24&SiteID=1


Thanks for the response. Unfortunately, this question was already
asked in the MSDN forums and has no answer:
http://forums.microsoft.com/MSDN/Sho...42029&SiteID=1

The <assemblyIdentity> element in the uac.manifest seems to have no
effect on signed or unsigned assemblies.

 
Old 06-05-2007   #5 (permalink)
SugarDaddy
Guest
 
Posts: n/a

Re: UAC - How to specify application name (managed)

On May 11, 11:10 am, SugarDaddy <eric.ols...@gmail.com> wrote:
> On May 10, 9:43 pm, "Ronnie Vernon MVP" <r...@invalid.org> wrote:
>
> > SugarDaddy

>
> > Microsoft has a free forum, staffed by Microsoft developers who answer these
> > questions everyday. You can access them here:

>
> > MSDN Forums:http://forums.microsoft.com/MSDN/def...ID=24&SiteID=1

>
> Thanks for the response. Unfortunately, this question was already
> asked in the MSDN forums and has no answer:http://forums.microsoft.com/MSDN/Sho...42029&SiteID=1
>
> The <assemblyIdentity> element in the uac.manifest seems to have no
> effect on signed or unsigned assemblies.


Thanks to Matt on MSDN forums for this solution:

Simply specify the /d switch on signtool to specify the application
name. (I could have sworn I scoured the signtool documentation for
something like this... oh well). So the command in the post-build
step might look something like this:

"$(DevEnvDir)..\Tools\Bin\signtool.exe" sign /n "Name of My
Authenticode Cert in the Store" /t http://timestamp.verisign.com/scripts/timestamp.dll
/d "My Application Name" "$(TargetPath)"

 
 
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intellisense and C# / managed C++ DLL problem. A n g l e r .NET General 2 06-12-2008 10:07 AM
Managed Accounts? sanzlink Live Mail 7 03-30-2008 10:21 AM
UAC - How to specify application name (managed) SugarDaddy Vista General 4 06-05-2007 10:32 AM
Is an app written in XAML a managed app? =?Utf-8?B?TWFub2ogQWdhcndhbA==?= Avalon 7 08-03-2006 01:56 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49