将电子应用程序作为管理窗口运行 [英] Run electron app as admin windows

查看:15
本文介绍了将电子应用程序作为管理窗口运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个需要以管理员权限运行的电子应用程序(例如 sudo).我还没有为该应用程序创建任何安装程序.

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.

我知道我可以在 linux 中编写 sudo electron . 来以 root 身份启动我的应用程序,但是 windows 呢?有没有类似的命令?

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?

推荐答案

您可以以管理员身份打开命令提示符,然后通过 electron 运行应用程序.

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

这篇关于将电子应用程序作为管理窗口运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆