Deploying the ActiveSync provider for UltraLite

During development you install UltraLite onto your desktop with the SQL Anywhere installer. However, when you deploy UltraLite to the end user, you must manually install and register the ActiveSync provider on the end user's computer. This requirement ensures that ActiveSync knows when to call a specific instance of a provider for a specific application.

  • mlasinst.exe   Installs the ActiveSync provider and registers it with the ActiveSync Manager. This utility also registers applications with the ActiveSync provider for synchronization.

  • mlasdesk.dll   The DLL that is loaded by the ActiveSync Manager on the desktop. mlasinst.exe registers the location of this file with the ActiveSync Manager.

  • mlasdev.dll   The DLL that is loaded by the ActiveSync Manager on the device. mlasinst.exe deploys this file to the correct location on the device.

  • dblgen11.dll   The language resource library.

For a list of supported provider platforms, see [external link] SQL Anywhere Supported Platforms and Engineering Support Status.

To install ActiveSync applications

  1. Ensure that the end-user has:

    • The ActiveSync Manager installed.
    • The ActiveSync provider files copied from a development computer to the user's hard drive.
  2. Run mlasinst to install a provider for ActiveSync. You can also use it to register and deploy the UltraLite application to the user's Windows Mobile device—depending on the command line syntax you use. If your UltraLite application uses multiple files, you must manually copy the required files.

    The following example assumes that both mlasdesk.dll and mlasdev.dll are in the current directory. The -k and -v options are used . The -p and -x options are command line options for the application when it is started by ActiveSync.

    mlasinst "C:\My Files\myULapp.exe" "\Program Files\myULapp.exe"
       "My Application" MYAPP -p -x -v -k

    If you were to use this utility to deploy a pre-compiled CustDB for the ARM 5.0 processor, the command line would be similar to the following one:

    mlasinst -v "install-dir\UltraLite\ce\arm.50"
    "install-dir\UltraLite\ce\arm.50\custdb.exe" custdb.exe CustDB CUSTDBDEMO
    Note

    You can also use the ActiveSync to register your UltraLite application at a later time if you choose. See Registering applications with the ActiveSync Manager.

  3. Restart your computer so ActiveSync can recognize the new provider.

  4. Enable the MobiLink provider.

    1. From the ActiveSync window, click Options.
    2. Check MobiLink Clients in the list and click OK to activate the provider.
    3. To see a list of registered applications, click Options, choose MobiLink Clients, and click Settings.
See also

Registering applications with the ActiveSync Manager