如何正确地强制BlackBerry Java应用程序使用Loader.exe进行安装 [英] How to properly force a Blackberry Java application to install using Loader.exe
问题描述
我想在应用程序加载程序进程的软件安装中,以确保用户在我们的安装程序软件完成时将我们的软件安装在Blackberry上。
我知道这是可能的,因为Aerize Card Loader( http://aerize.com/blackberry/software/ loader / )这样做。当您安装软件时,如果您的Blackberry已连接,则应用程序加载程序将出现并强制.COD文件安装到设备。
我无法使其工作。看看RIM自己的文档,我需要:
- 将ALX和COD文件放在一个子文件夹中:C:\Program Files\\ \\Common Files\Research In Motion\Shared\Applications\
- 在HKCU\Software\Research In Motion\Blackberry\Loader中添加一个ALX文件的路径\Packages
- 通过在命令行中执行此命令来索引应用程序:loader.exe / index
- 通过这样做启动强制加载:loader.exe / defaultUSB / forceload
当我执行最后一个命令时,应用程序加载程序出现并说所有应用程序都已启动到目前为止,没有任何事情需要完成。
如果我通过双击它来执行loader.exe(或输入不带参数的命令),我得到常规应用程序加载程序向导。它显示我的程序列出,但未检查。如果我检查它,然后单击下一步,它将安装到黑莓。 (这是我想避免的部分,而且Aerize Card Loader的安装过程也避免了。)
我缺少什么?看来Aerize安装程序正在做一些不同的事情,但是我无法确定什么。
你可以做到使用以下命令轻松实现:
C:\RIM\JDE_4.7.0\bin\JavaLoader.exe -u加载&。.cod文件>
使用这个命令,你根本不需要一个alx,只是鳕鱼文件。查看JavaLoader使用帮助以查看完整的选项。
I want to include the Application Loader process in a software installation, to ensure that users get our software installed on their Blackberry by the time our installer software finishes.
I know this is possible, because Aerize Card Loader (http://aerize.com/blackberry/software/loader/) does this. When you install their software, if your Blackberry is connected the Application Loader will come up and force the .COD file to install to the device.
I can't make it work. Looking at RIM's own documentation, I need to:
- Place the ALX and COD files into a subfolder here: C:\Program Files\Common Files\Research In Motion\Shared\Applications\
- Add a path to the ALX file in HKCU\Software\Research In Motion\Blackberry\Loader\Packages
- Index the application, by executing this at the command line: loader.exe /index
- Start the force load, by doing this: loader.exe /defaultUSB /forceload
When I execute that last command, the Application Loader comes up and says that all applications are up to date and nothing needs to be done.
If I execute loader.exe by double-clicking on it (or typing in the command with no parameters), I get the regular Application Loader wizard. It shows my program as listed, but un-checked. If I check it and click next, it will install to the Blackberry. (This is the part that I want to avoid, and that Aerize Card Loader's install process avoids.)
What am I missing? It appears that the Aerize installer is doing something different but I haven't been able to ascertain what.
You can do it easily with the following command:
C:\RIM\JDE_4.7.0\bin\JavaLoader.exe -u load <.cod file>
With this command you don't need an alx at all, just the cod file. Look at JavaLoader usage help to see full options.
这篇关于如何正确地强制BlackBerry Java应用程序使用Loader.exe进行安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!