Automatic Installation

If you've ever tried to deploy an application with a large SQL Server CE database (or other large data file), you know that this can be time consuming and cumbersome to do through a Web site or a cradled connection. An easier way to do this is to deploy the application on a memory storage card, such as a Compact Flash card. When the card is inserted into a device, such as a Pocket PC, the user can execute the .cab file to install the application.

With automatic installation, rather than requiring the user to manually execute the .cab file, you can use the Autorun feature to automatically install the application onto a device. When the memory storage card is inserted into a device, the device looks for an executable called Autorun.exe that is stored in a folder that maps to the device's processor type (retrieved from GetSystemInfo). Then, the Autorun.exe file is copied to the \Windows folder and is executed with an install parameter. When the card is removed, the same executable is launched with an uninstall parameter.