[RAPPS] Restore event logging of install/uninstall actions
authorMark Jansen <mark.jansen@reactos.org>
Sun, 25 Oct 2020 20:19:06 +0000 (21:19 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 8 May 2021 17:25:16 +0000 (19:25 +0200)
base/applications/rapps/installed.cpp
base/applications/rapps/loaddlg.cpp

index 5296c3f..6561ab3 100644 (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);
 }
 
index 836bb15..3538360 100644 (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