Run process under current user

前端 未结 3 960
生来不讨喜
生来不讨喜 2021-01-12 03:54

There is \"Setup project\" in VS. During installation I launch another process:

System.Diagnostics.Process process = new System.Diagnostics.Process();
//fill         


        
3条回答
  •  清酒与你
    2021-01-12 04:35

    I have found very simple solution. All that you need it just create a new class and copy text from this link.

    To launch the process call ProcessAsUser.Launch("program name");

提交回复
热议问题