| Index: src/installer-ca/abp_ca.cpp |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/src/installer-ca/abp_ca.cpp |
| @@ -0,0 +1,37 @@ |
| +//------------------------------------------------------------------------------------------------- |
| +// <copyright file="wixca.cpp" company="Outercurve Foundation"> |
| +// Copyright (c) 2004, Outercurve Foundation. |
| +// This software is released under Microsoft Reciprocal License (MS-RL). |
| +// The license and further copyright text can be found in the file |
| +// LICENSE.TXT at the root directory of the distribution. |
| +// </copyright> |
| +// |
| +// <summary> |
| +// Windows Installer XML CustomAction DllMain function. |
| +// </summary> |
| +//------------------------------------------------------------------------------------------------- |
| +#include "precomp.h" |
| + |
| +/******************************************************************** |
| +DllMain - standard entry point for all WiX CustomActions |
| + |
| +********************************************************************/ |
| +extern "C" BOOL WINAPI DllMain( |
| + IN HINSTANCE hInst, |
| + IN ULONG ulReason, |
| + IN LPVOID) |
| +{ |
| + switch (ulReason) |
| + { |
| + case DLL_PROCESS_ATTACH: |
| + WcaGlobalInitialize(hInst); |
| + break; |
| + |
| + case DLL_PROCESS_DETACH: |
| + WcaGlobalFinalize(); |
| + break; |
| + } |
| + |
| + return TRUE; |
| +} |
| + |