Here are the modification steps for a second or third or fourth or whatever application.
- Files for ActiveX Application Loader must be installed in the root directory of your web server. The root structure for this application will be located in /apploader. If you decide to install in another directory than / then you will need to modify the contained files on your own to point the appropriate directory structure.
- entry.do will need to be modified at the following line:
Code:
<a href="/apploader/app_name/download.do">
- download.do will need to be modified at the following lines:
Code:
window.location.href = '/apploader/app_name/entry.do'
Code:
show('look', 'axNoBlackBerry.gif', "Connect your BlackBerry to the USB port on this computer now to load Application_Name.");
Code:
show('message', 'axComplete.gif', "Application Name has been loaded.");
Code:
show('load', 'axReady.gif', "Click below to load Application Name to the connected BlackBerry.<br/><strong>Note:</strong> Your device may reset after loading.");
Code:
frames['CODFrame'].location.href = 'http://server.fqdn.com/apploader/app_name/' + 'download/desktop?os=' + AxLoader.version + '&hwid=' + AxLoader.hwid + '&pin=' + AxLoader.pin;
- In entry.do, there is also a section for putting an application description. This can be changed here:
Code:
<p class="noTop">Description of product</p>
Code:
<ul>
<li><a href="http://www.linktowebsite.com/productinfo/index.html">
Home Page</a></li>
</ul>
Just to note, the above few steps can be completely removed, but they are nice to have, in my opinion. I just grabbed the description from the product's website or from Handango's little write-up on the product. The Home Page link was originally the link to the BlackBerry Messenger User Guide, but for my purposes, I simply changed it to the product's webpage.
- In download/desktop (can be opened with Notepad or any text editor), you will need to change the paths of the COD files (which are stored in /files for each application you install).
Code:
<div id="cod">http://server.fqdn.com/apploader/app_name/files/install_file_1.cod,http://server.fqdn.com/apploader/app_name/files/install_file_2.cod,http://server.fqdn.com/apploader/app_name/files/install_file_3.cod</div>
You will need to include all COD files in this section.
- index.html - edit this as needed for any new applications you configure to be downloaded.
Code:
<h1>Applications</h1>
<h2>Application Name</h2>
<ul>
<li><a href="/apploader/app_name/entry.do">
Information and Download</a></li>
</ul>
That should be pretty much all the needed changes to get it working. The directory structure is as follows:
/apploader
- AxLoader.cab (contains AxLoader.dll and AxLoader.inf)
- index.html (available application downloads)
- readme.txt (basically this post)
/apploader/css
- axload.css (stylesheet; altered from bb.css used on RIM's website)
/apploader/images
- contains the various images that are specific to the ActiveX Application Loader
/apploader/images/layout
- contains the images that are specific to the layout
/apploader/app_name
This folder will be created for each application. When adding a new application, I'd just copy this folder and change the name then edit the above information for the new application.
- blank.html (no content)
- download.do (the actual download page)
- entry.do (introduction and information page)
/apploader/app_name/download
- desktop (contains the listing of files to download)
/apploader/app_name/files
This is where you will put your COD files for distribution to the client handheld.
/apploader/generic
Contains a generic file structure for you to use when creating other application folders.