Chapter 3 — Configuring the Computer
62 751G Color Mobile Computer User’s Manual
readme.txt,,,0
[Files.WinCE]
wcestart.ini,,,0
[RegSettings.All]
HKLM,”SOFTWARE\Microsoft\Shell\AutoHide”,,0x00010001,1; Autohide the taskbar
HKLM,”SOFTWARE\Microsoft\Shell\OnTop”,,0x00010001,0; Shell is not on top
HKLM,”SOFTWARE\Microsoft\Clock”,SHOW_CLOCK,0x00010001,0
; Clock is not on taskbar
Using Installation Functions in Setup.dll
Setup.dll is an optional file that enables you to perform custom operations
during installation and removal of your application. The following list
shows the functions that are exported by Setup.dll.
After the CAB File Extraction
Cab files that need to cause a warm reset after cab extraction will need to
create the __resetmeplease__.txt file in the “\Windows” directory. The
preferred method to create this file is within the DllMain portion of the
Setup.dll file. It looks like this:
#include <windows.h>
#include <Tlhelp32.h>
#include <winioctl.h>
#include <ce_setup.h> // in the public SDK dir
#define IOCTL_TERMINAL_RESET CTL_CODE (FILE_DEVICE_UNKNOWN,FILE_ANY_ACCESS,
2050, METHOD_NEITHER)
BOOL APIENTRY DllMain( HANDLE h, DWORD reason, LPVOID lpReserved )
{
return TRUE;
} // DllMain
//************************************************************************
// $DOCBEGIN$
// BOOL IsProcessRunning( TCHAR * pname );
//
Install_Init Called before installation begins. Use this function to check the application version when reinstalling
an application and to determine if a dependent application is present.
Install_Exit Called after installation is complete. Use this function to handle errors that occur during application
installation.
Uninstall_Init Called before the removal process begins. Use this function to close the application, if the application
is running.
Uninstall_Exit Called after the removal process is complete. Use this function to save database information to a file
and delete the database and to tell the user where the user data files are stored and how to reinstall the
application.
Note: Use [DefaultInstall] > CESelfRegister (page 56) in the .inf file to
point to Setup.dll.