• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29287 (tree)
Time2021-10-30 20:58:45
Authorstefankueng

Log Message

show errors when deploying

Change Summary

Incremental Difference

--- trunk/src/TortoiseSVNSetup/CustomActions/CustomActions11.cpp (revision 29286)
+++ trunk/src/TortoiseSVNSetup/CustomActions/CustomActions11.cpp (revision 29287)
@@ -73,7 +73,16 @@
7373 if (!SUCCEEDED(deployResult.ExtendedErrorCode()))
7474 {
7575 // Deployment failed
76- return deployResult.ExtendedErrorCode();
76+ PMSIHANDLE hRecord = MsiCreateRecord(0);
77+ std::wstring error = L"AddPackageByUriAsync failed (Errorcode: ";
78+ error += std::to_wstring(deployResult.ExtendedErrorCode());
79+ error += L"):\n";
80+ error += deployResult.ErrorText();
81+ MsiRecordSetStringW(hRecord, 0, error.c_str());
82+ MsiProcessMessage(hModule, INSTALLMESSAGE_ERROR, hRecord);
83+ MsiCloseHandle(hRecord);
84+
85+ return ERROR_INSTALL_FAILURE;
7786 }
7887 return ERROR_SUCCESS;
7988 }
Show on old repository browser