Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 13 of 33

502X Data Collection PC System Manual: Chapter 5: Developing and Installing Applications, pages 103 to 112

Pages 103 to 112 of 310, from 502X Data Collection PC System Manual

The original document is the PDF (2.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 5020

Page 103

Developing and Installing Applications

5

To configure IE with Configuration Management

1. Connect to the 502X using a Web browser and start Unit Manager. For help, see “To connect to the 502X from your desktop PC” in Chapter 4. 2. Click Configure. The Configuration Management screen appears. 3. Click IE Browser. The IE Browser configuration screen appears.

4. Click on a parameter to select it and make changes as needed. For help, see Chapter 7, “Configuration Command Reference.”

IE Browser Keypad Shortcuts The following table lists keypad shortcuts you can use to navigate in the IE browser.

979 3

Standard Keypad

, , ,

" " " " 979 3

Full Alpha Keypad

Function Performed

Displays the menu bar and URL bar.

F

Displays the File menu.

E

Displays the Edit menu.

V

Displays the View menu.

G

Displays the Go menu.

, , ,

Scrolls the window. If a menu is open, changes the highlighted item. Selects next hyperlink.

5-11

Page 104

502X Data Collection PC System Manual

IE Browser Keypad Shortcuts (continued)

( , "7 "9

%

Standard Keypad

%

Full Alpha Keypad

Function Performed

Displays the Help page (this list). Refreshes the current page. Moves back one page. Moves forward one page. Returns home (upper left-hand corner of page). Hides the menu and URL bars. If the bars are already hidden, stops retrieving a web page.

%

Note: If the menu and URL bars are not displayed, pressing will display them. To hide the menu and URL bars, press to place focus on the URL bar and then press .

%

Creating an Application Package In Windows program development, a cabinet file (CAB) is used to install an application on a Windows device. A cabinet file is a single file created to hold a number of application files. A cabinet file typically contains EXE, INF, DLL, and other application components. The 502X uses standard Win32 CAB files. It will also install third-party applications shipped as WinCE CAB files. Note: The 502X runs the embedded version of the Windows CE operating system. Intermec does not guarantee that software designed for the dedicated versions of Windows CE, such as the PalmPC, Handheld PC, and Handheld PC Pro, will function properly on the 502X. For best results, use the Intermec SDK to develop your applications.

Creating a Win32 CAB File The 502X uses standard Win32 CAB files. You can create CAB files using the CABARC program, which is included on the 502X SDK and Support Files CD-ROM. When you install the Intermec SDK, the CABARC program is installed in the TOOLS\CABARC directory on your desktop PC. CAB files created with CABARC are somewhat different from CAB files created with the Windows CE CAB Wizard. CAB files created with CE CAB Wizard can be used on a 502X, but cannot use the enhanced security features and shortcuts available on the 502X.

5-12

Page 105

Developing and Installing Applications

5

Creating a CAB File

INF files

Program files

CABARC Utility SETUP.EXE to install application

Creates CAB files CAB file

Application Manager or ActiveSync to load file

502XS099.eps

Creating a SETUP.DLL to Customize Setup You need to develop a SETUP.DLL file to perform custom operations when you install or remove custom applications on the 502X. The SETUP.DLL file should export the following functions, which are fully documented in the Windows CE Programmer’s Guide (ISBN 1-57231-643-8). This function is called before installation begins. You can use Install_Init to check the application version in a reinstall scenario and to determine if a dependent application is present. Install_Init

Install_Exit This function is called after installation is completed. You can use Install_Exit to handle errors that occurred during installation.

This function is called before the uninstall begins. You can use Uninstall_Init to close the application if it is running. Uninstall_Init

This function is called after the uninstall is completed. You can use Uninstall_Exit to save database data into a file, delete the database, and tell the user where the data files are stored and how to reinstall the application. Uninstall_Exit

5-13

Page 106

502X Data Collection PC System Manual

Installing and Uninstalling Applications This section explains how to install and uninstall applications on your 502X.

Installing Applications You can use the Application Manager application in Unit Manager or ActiveSync to install applications on your 502X. •

Use Application Manager to install applications on your 502X device over a network. For more information about Application Manager, see Chapter 4.

•

Use ActiveSync to establish a partnership between your desktop PC and a 502X device. For help with ActiveSync, see “Using ActiveSync” later in this chapter.

To install an application on the 502X

1. Use CABARC to create your application CAB file, or locate the third-party CAB file on your desktop PC. 2. Transfer the CAB file to the 502X using Application Manager or ActiveSync.

&

3. On the 502X, open the Start menu. 4. Select Run and press . The Run dialog box appears.

5. Do one of the following:

• •

3

&

&

Type the path to your CAB file in the Run dialog box entry field and press . Press to select the Browse button and press . You can browse the Windows directory to find your CAB file. Use the arrow keys to select the desired application and press twice.

&

Note: If the CAB file or extracted files are too large for the available memory, you can choose to delete the CAB file as files are extracted. In the Run dialog box, type SETUP /D filename.CAB where filename is the name of the CAB file. Press . The application will be installed and the CAB file deleted.

&

5-14

Page 107

Developing and Installing Applications

5

The 502X system software automatically associates the CAB file with SETUP.EXE and installs the application. SETUP.EXE extracts the entire contents of the CAB file into the \SETUPTMP directory. SETUP.EXE then uses the information in the INF file to copy files to their destinations, make registry changes, configure the application on the 502X, store the INF file in the application directory, and store the uninstall information in the registry. IMPORTANT! SETUP.EXE writes status messages about the installation to the SETUP.LOG file. The SETUP.LOG is a text file located in the WINDOWS directory of the 502X. Errors or problems with the installation are not displayed on the 502X screen. Only the messages in the SETUP.LOG will indicate what has occurred.

Automatic Application Installation (5020 only) You can automatically install an application during a cold boot by copying an application CAB file to a compact flash or PC card and inserting the card in the 5020. To automatically install an application

1. Use CABARC to create your application CAB file, or locate the third-party CAB file on your desktop PC. 2. Rename the application CAB file OEMINSTALL.CAB. 3. On the host PC, copy the application CAB file to a compact flash or PC card. 4. Insert the storage card in the 5020 and cold boot the device. For more information on cold booting the 5020, see “Cold Booting the 5020” in Chapter 4 of the 5020 user’s manual. When the OEMINSTALL.CAB file is found in the Storage Card folder, SETUP.EXE automatically installs the application from the CAB file. SETUP.EXE does not delete the CAB file after installation. Note: Storage Card may refer to the compact flash or the PC card slot, depending on which card was inserted first. If both slots contain storage cards at cold boot time, the PC card slot is designated as the Storage Card folder, and the compact flash is designated as Storage Card 2. If the PC card slot contains a radio, Ethernet, or other I/O card, the internal compact flash card is designated as the Storage Card folder.

5-15

Page 108

502X Data Collection PC System Manual

Uninstalling Applications When you uninstall an application extracted from a Win32 CAB file using the Remove Programs utility, the SETUP.EXE program removes application information stored in the registry. As part of the uninstall process, all files and registry entries specified in the Files and Registry sections of the INF file are removed. Cold-booting the 502X also uninstalls all applications extracted from WinCE CAB files. Shared system files have their usage count in the registry decremented when the uninstall processes the Files section of the INF file. If the resulting value is zero, the unused shared files are also deleted during the uninstall. To uninstall your application

1. On the 502X, open the Start menu and select Settings. The Control Panel appears.

&

2. Select the Remove Programs icon and press . The Remove Programs Properties dialog box appears.

3

&

3. Use the arrow keys to select the program you want to remove. 4. Press list.

5-16 to select the Remove button and press . The program is removed from the

Page 109

Developing and Installing Applications

5

Understanding the Information File Format Device information files (INF) contain scripts, which are used to control hardware operations. You can use the INF file to add custom applications to the 502X Start menu, the Desktop, and/or the Auto Run list. In all of these cases, the custom application is added at the end of the list. Note: See the Windows CE Programmer’s Guide (ISBN 1-57231-643-8) for essential information about programming for Windows CE devices. The 502X uses the INF file format described in the Windows CE SDK with two extensions added as optional parameters. The %CE99% substitution string resolves the path \WINDOWS\STARTMENU. The following additional parameters were added to the CE Shortcuts format: • shortcut-file-name

• shortcut-type-flag

• target-file/path

•

[standard-destination-path]

•

[run-time-arguments]

•

[working-directory]

•

[user-mode]

•

[application-type]

These parameters are described in the following table.

Parameter

Description shortcut-file-name

This string identifies the shortcut. It is the application’s description and will appear on the desktop or appropriate menu.

shortcut-type-flag

This field is retained for consistency with existing CE applications. A zero or empty represents a shortcut to a file; any non-zero numeric value represents a shortcut to a folder. Since folders are not supported, all shortcuts to folders are ignored without any error indications.

target-file/path

This string specifies the destination directory. It is used to determine the path of the program to execute. This string can be a simple name; for example, MYAPP.EXE, in which case the path will be determined according to where it was installed.

5-17

Page 110

502X Data Collection PC System Manual

Information File Parameters (continued) Parameter

Description

[standard-destination-path]

This string specifies the destination directory for the shortcut. You can use a standard %CEx% path or %InstallDir%. If no value is specified, the target-file/path determines where the application appears:

String

Destination Directory

%CE3% or \WINDOWS\DESKTOP

Desktop

%CE4% or \WINDOWS\STARTUP

AutoStart

%CE11% or \WINDOWS\PROGRAMS

Start Menu, Program submenu

%CE99% or \WINDOWS\STARTMENU

Start Menu

[run-time-arguments]

This string specifies the arguments that are passed to target-file/path when it is started. If it is omitted, then no arguments are passed.

[working-dir]

This string specifies the working directory to be established when target-file/path is started. If it is omitted, the directory containing target-file/path is used.

[user-mode]

This string indicates under which user modes the shortcut is visible. The default is 3, which makes the shortcut visible to both the administrator and the end user. If supplied, it must be one of the following values:

[application-type]

5-18

String

User Mode

1 2 3

Visible to administrator Visible to end user Visible to administrator and end user

This string identifies where this application will appear. If it is omitted, the standarddestination-path parameter determines where it should appear. If supplied, it must be one of the following values. If you want the application to appear in more than one location, you can specify multiple installed locations.

String

Installed Location

1 2 4 8

Desktop Start Menu Start Menu Programs Submenu Auto Start

Page 111

Developing and Installing Applications

5

Using ActiveSync Caution The 502X should be powered by an AC power source when you use ActiveSync. Conseil Il faut alimenter le 502X par une source de courant AC lors de l’exécution du ActiveSync. You can use ActiveSync to synchronize files between the 502X and your desktop PC, to remotely debug applications on the 502X, and to perform other device management activities. When you perform a cold boot, you lose the configuration settings that enable a connection to ActiveSync. IrDA, RF, or Ethernet settings remain after a cold boot.

Installing ActiveSync In addition to the 502X and your desktop PC, you need the following hardware and software components to install ActiveSync and establish a partnership:

•

ActiveSync 3.1. You can download ActiveSync from the Microsoft Web site at www.microsoft.com.

•

ASHelper.exe. ASHelper is an application developed by Intermec that simplifies the initial ActiveSync connecting process. You can download ASHelper at www.intermec.com. Choose Support, then choose Downloads, and select ASHelper from the available downloads list.

•

A D5020B (or higher) Communications Dock or an L5020B (or higher) Serial Communications Adapter, connected to your desktop PC using an Intermec RS-232 cable (Part. No. 070268). Instead of a D5020B or an L5020B, you can connect the 502X to your desktop PC through the IrDA port.

You can also establish a partnership with a batch 5020 connected to the host PC through a serial I/O card. For help, see “Using ActiveSync With a Serial I/O Card” later in this chapter.

5-19

Page 112

502X Data Collection PC System Manual

To install ActiveSync and establish a partnership with your 502X

1. Connect the 502X to your desktop PC using the IrDA port, a D5020B (or higher) Communications Dock, or an L5020B (or higher) Serial Communications Adapter. You must use an Intermec RS-232 cable (Part No. 070268) to connect the D5020B or the L5020B to the desktop PC. For help, see Chapter 3 of your user’s manual. You can also connect the 502X to your desktop PC through the IrDA port or through a serial I/O card in a batch 5020. To use the IrDA port, continue with the next step. To use a serial I/O card, see “Using ActiveSync With a Serial I/O Card” later in this chapter. 2. Download ActiveSync from the Microsoft Web site and follow the onscreen instructions for installing it on your desktop PC. When this process is complete, the Get Connected dialog box appears. Click Cancel. 3. Download ASHelper.exe from the Intermec Web site at www.intermec.com and install it on your desktop PC. 4. Double-click ASHelper. The ASHelper screen appears.

Make sure that COM1 is selected and click OK. Note: For Windows 98, continue with the next step. For Windows 95, go to Step 8.

5-20