Please see my comments to Solution 1.
Perhaps, you should start with discussing what are you doing that would require elevated privileges. Is it really needed.
For manifest approach, please see:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[
^].
I won't eliminate UAC request, it will just avoid some permission exception by enforcing elevated privileges
in the very beginning.
If you are irritated by UAC requests, it's possible that you don't quite understand the ideas. Please read this:
http://en.wikipedia.org/wiki/User_Account_Control[
^].
The idea is not to disable UAC (would be a really bad idea) and not to use it by having the UAC request and responding to it all the time. The real idea is to thoroughly sort the applications and utilities which really need elevation, and those which should better comply with the OS requirements and behave in more legitimate ways, without requesting more privileges. In particular, you should not place your files in wrong places. Instead, you should use "special folders". Failure to comply with the requirements related to the right legitimate directories is one of the most common mistakes leading to permission problems. Please see my past answer:
How to find my programs directory[
^].
—SA