Gaining Admin Permission

Hi,
What is the most standard way in the tool to gain permissions to Admin like
presenting such standard Windows dialog?

What is the most standard way in the tool to check if it is running with Admin
permissions?

Thanks!

Use this:

There is a variable %ISADMIN%:

You can use anywhere, but the real use is for custom actions.