Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 232
Manos Kounelakis Avatar asked Sep 16 '25 08:09

Manos Kounelakis


1 Answers

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

like image 73
hami Avatar answered Sep 19 '25 08:09

hami