Need to help to launch the exe from unelevated code.

Sunil A M 171 Reputation points

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.
Could you please guide me how should i run the above path exe from visual studio WPF solution opened in non admin mode.

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.
8,985 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 77,496 Reputation points

    Use the "runas" verb...