Setup.dll File
The device-specific Setup.dll file is an optional file, written by the ISV, that enables you to perform custom operations during installation and removal of your application. The file exports the following functions:
- Install_Init is called before installation begins. You can use this function to check the application version in a reinstall scenario and to determine if a dependent application is present.
- Install_Exit is called after installation completes. You can use this function to handle errors that occurred during installation of the application.
- Uninstall_Init is called before uninstallation begins. You can use this function to close the application, if it is running.
- Uninstall_Exit is called after uninstallation completes. You can use this function to save database data into a file and delete the database, telling the user where the user data files are stored and how to reinstall the application.
Note Once the Setup.dll file is incorporated into the .cab file, it is renamed. You cannot make any assumptions on file name or location of this DLL on the device. Thus, you must specify the full path and file name when you write these functions. Also, you must include the SDK public header file, Ce_setup.h.