Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't get by UAC even with signed certificate

Status
Not open for further replies.

gib99

Programmer
Mar 23, 2012
51
CA
Hello,

Sorry if this is the wrong place to post this. Please move it if it's inappropriate.

I'm trying to write a program that can be run as an administrator but without the UAC prompt popping up. I'm thinking that creating a signed certificate to go with it is the answer. But I'm not sure how to do this.

Here's what I've done:

1) In the VS2012 properties, went to Signing and created a pfx file. I entered a password and used the sha256RSA signature algorithm.

2) Right-clicked on the pfx file, clicked "install pfx", and went through the wizard.

3) Recompiled my application.

4) Right-clicked on the exe, went to compatibility, and checked "run this program as an administrator".

5) Ran the exe by double-clicking on it.

The UAC still comes up and the publisher still displays as "unknown".

Am I doing anything wrong? Is there a different way of accomplishing what I want to do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top