Need to help to launch the exe from unelevated code.

Sunil A M 171 Reputation points
2022-09-09T09:11:34.79+00:00

HI Team,

I am using the Process.Start("path of exe") to open the exe present in the C:\Program Files\OverlayUI\Debug\overlay.exe.

Tried Steps:

  1. Started visual studio in unelevated mode(non admin) and created one wpf app.
  2. Tried opening the exe(C:\Program Files\OverlayUI\Debug\overlay.exe) present in c:\Programfiles path using precess.start method.

i am getting the bellow error.
239462-image.png
Could you please guide me how should i run the above path exe from visual studio WPF solution opened in non admin mode.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,819 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 84,281 Reputation points
    2022-09-09T09:16:10.407+00:00

    Use the "runas" verb...


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.