
How To Make Program Run As Admin .NET Manifest
The program will only run if you are on the administrator's account, using this code, that should already be in app.config, just change:
to
and it should be good. If you want it to require the highest level of administration/ownership, you can use the following code:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
to
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
and it should be good. If you want it to require the highest level of administration/ownership, you can use the following code:
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Posting Komentar
Posting Komentar