简体   繁体   English

如何在Inno Setup中强制用户安装具有管理员权限的应用程序?

[英]How to enforce users to install application with admin permissions in Inno Setup?

I'm updating our installer for Windows 7 (based on Inno Setup). 我正在更新Windows 7的安装程序(基于Inno安装程序)。 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... 请指教...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM