如何在 Inno Setup 中强制用户安装具有管理员权限的应用程序?
我正在更新 Windows 7 的安装程序(基于 Inno Setup)。我想到的是,如果用户不以管理员权限运行安装程序,则稍后无法直接从安装程序启动应用程序。所以我想强制他以管理员权限运行安装程序。那么该怎么做呢?我应该停止安装过程并告诉他以正确的权限运行它吗? 如果是这样 - 如何识别他是否使用管理员权限?
寻找最佳实践。请指教...
I'm updating our installer for Windows 7 (based on Inno Setup). What came into my mind is that if the user does not run the installer with admin permissions, later on the application cannot be launched directly from the installer. So I'd like to enforce him to run the installer with administrator permissions. So how to do it? Should I stop the installation process and tell him to run it with the right permissions?
If so - how to identify if he uses admin permissions?
Looking for best practices. Please advice...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.jrsoftware.org/ishelp/index.php?topic=setup_privilegesrequired
http://www.jrsoftware.org/ishelp/index.php?topic=setup_privilegesrequired