So you are starting to work on developing in SalesLogix Mobile. Perhaps you heard that there is an iPhone app in the works or that we support the storm or you just want to get it onto every Black Berry in the company. You need to make some adjustments to the OOTB Mobile installation and want to know where to get started.
First you need to take the developing for Mobile class from Sage.
This will give you a good footing on what is possible with Mobile and how to do the most common customizations.
But really I wanted to talk about the setup of your environment. To customize the mobile platform you need to be able to compile Java and windows code, deploy it and then have an emulator or simulator to test it on. In training we borrowed some documents from the Mobile team just after they were acquired and had the basic setup listed in the book. Diane tweaked this a bit and streamlined it so that it would work in the classroom. Shortly after I started working at Sage a service pack was released for mobile, I looked at the setup requirements and knowing that I build many, many virtual machines I said “no way am I installing all that each time”. So I started on what I call Jasons Mobile Setup.
I used an open source setup tool called Inno Setup. This gives me an iss file to work with. The contents of the files are:
The title and version of the resulting exe:
[Setup]
AppName=Jason Mobile Setup
AppVerName=5.5
DefaultDirName=C:\Jasons_Mobile_Setup
OutputDir=H:\Jasons_Mobile_Install
OutputBaseFilename=Jasons_Mobile_Setupv5.5
The files I want IN the setup:
[Files]
Source: WindowsMobilePowerToys.msi; DestDir: {app}
Source: standalone_emulator_V1.exe; DestDir: {app}
Source: activeSyn45.msi; DestDir: {app}
Source: efp.msi; DestDir: {app}
Source: BlackBerry_Email_MDS_4.1.4.exe; DestDir: {app}
Source: BlackBerry_JDE_4.2.1.exe; DestDir: {app}
Source: antenna-bin-0.9.15-beta.jar; DestDir: c:\program files\ant\lib
Source: netsvwrap.msi; DestDir: {app}
Source: jdk-1_5_0_07-windows-i586-p.exe; DestDir: {app}
Source: j2me_wireless_toolkit-2_2-windows.exe; DestDir: {app}
Source: BlackBerry_Simulators_4.2.1.85_8700.exe; DestDir: {app}
Source: Desktop_Software_v4.2_SP2.exe; DestDir: {app}
Source: vjredist.exe; DestDir: {app}
Source: paths.bat; DestDir: {app}
Source: apache-ant-1.7.0-bin\ant\bin\ant; DestDir: {pf}\ant\bin
Source: apache-ant-1.7.0-bin\ant\bin\ant.bat; DestDir: {pf}\ant\bin
(truncated because it goes on for lines and lines with all the ant files..
And the order of execution:
[Run]
Filename: msiexec.exe; Parameters: "/i ""{app}\netsvwrap.msi"""
Filename: {app}\standalone_emulator_V1.exe
Filename: msiexec.exe; Parameters: "/i ""{app}\efp.msi"""
Filename: msiexec.exe; Parameters: "/i ""{app}\activeSyn45.msi"""
Filename: msiexec.exe; Parameters: "/i ""{app}\WindowsMobilePowerToys.msi"""
Filename: {app}\jdk-1_5_0_07-windows-i586-p.exe
Filename: {app}\Desktop_Software_v4.2_SP2.exe
Filename: {app}\BlackBerry_Simulators_4.2.1.85_8700.exe
Filename: {app}\j2me_wireless_toolkit-2_2-windows.exe
Filename: {app}\BlackBerry_Email_MDS_4.1.4.exe
Filename: {app}\BlackBerry_JDE_4.2.1.exe
Filename: {app}\vjredist.exe
Filename: {app}\paths.bat
Then I run the iss file through inno setup and I get an exe.
The only real catch (and this is documented in the developers subscription and in the class book) is that the paths are not updated properly in windows 2003 and xp, so I need to edit those manually:
SETX JAVA_HOME "C:\Program Files\Java\jdk1.5.0_07" /M
SETX JAVA_PATH "C:\Program Files\Java\jdk1.5.0_07" /M
SETX ANT_HOME "c:\program files\ant" /M
SET PATH="%PATH%;%ANT_HOME%\lib;%JAVA_HOME%\bin" /M
you can tell what I am doing there.
So why all the files? They are either needed for compilation or for emulation/simulation of the BB or Mobile device. Desktop Manager is in there, Sync is in there and everything else you need except the files needed from SalesLogix specifically.
Hopefully this helps if you have planned your own development environment for mobile you can download Jasons Mobile Setup.exe and at least extract it to the temporary location of your choice and use the files from there if you do not need both the BB and Windows Mobile setup files.
Here is a link to the whole ISS file.5.5.iss
Related Video Short! from the 