Reputation: 29
http://msdn.microsoft.com/en-us/library/bb384691.aspx is not really helping. Visual Studio enviroment settings isn't making any difference.
Upvotes: 0
Views: 397
Reputation: 24585
[My (upvoted) answer was deleted for some reason. Here it is again.]
The answer to this question is: You cannot bypass the UAC prompt. Read the following blog posting for the many reasons why:
FAQ: Why can’t I bypass the UAC prompt?
Quoting from that FAQ:
The designers of Windows Vista's User Account Control expressly decided not to incorporate functionality like setuid/suid or sudo found in Unix and Unix-like OSes such as Mac OS X. I think they made the right decision.
...
If it were possible to mark an application to run with silently-elevated privileges, what would become of all those apps out there with LUA bugs? Answer: they'd all be marked to silently elevate. How would future software for Windows be written? Answer: To silently elevate. Nobody would actually fix their apps, and end-user applications will continue to require and run with full administrative permissions unnecessarily.
Bill
Upvotes: 1