AIR 企业部署和更新
当前为企业部署和更新准备 AIR 应用程序的最佳实践是什么?
AIR 更新程序框架很好且方便 - 但也需要管理员权限(据我所知)才能安装更新版本。那么——如何准备一个AIR应用程序,让企业可以轻松地在雇主的终端上安装和更新它呢?
第二个问题,某种程度上相关: 有没有办法让员工自己更新应用程序而不需要获得管理员权限?
第三个问题,与更新程序相关: 有没有办法确定用户是否有足够的权限来实际安装更新 - 并且只有在他有权限时才用更新对话框来烦扰他?
What's currently best practice to prepare an AIR application for enterprise deployment and also updates?
The AIR updater framework is nice and convenient - but also requires admin rights (as far as i'm aware of) to install the updated version. So - how to prepare an AIR application such that an enterprise can easily install and update it on the employer's terminals?
a second question, somehow related:
Is there any way to let the employees update the application themselves without the need of acquiring admin rights?
a third question, related to the updater:
is there any way to determine whether the user has enough rights to actually install the update - and annoy him with the update dialog only if he has?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这听起来像是雇主必须照顾的事情。他们可以使用标准桌面部署工具(例如允许静默安装的 Microsoft SMS 或 IBM Tivoli)来部署 Adobe AIR 和 AIR 应用程序。
如果 IT 管理员代表其组织接受 Adobe AIR 最终用户许可协议,则可以执行诸如取消 Adobe AIR 最终用户许可协议之类的操作。 Windows 中还有一些注册表设置可以阻止安装 Adobe AIR 应用程序(签名或不受信任)和 Adobe AIR 更新。在 Linux 上,
/etc/opt/Adobe AIR/
中有一个配置文件,可以在其中进行更改。但是,如果这些设置允许安装或更新,用户仍然需要管理或系统权限来执行这些操作,而您无法在应用程序中控制这些操作。这取决于系统策略。无论如何,能够执行软件安装或分发的人员都应该拥有管理权限。
您在应用程序中可能需要考虑本机桌面操作,例如剪贴板操作、本地文件 I/O、系统通知和拖放支持。对操作系统的任何限制也将适用于 Adobe AIR 应用程序。此外,如果您从应用程序外部加载内容,该内容将遵守与浏览器加载相同的规则。
根据您的情况,您还可以选择从 Adobe 获取分发许可证不过,最好检查 Adobe 的运行时分发常见问题解答。如果您只想分发桌面应用程序,那么这可能不适用。
Adobe AIR 管理员指南提供了有关此主题的更多信息。 Adobe 在其开发人员连接网站上有一篇关于在企业中分发 AIR 假设已安装并配置 Microsoft Systems Management Server 2003、Microsoft System Center Configuration Manager 2007 或 IBM Tivoli Provisioning Manager Express for Software Distribution 4.1.1。
That sounds like something that the employer would have to take care of. They can deploy Adobe AIR and AIR applications using standard desktop deployment tools like Microsoft SMS or IBM Tivoli which allow silent installations.
IT administrators can do things like suppress the Adobe AIR end-user license agreement if they accept it on behalf of their organization. There are also registry settings in Windows that can prevent prevent installation of Adobe AIR apps (either signed or untrusted) and updates to Adobe AIR. On Linux, there is a configuration file located in
/etc/opt/Adobe AIR/
where the changes can be made.However, if these settings allow for installation or updates, the users will still need administrative or system privileges to perform those operations which is not something you can control from within your application. That is something that is dependent on the system policies. The people who would be able to perform the installations or distribution of the software should have administrative rights anyway.
Things you may want to consider in your application are native desktop operations such as clipboard manipulation, local file I/O, system notifications, and drag-and-drop support. Any restrictions in place on the operating system will apply to Adobe AIR applications as well. Also if you load content from outside the application, that content will observe the same rules as if it were loaded by a browser.
Depending on your situation, you also have the option of acquiring a distribution license from Adobe though it may be best to check Adobe's runtime distribution FAQ. If you just want to distribute a desktop application, then maybe this doesn't apply.
The Adobe AIR Administrator's Guide has more information on this topic. Adobe has a detailed article on their Developer Connection site about distributing AIR in the enterprise assuming that Microsoft Systems Management Server 2003, Microsoft System Center Configuration Manager 2007, or IBM Tivoli Provisioning Manager Express for Software Distribution 4.1.1 has been installed and configured.
要让 Air 自行更新,您只需要指定它所在的 URL(我相信是在 update.xml 文件中)。然后,Air 应用程序每次运行时都会检查 URL 以查看是否有新版本。当谈到“部署”时,只需使用您公司采用的任何形式的软件开发实践(通常是自动化构建、持续集成服务器等)。
但是,您确实需要管理员权限才能安装它,因为它就像任何其他应用程序安装一样。如果用户没有权限,更好的安装方法是在用户启动计算机时将其包含在正常的 Windows 安装脚本中,或者管理员可以随时在客户端计算机上强制执行(就像任何大公司一样)已经)。我相信这更适合在大公司中采用的方法;让一个脚本在启动时和每天晚上(当用户不在时)运行,检查是否需要安装或更新某些内容。
To have Air update on itself, you only need to specify the URL where it can be located (in the update.xml file I believe). The Air app then checks the URL every time it is ran to see if there's a new version. When it comes to 'deployment', just use whatever form of software development practices your company employs (normally automated builds, continuous integration server, etc).
However, you do need admin rights to install it since it's just like any other application installation. If the user doesn't have privileges, the better way to install it would be to include it in the normal windows setup script when the user starts their computer or the admin can force at any time on the client machine (like any large company does already). I believe this is more the approach you'd want to have in a large company; have a script run on startup and every night (when the user is not around) which checks if something needs to be installed or updated.