FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

UAC - How to specify application name (managed)

 
   Windows (Home) -> Security RSS
Related Topics:
Vista logon with smart card - How do I configure Vista to allow me logon to my home computer using a DoD issued smart card. It is currently used to access my DoD e-mail and for and has the ability to logon to DoD owned systems & networks. The card..

Voice recognition and security - I am presently to the degree that I can't use a keyboard or mouse so Windows Vista voice of the godsend. It works really well in most however whenever it security alert occurs it appears to override voice..

Registering REG Files - Can someone please on how to Register REG Files using things like for all users on a Standard User Computer ? The problem, i guess, lies with the of the registry -- Or Tsemah YSIDE

Restarting a Windows Service with C# under Vista when User.. - Hello! I need to restart the Audio via C#. I'm using the Class to do this. It is no problem under XP and no problem under vista if UAC is disabled. But with enabled UAC i'm getting a

Host Error on Bootup - Father inlaw is running Vista Home Premium 64. He gets this error upon booting. Where do I start? Where do I find this error and how do I fix it? [image: Thanks to everyone. Great forums..
Next:  Security: Microsoft Security Bulletins for May 2007  
Author Message
SugarDaddy

External


Since: May 09, 2007
Posts: 2



(Msg. 1) Posted: Wed May 09, 2007 11:40 am
Post subject: UAC - How to specify application name (managed)
Archived from groups: microsoft>public>windows>vista>general, others (more info?)

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.
Back to top
Login to vote
Ronnie Vernon MVP

External


Since: Jan 30, 2008
Posts: 27



(Msg. 2) Posted: Thu May 10, 2007 6:43 pm
Post subject: Re: UAC - How to specify application name (managed) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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/default.aspx?ForumGroupID=24&SiteID=1


--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"SugarDaddy" <eric.olstad DeleteThis @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.
>
Back to top
Login to vote
SugarDaddy

External


Since: May 09, 2007
Posts: 2



(Msg. 3) Posted: Fri May 11, 2007 8:10 am
Post subject: Re: UAC - How to specify application name (managed) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 10, 9:43 pm, "Ronnie Vernon MVP" <r... DeleteThis @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/default.aspx?ForumGroupID=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/ShowPost.aspx?PostID=1542029&SiteID=1

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

External


Since: Jun 05, 2007
Posts: 1



(Msg. 4) Posted: Tue Jun 05, 2007 3:32 pm
Post subject: Re: UAC - How to specify application name (managed) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 11, 11:10 am, SugarDaddy <eric.ols... RemoveThis @gmail.com> wrote:
> On May 10, 9:43 pm, "Ronnie Vernon MVP" <r... RemoveThis @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/default.aspx?ForumGroupID=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/ShowPost.aspx?PostID=1542029&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)"
Back to top
Login to vote
Display posts from previous:   
       Windows (Home) -> Security All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
  Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact