1. need to add an application manifest file
2. modify the application manifest file :
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
there has three level: default asInvoker;Running an application as administrator you need set the level as requireAdministrator