Installing SQL Anywhere on a device or emulator

The SQL Anywhere 10 for Windows CE setup program is launched automatically when you select the Windows CE check box in the SQL Anywhere 10 setup program. You can also start the setup program manually from the Start menu or by running the Setup.exe file in the SQL Anywhere 10 CE\Install directory.

NoteRequired setup selection If you install SQL Anywhere 10 to a device or emulator, make sure you select the International Components for Unicode (ICU) check box (Step 7). If you already installed SQL Anywhere 10 to a device without selecting this check box, you must reinstall SQL Anywhere with the ICU setup selection before running a PocketBuilder application that connects to a SQL Anywhere database.

If you want to install SQL Anywhere directly to a device, ActiveSync or the Windows Mobile Device Center must be installed and running on your desktop computer and on the device.

Each time you run the setup program, you can install to a device or to one of the emulators. If you want to install to a device and an emulator, install to the device, then run the setup.exe program from the SQL Anywhere 10\ce\install directory on the CD and select the emulator. You can also run the setup program from the Windows Start menu.

NoteInstalling UltraLite on a device or emulator The UltraLite DLL and EXE files are not installed by default with the SQL Anywhere 10 for Windows CE setup program. For a Pocket PC or Smartphone device, you can copy these files manually from the ARM and ARM\LIB subdirectories (or the 386 and 386\LIB subdirectories) in the desktop SQL Anywhere 10\UltraLite\CE\ path.

You copy the files to the \Windows directory on a Pocket PC emulator, and to the \Storage\Windows directory for a Smartphone device or emulator. You do not need to install SQL Anywhere on a device or emulator to use the UltraLite DBMS.

StepsTo install SQL Anywhere on a Windows CE device or emulator:

  1. If the setup program starts automatically, click Next on the Welcome page.

    If you started the program manually, skip to step 5.

    The setup program starts automatically if you selected the SQL Anywhere Developer Edition component in the PocketBuilder installation wizard.

    If you have already installed SQL Anywhere on the desktop, you can start the setup program by selecting Programs>Sybase>SQL Anywhere 10>Deploy SQL Anywhere for Windows Mobile from the desktop Start menu. Otherwise, you can Double-click setup.exe in the SA1001_Windows\ce\install directory on the PocketBuilder CD.

  2. On the Choose Destination Location page, click Next to accept the destination folder path shown, or click Browse to select a different path for the Windows CE modules, click OK, and click Next.

  3. On the Select Components page, select the device and emulation environments to which you want to install. Select other components as needed, click Next, then click Next on the Start Copying Files page.

    The setup program installs the SQL Anywhere for CE setup program on your computer.

  4. Select the check box to install to a device now and click Finish.

    If you get a security warning message box on Windows 2003 or Windows Vista, click Run.

    The SQL Anywhere for CE setup program starts automatically. The Choose Setup Language page displays. This is also the first setup page you see if you start the setup program manually.

  5. On the Choose Setup Language page, select the language for the installation and click Next.

  6. On the Deploy SQL Anywhere for Windows CE, select the platform for you connected device, and click Next.

    You can elect to build CAB files for Windows Mobile 5, ARM, or ARMV4T platforms. For PocketBuilder, you would typically select either Windows Mobile 5, ARM, or both.

  7. On the Select Features page, select the International Components for Unicode (UCI check box) and any other components that you want to install to a device or emulator and click Next.

  8. Click Next on the Review Settings Before Building the CAB File page.

    The setup program builds a CAB file for deploying SQL Anywhere to a device or emulator.

  9. On the Install Shield Wizard Complete screen, select the check box to install SQL Anywhere directly to your connected device, then click Finish.

    The setup program installs SQL Anywhere to the connected device or emulator.

    NoteActiveSync not detected error When no device is connected, or ActiveSync or the Windows Mobile Device Center is not running, the setup program attempts to connect to the Pocket PC emulator and fails. Select No when the setup program asks if you would like to try again. The setup program displays a message box indicating that it will build a CAB file. Click OK to create the CAB file.

    If you want to install to both a device and an emulator, select Mobile Device to install to the device. You can install to the emulator later. To install to an emulator when you have a connection to a device, you must first disconnect the device.

    For information about copying the CAB file to the emulator, see “Copying files to a device or emulator”.

    The setup program copies the required files to the connected device or emulator, or builds a CAB file for the specified platform, then displays the Application Downloading Complete dialog box.

  10. Click OK in the Application Downloading Complete dialog box, then click Finish on the Setup Complete page for SQL Anywhere CE.

    The SQL Anywhere CE Readme file and the iAnywhere Online Resources page display if you did not clear the check boxes on the Setup Complete page. After you close these pages, if you entered the SQL Anywhere 10 for Windows CE setup program from the desktop SQL Anywhere setup program, you return to the Setup Complete page (next-to-last step) of the desktop setup program.

  11. If a response window displays on the device or emulator, tap OK (Pocket PC) or press the Action button (Smartphone) to complete the installation.