diff --git a/MSICALib/MSITSCA.cpp b/MSICALib/MSITSCA.cpp index bd775cc..810fa0c 100644 --- a/MSICALib/MSITSCA.cpp +++ b/MSICALib/MSITSCA.cpp @@ -235,6 +235,8 @@ UINT MSITSCA_API InstallScheduledTasks(MSIHANDLE hInstall) AMSICA::COpList lstOperations; BOOL bIsCleanup = ::MsiGetMode(hInstall, MSIRUNMODE_COMMIT) || ::MsiGetMode(hInstall, MSIRUNMODE_ROLLBACK); + //assert(0); // Attach debugger here, or press "Ignore"! + // Load operation sequence. hr = lstOperations.LoadFromFile(sSequenceFilename); if (SUCCEEDED(hr)) { @@ -317,7 +319,7 @@ UINT MSITSCA_API InstallScheduledTasks(MSIHANDLE hInstall) } ::DeleteFile(sSequenceFilename); - } else if (hr == ERROR_FILE_NOT_FOUND && bIsCleanup) { + } else if (hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) && bIsCleanup) { // Sequence file not found and this is rollback/commit action. Either of the following scenarios are possible: // - The delayed action failed to save the rollback/commit file. The delayed action performed cleanup itself. No further action is required. // - Somebody removed the rollback/commit file between delayed action and rollback/commit action. No further action is possible. diff --git a/MSICALib/MSITSCA.h b/MSICALib/MSITSCA.h index 362cd07..d0b106c 100644 --- a/MSICALib/MSITSCA.h +++ b/MSICALib/MSITSCA.h @@ -6,14 +6,14 @@ // Constants //////////////////////////////////////////////////////////////////////////// -#define MSITSCA_VERSION 0x02000100 +#define MSITSCA_VERSION 0x02000200 #define MSITSCA_VERSION_MAJ 2 #define MSITSCA_VERSION_MIN 0 -#define MSITSCA_VERSION_REV 1 +#define MSITSCA_VERSION_REV 2 -#define MSITSCA_VERSION_STR "2.0.1" -#define MSITSCA_VERSION_INST "2.0.1" +#define MSITSCA_VERSION_STR "2.0.2" +#define MSITSCA_VERSION_INST "2.0.2" #if !defined(RC_INVOKED) && !defined(MIDL_PASS) diff --git a/MSICALib/StdAfx.h b/MSICALib/StdAfx.h index c41f440..aa2c790 100644 --- a/MSICALib/StdAfx.h +++ b/MSICALib/StdAfx.h @@ -34,6 +34,7 @@ #include "AMSICA.h" +//#include #include #include #include