Using Installation Functions In Setup.dll; After The Cab File Extraction - Intermec 700 Series 700 User Manual

Monochrome mobile computer
Hide thumbs Also See for 700 Series 700:
Table of Contents

Advertisement

Chapter
7
Programming

Using Installation Functions in SETUP.DLL

After the CAB File Extraction

BOOL APIENTRY DllMain( HANDLE hModule, DWORD
lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
if (bInstallSuccessful) {
HANDLE h;
h = CreateFile(L"\\Windows\\__resetmeplease__.txt",
GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_HIDDEN, NULL);
if (h != INVALID_HANDLE_VALUE)
CloseHandle(h);
}
break;
}
return TRUE;
}
254
SETUP.DLL is an optional file that enables you to perform custom opera-
tions during installation and removal of your application. The following
list shows the functions that are exported by SETUP.DLL.
S Install_Init
Called before installation begins. Use this function to check the applica-
tion version when reinstalling an application and to determine if a de-
pendent application is present.
S Install_Exit
Called after installation is complete. Use this function to handle errors
that occur during application installation.
S Uninstall_Init
Called before the removal process begins. Use this function to close the
application, if the application is running.
S 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 246) in the .INF file
to point to SETUP.DLL.
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:
700 Series Monochrome Mobile Computer User's Manual
ul_reason_for_call, LPVOID

Advertisement

Table of Contents
loading

Table of Contents