Datasheet

Rev. 0.2 2/08 Copyright © 2008 by Silicon Laboratories AN335
AN335
USB DRIVER INSTALLATION UTILITY
1. Description
The driver installer and uninstaller combination is a customizable installation utility for Silicon Laboratories USB
drivers. These utilities are completely independent of the actual driver and no referencing is done by the INF file to
the installer or uninstaller. This is desirable because certification of the driver is not affected by changes in the
installation utility, and the installation utility is not required by the driver if a customer does not want to use it. The
utilities currently work under Windows 2000, XP, Server 2003, and Vista.
This also means that as newer versions of the installer are released, they can be dropped into an existing
installation package without un-certifying or breaking the installation while still taking advantage of the latest bug
fixes or enhancements.
This application note provides a description of utility usage and options. For customization of a driver installation,
use the software and read the document associated with AN220.
2. Installation
The following sections explain how installation works.
2.1. Install Package
The driver installer is built as a single executable that references a file called setup.ini. This INI file contains all of
the settings used for driver installation and uninstallation. This DriverInstaller.exe and setup.ini combo should exist
in a directory alongside the .sys driver files, .inf installation files, and, if the driver is certified, any .cat catalog files.
For example, the USBXpress Driver Package structure looks like this:
\USBXpressInstaller.exe (renamed DriverInstaller.exe)
\setup.ini (customized setup values)
\x64\SiUSBXp.sys (USBXpress driver 64 bit)
\x64\SiLib.sys (support library for USBXpress 64 bit)
\x86\SiUSBXp.sys (USBXpress driver 32 bit)
\x86\SiLib.sys (support library for USBXpress 32 bit)
\SiUSBXp.inf (INF file for the USBXpress driver)
\SiUSBXp.cat (catalog file for the USB driver)
When the USBXpressInstaller.exe is run, it starts by reading in all the values from the setup.ini file. From this, it can
determine if setup should be performed quietly or if the windows and message boxes should be shown. If quiet
mode is selected, then the installation routine begins immediately and no status messages are shown to the user.
If quiet mode is not selected, the main window is populated with the strings specified in the INI file such as
company name, product name, the driver version, etc., and displayed to the user.
2.1.1. Installation Directory Selection
There is an option in the setup.ini file that determines if drivers should be copied to the PC. If driver files are
supposed to be copied to the hard drive, then a default installation directory specified in setup.ini is displayed in the
DriverInstaller window. This directory can be changed by clicking the “Change Install Location Button”. The
installation directory is where the driver package is copied and also where the installation originates. This is so the
original install media (such as a CD or floppy) is not needed every time a device is installed.
The DriverInstaller can also take a default directory from the command line, which will override the default directory
for installation and forces the driver files to be copied regardless of the copy files specification in setup.ini. The
following is an example of how to pass in an installation directory:
USBXpressInstaller.exe “C:\Program Files\Silicon Labs\USBXpress”

Summary of content (10 pages)