troubleshooting Question

Forcing "User Account Control" dialog when a user runs the utility

Avatar of MikhailGol
MikhailGol asked on
.NET Programming
2 Comments1 Solution190 ViewsLast Modified:
One of the utilities in my project does some software configuration and needs full access to "Program Files\..." folder. It also registers some COM-objects, etc. Thus, the utility needs the user to login as administrator. So, before proceeding the utility checks if the user is administrator.

Under Vista a user can right-click on the program icon and select "run as administrator". Doing so pops up a User Account Control window asking for administrator credentials. It is also possible to change a link settings to "run as administrator".

I want the "User Account Control" window to popup when a user starts my utility. How can I do that? Is the only way to do that - by changing link properties? I believe there should be some way to force Windows to run User Account Control window.

I would appreciate any input. .NET or Win API, anything.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros