How to run a process as current user privilege from an admin process

后端 未结 3 526
遥遥无期
遥遥无期 2020-12-21 11:39

When a setup program(built by like Inno Setup) does launch a process, the process always be run as administrator privilege. -because setup program had been run as admin.

3条回答
  •  梦毁少年i
    2020-12-21 12:07

    As a launcher you can use the portable powershell app deployment kit (Link). You can edit the deploy-application.ps1 and use Execute-ProcessAsUser to run applications/scripts with the current user even when you launched the powershell app deployment kit as admin

提交回复
热议问题