0

Hey there

So I'm working on a little program, the thing is, it needs admin perms in order to work successfully, and I have no idea how to make the application request the admin perms on startup, any idea?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

its the manifist file i find in the debug folder :)

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Sodabread
0

Try: RequestedExecutionLevel level="requireAdministrator"

First link on Google with "C# run app as admin" yielded this.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.