Forced the application to have the administrator privileges

前端 未结 2 873
情深已故
情深已故 2021-02-10 07:36

I need to give my application administrator rights, knowing that it will be run from a user session and not admin account.

I\'ve looked on other sites, but can\'t find a

2条回答
  •  名媛妹妹
    2021-02-10 08:26

    I'm pretty sure that this behaviour is by design.

    ClickOnce apps are designed to be installable without Administrator privileges. It's not possible to elevate them at runtime as this means that effectively a user with no admin rights could install then run the app as admin; this would be a security risk.

提交回复
热议问题