diff --git a/MSICALib/MSITSCA.cpp b/MSICALib/MSITSCA.cpp index 3720c2d..bafb10c 100644 --- a/MSICALib/MSITSCA.cpp +++ b/MSICALib/MSITSCA.cpp @@ -22,6 +22,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpRes switch (dwReason) { case DLL_PROCESS_ATTACH: + //assert(0); // Attach debugger here, or press "Ignore"! + // Randomize! srand((unsigned)time(NULL)); @@ -52,9 +54,6 @@ UINT MSITSCA_API EvaluateScheduledTasks(MSIHANDLE hInstall) CString sValue; assert(hRecordProg); -#ifdef ASSERT_TO_DEBUG - assert(0); // Attach debugger here, or press "Ignore"! -#endif // Check and add the rollback enabled state. uiResult = ::MsiGetProperty(hInstall, _T("RollbackDisabled"), sValue); @@ -238,10 +237,6 @@ UINT MSITSCA_API InstallScheduledTasks(MSIHANDLE hInstall) BOOL bIsCoInitialized = SUCCEEDED(::CoInitialize(NULL)); CString sSequenceFilename; -#ifdef ASSERT_TO_DEBUG - assert(0); // Attach debugger here, or press "Ignore"! -#endif - uiResult = ::MsiGetProperty(hInstall, _T("CustomActionData"), sSequenceFilename); if (uiResult == ERROR_SUCCESS) { CMSITSCAOpList lstOperations; diff --git a/MSICALib/StdAfx.h b/MSICALib/StdAfx.h index 7c90653..134ef21 100644 --- a/MSICALib/StdAfx.h +++ b/MSICALib/StdAfx.h @@ -19,7 +19,6 @@ #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #define _WIN32_WINNT 0x0501 // Include Windows XP symbols #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h -//#define ASSERT_TO_DEBUG // Enable false asserts to provide opportunity to attach debuger #ifdef _WINDLL #define MSITSCA_DLL // This is a DLL #endif