Windows 上的 Adobe AIR 非管理员应用程序安装/升级
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/830202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Adobe AIR non-Administrator application installation/upgrade on Windows
提问by bzlm
Is there any way to allow non-Administrator users to install, upgrade or uninstall an Adobe AIR application on Windows?
有没有办法允许非管理员用户在 Windows 上安装、升级或卸载 Adobe AIR 应用程序?
I've made an Adobe AIR application and packaged it as a .air
package using the standard AIR mechanism for creating deployment packages. If a normal or Power user tries to install this AIR application, the Application Event Log shows an error saying administrative rights are required. And even if the user elevates during installation, administrative rights are still required for an upgrade using the automated AIR upgrade system (since an upgrade is essentially, behind the scenes, an uninstallation of a .msi
package followed by an installation of another .msi
package).
我制作了一个 Adobe AIR 应用程序,并.air
使用标准 AIR 机制将其打包为一个包,以创建部署包。如果普通用户或高级用户尝试安装此 AIR 应用程序,应用程序事件日志会显示一个错误,指出需要管理权限。即使用户在安装过程中升级,使用自动 AIR 升级系统进行升级仍然需要管理权限(因为升级本质上是在幕后卸载.msi
包,然后安装另一个.msi
包)。
Is there any way around this?
有没有办法解决?
What I've tried so far is:
到目前为止我尝试过的是:
- Using the Group Policy editor, setting Windows Installer to elevate during installations. Doesn't work, since AIR attempts a "for all users" installation.
- Specifying My Documents as the installation directory. Doesn't work, since AIR attempts a "for all users" installation.
- Giving the user Modify access to the Program Files folder where the application would usually reside. Doesn't work, since this isn't a file permissions issue.
- Making the user a Power User. Doesn't work, since AIR attempts a "for all users" installation.
- 使用组策略编辑器,将 Windows Installer 设置为在安装期间提升。不起作用,因为 AIR 尝试“适用于所有用户”安装。
- 指定我的文档作为安装目录。不起作用,因为 AIR 尝试“适用于所有用户”安装。
- 授予用户对应用程序通常所在的 Program Files 文件夹的修改访问权限。不起作用,因为这不是文件权限问题。
- 使用户成为高级用户。不起作用,因为 AIR 尝试“适用于所有用户”安装。
I'm guessingthat both installing and upgrading would work fine for a user if
我猜如果安装和升级对用户来说都可以正常工作
- the AIR installer would attempt to make an "only for me" application installation instead of a "for all users" installation, and
- the user was a Power User, and possibly
- the application was installed to My Documents
- AIR 安装程序将尝试进行“仅适用于我”的应用程序安装,而不是“适用于所有用户”的安装,并且
- 用户是高级用户,并且可能
- 该应用程序已安装到我的文档
I'm also guessing that this problem doesn't exist on OSX and Linux, since they have more intuitive concepts for per-user application installations.
我也猜测这个问题在 OSX 和 Linux 上不存在,因为它们对每个用户的应用程序安装有更直观的概念。
采纳答案by Kevin Condon
EDIT:As of Adobe AIR 3, you can use a "captive runtime" to avoid the administrator install of AIR. See the descriptions hereand here. Disclaimer -- I haven't actually tried this.
编辑:从 Adobe AIR 3 开始,您可以使用“强制运行时”来避免 AIR 的管理员安装。请参阅此处和此处的说明。免责声明——我还没有真正尝试过这个。
ORIGINAL answer for pre-AIR 3:
pre-AIR 3 的原始答案:
There does not appear to be any way to work around this according to the AIR 1.5 Administrator's Guide section on installing apps, which states:
根据有关安装应用程序的 AIR 1.5 管理员指南部分,似乎没有任何方法可以解决此问题,其中指出:
On Mac OS, to install or update an AIR application, the user needs to have adequate system privileges to install to the application directory (and administrative privileges if the application needs to update the runtime). On Windows, a user needs to have administrative privileges.
在 Mac OS 上,要安装或更新 AIR 应用程序,用户需要有足够的系统权限才能安装到应用程序目录(如果应用程序需要更新运行时,还需要具有管理权限)。在 Windows 上,用户需要具有管理权限。
So this limitation apparently applies to all supported OSs. The tone of the document throughout makes it quite clear that AIR is designed to assure system admins that users will be appropriately locked down. AIR is not the happy pathway from browser to desktop that I'd hoped.
所以这个限制显然适用于所有支持的操作系统。整个文件的基调清楚地表明 AIR 旨在向系统管理员保证用户将被适当地锁定。AIR 并不是我所希望的从浏览器到桌面的快乐途径。
回答by RandomGuy
This description of using the Air SDK to run the application might work on windows, too: http://agoln.net/archives/106Not sure how that interacts with auto-update...
这个使用 Air SDK 运行应用程序的描述也可能适用于 Windows:http: //agoln.net/archives/106不确定它是如何与自动更新交互的...