Run electron app as admin windows

风流意气都作罢 提交于 2019-12-14 01:14:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/45448049/run-electron-app-as-admin-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!