How to properly force a Blackberry Java application to install using Loader.exe

Posted by Kevin White on Stack Overflow See other posts from Stack Overflow or by Kevin White
Published on 2009-06-25T15:43:42Z Indexed on 2010/05/31 3:12 UTC
Read the original article Hit count: 352

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about deployment

Related posts about blackberry