如何使安装程序以管理员身份运行 [英] How can I make the installer Run as admin
问题描述
我的应用程序具有内置于installshield的安装程序. 但是要在vista Win 7等操作系统中正确执行安装过程,应以管理员身份运行安装程序. (即使用户具有管理员权限,他也应在右键单击安装程序exe的菜单中选择以管理员身份运行"选项)
My application has an installer built in installshield. But for proper working of installation process in vista Win 7 etc. the installer should be run as administrator. (Even though the user has admin previlege he should select the 'Run as Administrator' option in the menu on rightclicking the installer exe)
如何使安装程序提示应该始终以管理员身份运行.
How can I make my installer to prompt that it should be always run as administrator.
预先感谢...
推荐答案
您需要从项目选项中将执行级别设置为需要管理员".此选项将存储在安装程序包中包含的清单文件中,并使安装程序像使用. Windows的旧版本将忽略清单文件.
You need to set the execution level to "Require Administrator" from the project options. This option will be stored in the manifest file included in your setup package and it will make the installer to act as it was launched with the option "Run as administrator" on machines that run on Vista or a newer OS. Older versions of Windows will ignore the manifest file.
这篇关于如何使安装程序以管理员身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!