[RAPPS] Restore event logging of install/uninstall actions

This commit is contained in:
Mark Jansen
2021-05-08 19:25:16 +02:00
parent 264aaa9e05
commit ae426744a9
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -138,6 +138,9 @@ BOOL CInstalledApplicationInfo::RetrieveIcon(ATL::CStringW& IconLocation)
BOOL CInstalledApplicationInfo::UninstallApplication(BOOL bModify)
{
if (!bModify)
WriteLogMessage(EVENTLOG_SUCCESS, MSG_SUCCESS_REMOVE, szDisplayName);
return StartProcess(bModify ? szModifyPath : szUninstallString, TRUE);
}
+3
View File
@@ -944,6 +944,9 @@ run:
shExInfo.lpParameters = L"";
shExInfo.nShow = SW_SHOW;
/* FIXME: Do we want to log installer status? */
WriteLogMessage(EVENTLOG_SUCCESS, MSG_SUCCESS_INSTALL, InfoArray[iAppId].szName);
if (ShellExecuteExW(&shExInfo))
{
//reflect installation progress in the titlebar