简体   繁体   English

如何在没有管理员的情况下自动升级Windows 7上的程序(Inno Setup)?

[英]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.

相关问题 如何在Inno Setup中强制用户安装具有管理员权限的应用程序? - How to enforce users to install application with admin permissions in Inno Setup? 如何在Windows 7的Inno Setup安装程序中执行“ net use”命令? - How to execute “net use” command from Inno Setup installer on Windows 7? Inno安装程序安装脚本和Windows 7 - inno setup install script and windows 7 Windows 7上的桌面快捷方式图标错误(Inno Setup) - Wrong desktop shortcut icon on Windows 7 (Inno Setup) 启动时如何在Windows 7上以管理员身份自动运行程序? - How to run a program automatically as admin on Windows 7 at startup? 在没有管理员权限的情况下将文件复制到Windows中的C:/ Program Files - Copy files into C:/Program Files in Windows without Admin permissions Windows 7下的Inno Setup 5.5.4(a)错误为“无法导入dll” - Inno Setup 5.5.4(a) under Windows 7 with mistake “cannot import dll” 如何在Windows上升级Git? - How to upgrade Git on windows? 如何在Windows7管理员中设置特定程序以管理员身份访问非管理员用户 - How to Setup particular Programs in Windows7 Administrator access to Non-Admin User 在 Windows Vista/7 上通过 Inno Setup 将文件安装到原始用户的 My Docs 文件夹 - Install files to original user's My Docs folder via Inno Setup on Windows Vista/7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM