13 lines
310 B
C
13 lines
310 B
C
#include <Windows.h>
|
|
#include <Msiquery.h>
|
|
#include <tchar.h>
|
|
|
|
UINT __stdcall AIHelper_SetUnloadEvent(MSIHANDLE hInstall) {
|
|
HANDLE hEvent = OpenEvent(EVENT_MODIFY_STATE, FALSE, _T("Global\\wufuc_UnloadEvent"));
|
|
if (hEvent) {
|
|
SetEvent(hEvent);
|
|
CloseHandle(hEvent);
|
|
}
|
|
return 1;
|
|
}
|