如何使用 Loader.exe 正确强制安装 Blackberry Java 应用程序
我想在软件安装中包含应用程序加载程序进程,以确保用户在我们的安装程序软件完成时将我们的软件安装在他们的 Blackberry 上。
我知道这是可能的,因为 Aerize Card Loader (http://aerize.com/blackberry/software/ loader/) 就是这样做的。 当您安装他们的软件时,如果您的黑莓已连接,应用程序加载器将出现并强制 .COD 文件安装到设备上。
我无法让它发挥作用。 查看 RIM 自己的文档,我需要:
- 将 ALX 和 COD 文件放入此处的子文件夹中: C:\Program Files\Common Files\Research In Motion\Shared\Applications\
- 在 HKCU\Software\ 中添加 ALX 文件的路径Research In Motion\Blackberry\Loader\Packages
- 通过在命令行执行以下命令来索引应用程序: loader.exe /index
- 通过执行以下操作来启动强制加载: loader.exe /defaultUSB /forceload
当我执行最后一个命令时,应用程序加载器出现并表示所有应用程序都是最新的,无需执行任何操作。
如果我通过双击 loader.exe(或键入不带参数的命令)来执行它,我会得到常规的应用程序加载器向导。 它显示我的程序已列出,但未经检查。 如果我选中它并单击“下一步”,它将安装到黑莓上。 (这是我想要避免的部分,也是 Aerize Card Loader 的安装过程避免的部分。)
我错过了什么? Aerize 安装程序似乎做了一些不同的事情,但我无法确定是什么。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用以下命令轻松完成此操作:
使用此命令,您根本不需要 alx,只需要 cod 文件。 查看 JavaLoader 使用帮助以查看完整选项。
You can do it easily with the following command:
With this command you don't need an alx at all, just the cod file. Look at JavaLoader usage help to see full options.
JavaLoader.exe 可以上传一个代码文件。 两个或多个 cod 文件怎么办?
JavaLoader.exe can upload one code file. What about two or more cod files?