Problem and the Solution
Problem: An application we are developing needs to always ask for Admin elevation (even for standard users) to run properly. If the users are standard users, then we need to have the UAC popup with the standard edits to ask for Admin Username and Password. If the user is already an admin and has UAC enabled, it needs to ask for permission to run.
Solution: Once we have your application developed (say MyApp.exe), we need to write a manifest file and either embed that onto the MyApp.exe or include it along with the application to make sure that the application, on Vista, always prompts the user for Admin credentials.
<?
Ways of the Manifest
Now, as I said there are two ways in which this manifest can be used:
Preference
I guess now the question is "Which is preferable?". My typical answer is "It depends". It depends on the targetted audience for the application.
References: