我创建了一个winform应用程序时,Windows 8 winform不会自动启动。当requestedExecutionLevel设置为“requireAdministrator”
我的程序需要管理员权限工作, 所以我说app.manifest文件具有以下特权:
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
我添加程序到Windows 8的自动启动,所以应该自动启动。 当我将app.manifest更改为以下行时,它在窗口开始时成功加载。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
我该如何用windows启动我的程序并仍然保持其管理员权限?
感谢, 施洛米
这在Windows中特别禁用。用户不知道登录后UAC提示可能来自哪里。 –