如何在特定AIR应用程序上检测和调用用户的AIR运行时本地安装?

时间:2022-05-13 11:24:17

I am writing a program that has an AIR front-end, but a back-end written in another language (Python, in this case). Since AIR can't invoke other executables, the relationship has to be the other way around, with Python running an AIR subprocess. How can I locate the user's AIR runtime? I'd like to be able to do this on Mac, Windows, and Linux.

我正在编写一个程序,它有一个AIR前端,但后端用另一种语言编写(在这种情况下是Python)。由于AIR无法调用其他可执行文件,因此这种关系必须相反,Python运行AIR子进程。如何找到用户的AIR运行时?我希望能够在Mac,Windows和Linux上执行此操作。

(Ironically, this would be super easy if I could package the AIR debug runtime, but the licensing agreement requires that the user download the regular runtime themselves and run the installer.)

(具有讽刺意味的是,如果我可以打包AIR调试运行时,这将非常容易,但许可协议要求用户自己下载常规运行时并运行安装程序。)

1 个解决方案

#1


3  

First, you can get a (free) licenses to redistribute the AIR runtime installed:

首先,您可以获得(免费)许可证来重新分发安装的AIR运行时:

See:

http://www.mikechambers.com/blog/2008/04/07/redistributing-the-adobe-air-runtime-installer/

and

http://www.adobe.com/products/air/runtime_distribution1.html#license

As far as launching an AIR application, you can launch it like any other native applications (since the AIR app is just a native app once it is installed).

就启动AIR应用程序而言,您可以像任何其他本机应用程序一样启动它(因为AIR应用程序在安装后只是一个本机应用程序)。

As far as finding where the user installed the app, at least on Windows, I believe you can get the info programatically from the registry, based on on the appid of the AIR app you want to launch.

至于找到用户安装应用程序的位置,至少在Windows上,我相信您可以根据要启动的AIR应用程序的appid从注册表中以编程方式获取信息。

Finally, you can find a proof of concept on this here:

最后,你可以在这里找到一个概念证明:

http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-concept/

and

http://www.mikechambers.com/blog/2008/01/22/commandproxy-its-cool-but-is-it-a-good-idea/

mike

#1


3  

First, you can get a (free) licenses to redistribute the AIR runtime installed:

首先,您可以获得(免费)许可证来重新分发安装的AIR运行时:

See:

http://www.mikechambers.com/blog/2008/04/07/redistributing-the-adobe-air-runtime-installer/

and

http://www.adobe.com/products/air/runtime_distribution1.html#license

As far as launching an AIR application, you can launch it like any other native applications (since the AIR app is just a native app once it is installed).

就启动AIR应用程序而言,您可以像任何其他本机应用程序一样启动它(因为AIR应用程序在安装后只是一个本机应用程序)。

As far as finding where the user installed the app, at least on Windows, I believe you can get the info programatically from the registry, based on on the appid of the AIR app you want to launch.

至于找到用户安装应用程序的位置,至少在Windows上,我相信您可以根据要启动的AIR应用程序的appid从注册表中以编程方式获取信息。

Finally, you can find a proof of concept on this here:

最后,你可以在这里找到一个概念证明:

http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-concept/

and

http://www.mikechambers.com/blog/2008/01/22/commandproxy-its-cool-but-is-it-a-good-idea/

mike