User's Manual Part 2

Table Of Contents
Chapter 3 — Configuring the Computer
CN3 Mobile Computer User’s Manual - PRELIMINARY 81
AutoReg
The AutoReg (AUTOREG.EXE) component adds registry information to
the Windows Mobile registry. It has no user interface and is configured
through command line arguments.
Usage:
AutoReg [-D] [-HKey] [-Q] “filename”
Process return code uses standard error codes defined in WINERROR.H.
Example:
; use AutoReg to install this registry information.
autoreg.exe "\Flash File Store\install.reg"
; use AutoReg to install this registry information. Delete the file afterwards.
autoreg.exe -D "\Flash File Store\install.reg"
; use AutoReg to extract registry information to a file.
autoreg.exe -HHKEY_LOCAL_MACHINE\Software\Intermec\Version "\version.reg"
The format of the input file, in this example, is the standard registry format
which should ease the creation of the input file since there are many pub-
licly available utilities to generate a registry file besides Notepad. One
example of a tool is the Microsoft Remote Registry Editor.
AutoCab
AutoCab (AUTOCAB.EXE) extracts files, registry settings, and shortcuts
from Windows Mobile cabinet (.CAB) files. The Windows Mobile startup
sequence invokes AutoCab as a part of AutoExec and AutoRun. During the
Windows Mobile startup sequence, AutoCab processes all CAB files in the
“\CabFiles” directory relative to the current location of Autocab, unless the
location is overridden by command line arguments. AutoCab can run as a
stand-alone program to install a CAB file or a directory of CAB files.
AutoCab only installs the CAB file if it was not installed before by Auto-
Cab. To track the installation of a CAB file, AutoCab marks the CAB file
with the System attribute. This attribute is ignored if the device is perform-
ing a clean-boot on a non-persistent file system.
AutoCab preserves the CAB file after installation if the ReadOnly attribute
is set. If not set, the CAB file is deleted automatically after installation.
Command line switches are described as follows.
Usage:
AutoCab [-ChkRst=][-File=][-Force][-Log=][-Move=][-Quiet=][-Show=][-Signal=]
-D Deletes the registry file after successfully loading it. This allows for systems that have hives implemented.
-H Saves the registry path, and all child entries, to the specific .REG registry file.
-Q Indicates whether a message box should appear when a fatal error occurs.
filename Fully qualified file name to read from or write to, encased in double quotes to support spaces in paths or
file names. See examples below.