Catatan Pekerjaan

Website ini merupakan sarana untuk mengekspresikan apa yang saya pikirkan daripada ngruntel/nggedibal di otak, jadi lebih baik saya menuangkan disini

How To Make Program Run As Admin .NET Manifest

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:

<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" />

How To Make Program Run As Admin .NET Manifest

Post a Comment