When you deliver the executable version of your application to users, you need to make sure that various files and programs are installed in the right places on the users’ devices or emulators. Table 27-5 presents a summary of the types of files you need to distribute. You will distribute most of these components using cabinet (CAB) files.
Checklist item |
Details |
---|---|
The application |
Application files include:
|
Additional files |
Additional files might include:
|
External files |
If the application references external files, such as DLL files accessed by external function calls, install them in the \Windows directory on a Pocket PC or in the \Storage\Windows directory on a Smartphone. |
PocketBuilder runtime DLLs |
The following DLLs can or must be installed in the \Windows directory on every Pocket PC device or in the \Storage\Windows directory on every Smartphone device:
You can use the Enhanced CAB Generation tool to select the DLL files you want to include in the CAB file that the tool generates for deployment of your application. For more information, see “Building CAB files with the Enhanced CAB Generation tool”. |
Database files |
You must install the pkodb25.ini initialization file, along with the pkodb25.dll file, for ODBC database support. If the application needs to access a local database, install the database files on each device. Typically you install the data source (the DSN file) in the device’s root directory, and install the database and its log file in the same directory as the application. Make sure that the DSN file references the location where you install the database. |
Network server |
If the application needs to access a consolidated database on a server, the device must be properly connected, and the databases on the device and the server must be correctly configured. For more information about synchronizing databases on the server and device, see the chapter in the Resource Guide about using MobiLink synchronization and the Mobilink Server Administration book in the SQL Anywhere online book collection. |
Windows CE registry |
If you rely on the Windows CE registry to manage information needed by the application, update the registry on each device with required values. |
The rest of this chapter describes how you create CAB files and deliver them to your users. You can build CAB files with the Project painter or with the Enhanced CAB Generation tool.