如何让安装程序以管理员身份运行
我的应用程序有一个内置的安装程序 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.
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用InstallShield 2008 (14.0) 转到媒体->然后选择“发布”选项卡“Setup.exe”并将“所需执行级别”项更改为“管理员”
With InstallShield 2008 (14.0) go to Media -> Releases then select tab Setup.exe and change the item Required Execution Level to Administrator
您需要从项目选项中将执行级别设置为“需要管理员”。此选项将存储在安装包中包含的清单文件中,它将使安装程序按照使用 运行 Vista 或更新操作系统的计算机上的“以管理员身份运行”选项。旧版本的 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.