使用批处理文件安装(Windows 7) [英] Installation with batch file(Windows 7)

查看:118
本文介绍了使用批处理文件安装(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用批处理文件安装小工具。我的批处理文件工作正常

但它提示(安全警告对话框)以获得用户安装权限。这是代码



@ECHO OFF

START HelloWorld.Gadget / Q / I



请指导如何停止该提示并在没有它的情况下安装小工具。

谢谢

I want to install a gadget using a batch file. My batch file is working fine
but it prompt (security warning dialog) for user permission to install. Here is code

@ECHO OFF
START HelloWorld.Gadget /Q /I

Please guide how to stop that prompt and install gadget without that.
Thanks

推荐答案

您需要运行批处理文件作为管理员。



有几种方法可以实现这一目标......例如如果在您自己的PC上,您可以右键单击cmd并选择以管理员身份运行,您可以使用RunAs工具等等



更多想法在哪里 [ ^ ]
You need to run the batch file as Administrator.

There are several ways to achieve this ... e.g. if on your own PC you can right click on cmd and select "Run as Administrator", you can use the RunAs facility etc etc

Some more ideas here[^]


这篇关于使用批处理文件安装(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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