diff options
Diffstat (limited to 'src/ca/cpsched.cpp')
| -rw-r--r-- | src/ca/cpsched.cpp | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/src/ca/cpsched.cpp b/src/ca/cpsched.cpp index ac0dda59..ebc547ae 100644 --- a/src/ca/cpsched.cpp +++ b/src/ca/cpsched.cpp | |||
| @@ -29,30 +29,6 @@ | |||
| 29 | #define CP_COMPLUSINSTALLCOMMIT L"ComPlusInstallCommit" | 29 | #define CP_COMPLUSINSTALLCOMMIT L"ComPlusInstallCommit" |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | |||
| 33 | /******************************************************************** | ||
| 34 | DllMain - standard entry point for all WiX CustomActions | ||
| 35 | |||
| 36 | ********************************************************************/ | ||
| 37 | extern "C" BOOL WINAPI DllMain( | ||
| 38 | IN HINSTANCE hInst, | ||
| 39 | IN ULONG ulReason, | ||
| 40 | IN LPVOID) | ||
| 41 | { | ||
| 42 | switch(ulReason) | ||
| 43 | { | ||
| 44 | case DLL_PROCESS_ATTACH: | ||
| 45 | WcaGlobalInitialize(hInst); | ||
| 46 | break; | ||
| 47 | |||
| 48 | case DLL_PROCESS_DETACH: | ||
| 49 | WcaGlobalFinalize(); | ||
| 50 | break; | ||
| 51 | } | ||
| 52 | |||
| 53 | return TRUE; | ||
| 54 | } | ||
| 55 | |||
| 56 | /******************************************************************** | 32 | /******************************************************************** |
| 57 | ConfigureComPlusInstall - CUSTOM ACTION ENTRY POINT for installing COM+ components | 33 | ConfigureComPlusInstall - CUSTOM ACTION ENTRY POINT for installing COM+ components |
| 58 | 34 | ||
| @@ -103,7 +79,7 @@ extern "C" UINT __stdcall ConfigureComPlusInstall(MSIHANDLE hInstall) | |||
| 103 | ExitOnFailure(hr, "Failed to initialize COM"); | 79 | ExitOnFailure(hr, "Failed to initialize COM"); |
| 104 | fInitializedCom = TRUE; | 80 | fInitializedCom = TRUE; |
| 105 | 81 | ||
| 106 | CpiInitialize(); | 82 | CpiSchedInitialize(); |
| 107 | 83 | ||
| 108 | // check for the prerequsite tables | 84 | // check for the prerequsite tables |
| 109 | if (!CpiTableExists(cptComPlusPartition) && !CpiTableExists(cptComPlusApplication) && !CpiTableExists(cptComPlusAssembly)) | 85 | if (!CpiTableExists(cptComPlusPartition) && !CpiTableExists(cptComPlusApplication) && !CpiTableExists(cptComPlusAssembly)) |
| @@ -114,7 +90,7 @@ extern "C" UINT __stdcall ConfigureComPlusInstall(MSIHANDLE hInstall) | |||
| 114 | 90 | ||
| 115 | // make sure we can access the COM+ admin catalog | 91 | // make sure we can access the COM+ admin catalog |
| 116 | do { | 92 | do { |
| 117 | hr = CpiGetAdminCatalog(&piCatalog); | 93 | hr = CpiSchedGetAdminCatalog(&piCatalog); |
| 118 | if (FAILED(hr)) | 94 | if (FAILED(hr)) |
| 119 | { | 95 | { |
| 120 | WcaLog(LOGMSG_STANDARD, "Failed to get COM+ admin catalog"); | 96 | WcaLog(LOGMSG_STANDARD, "Failed to get COM+ admin catalog"); |
| @@ -320,7 +296,7 @@ LExit: | |||
| 320 | CpiSubscriptionListFree(&subList); | 296 | CpiSubscriptionListFree(&subList); |
| 321 | 297 | ||
| 322 | // unitialize | 298 | // unitialize |
| 323 | CpiFinalize(); | 299 | CpiSchedFinalize(); |
| 324 | 300 | ||
| 325 | if (fInitializedCom) | 301 | if (fInitializedCom) |
| 326 | ::CoUninitialize(); | 302 | ::CoUninitialize(); |
| @@ -378,7 +354,7 @@ extern "C" UINT __stdcall ConfigureComPlusUninstall(MSIHANDLE hInstall) | |||
| 378 | ExitOnFailure(hr, "Failed to initialize COM"); | 354 | ExitOnFailure(hr, "Failed to initialize COM"); |
| 379 | fInitializedCom = TRUE; | 355 | fInitializedCom = TRUE; |
| 380 | 356 | ||
| 381 | CpiInitialize(); | 357 | CpiSchedInitialize(); |
| 382 | 358 | ||
| 383 | // check for the prerequsite tables | 359 | // check for the prerequsite tables |
| 384 | if (!CpiTableExists(cptComPlusPartition) && !CpiTableExists(cptComPlusApplication) && !CpiTableExists(cptComPlusAssembly)) | 360 | if (!CpiTableExists(cptComPlusPartition) && !CpiTableExists(cptComPlusApplication) && !CpiTableExists(cptComPlusAssembly)) |
| @@ -389,7 +365,7 @@ extern "C" UINT __stdcall ConfigureComPlusUninstall(MSIHANDLE hInstall) | |||
| 389 | 365 | ||
| 390 | // make sure we can access the COM+ admin catalog | 366 | // make sure we can access the COM+ admin catalog |
| 391 | do { | 367 | do { |
| 392 | hr = CpiGetAdminCatalog(&piCatalog); | 368 | hr = CpiSchedGetAdminCatalog(&piCatalog); |
| 393 | if (FAILED(hr)) | 369 | if (FAILED(hr)) |
| 394 | { | 370 | { |
| 395 | WcaLog(LOGMSG_STANDARD, "Failed to get COM+ admin catalog"); | 371 | WcaLog(LOGMSG_STANDARD, "Failed to get COM+ admin catalog"); |
| @@ -580,7 +556,7 @@ LExit: | |||
| 580 | CpiSubscriptionListFree(&subList); | 556 | CpiSubscriptionListFree(&subList); |
| 581 | 557 | ||
| 582 | // unitialize | 558 | // unitialize |
| 583 | CpiFinalize(); | 559 | CpiSchedFinalize(); |
| 584 | 560 | ||
| 585 | if (fInitializedCom) | 561 | if (fInitializedCom) |
| 586 | ::CoUninitialize(); | 562 | ::CoUninitialize(); |
