Optional Setup.dll Files for Installation (Windows CE 5.0)

Send Feedback

When you create a cabinet (.cab) file using the CAB Wizard, you can choose to add an optional Setup.dll file. This enables you to specify operations for the installation and uninstallation of your applications on Windows Mobile-based devices.

The following table lists functions that the Setup.dll file exports.

Function Description
  Called before installing an application.

Use this function to check the version of the application during reinstallation and determine if a dependent application exists.

  Called after installation process completes.

Use this function to handle errors that occur during installation of the application.

  Called before removing an application.

Use this function to close a running application before removal begins.

  Called after removal process completes.

Use this function to save database information to a file, delete the database, and tell the customer where data files reside and how to reinstall the application.

Your custom Setup.dll can follow the standard Windows CE format because the .inf file provides a way to specify a Setup.dll.

The following example shows how you can use the CESetupDLL directive in the DefaultInstall section of the .inf file to point to a custom Setup.dll file.

[DefaultInstall.SA]
CESetupDLL = custom_setup.dll

To determine the function prototypes and return values that you must use for the functions in your Setup.dll file, examine the Ce_setup.h header file.

See Also

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.