Forcing an application to always run as elevated is controlled by the requestExecutionLevel parameter in the application manifest file.
All you have to do is add a new element to your project and select "Application Manifest". The correct settings will be indicated in the file with a list of comments. Change requestExecutionLevel to requireAdministrator and you will be installed.
source share