Signing an application and CAB file  Building CAB files

Chapter 26: Packaging and Distributing an Application

Delivering your application to end users

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’ Pocket PC devices or emulators. Table 26-4 presents a summary of the types of files you need to distribute. You will distribute most of these components using cabinet (CAB) files. The rest of this chapter describes how you create CAB files and deliver them to your users.

Table 26-4: Distribution checklist

Checklist item

Details

The application

Application files include:

  • The executable (EXE) file

  • Any dynamic libraries ( PKD files)

  • Any files for resources you are delivering separately (BMP, GIF, ICO, JPEG, and PNG files)

Additional files

Additional files might include:

  • Initialization (INI) files

  • Text or sound files

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 must be installed in the \Windows directory on every Pocket PC device or in the \Storage\Windows directory on every Smartphone device:

  • pkvm20.dll

  • pkbgr20.dll

  • pkodb20.dll

  • pkodb20.ini

Database files

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. If you are connecting to an UltraLite database, you must install the pkul920.dll to the \Windows directory on a Pocket PC or the \Storage\Windows directory on a Smartphone device.

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 Synchronization User’s Guide in the SQL Anywhere online books.

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.





Copyright © 2004. Sybase Inc. All rights reserved. Building CAB files

View this book as PDF