[英]How to auto-upgrade program (Inno Setup) on windows 7 without being admin?
I use Inno setup to install python package (py2exe) on the program files folder. 我使用Inno安装程序将python软件包(py2exe)安装在程序文件文件夹中。 the first installation require admin privileged and it is ok.
第一次安装需要管理员特权,并且可以。
The application has automatically upgrade option (it download the new setup exe ad run it in silence mode) 该应用程序具有自动升级选项(它下载了新的设置exe广告并以静默模式运行)
The problem is that it fails because the user is not admin. 问题是它失败,因为用户不是管理员。
My first though was to install the first installation in {pf} folder, but to install the updated pyc in the user folder. 我的第一步虽然是在{pf}文件夹中安装第一个安装程序,但要在用户文件夹中安装更新的pyc。 and somehow to tell the app to check for pyc in this folder.
并以某种方式告诉应用检查该文件夹中的pyc。 But I don't know how to do it and if it can be done
但是我不知道该怎么做以及是否可以做到
A normal application can not run an installer to update a system wide location without it asking for/requiring full admin access. 普通应用程序无法运行安装程序来更新系统范围的位置,除非它询问/要求完全管理员权限。
As it's best practice to prompt/warn the user before an upgrade the UAC prompt shouldn't be a problem. 作为最佳实践,在升级之前提示/警告用户,UAC提示应该不成问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.