Search code examples
windowselectronelevated-privileges

Run electron app as admin windows


I am writing an electron app that I need to run with admin access (like sudo).I haven't created any installer for that app.

I know that I can write sudo electron . in linux to start my app as root but what about windows? Is there any similar command?


Solution

  • You can open Command Prompt as Administrator and then run the app via electron .