https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ae426744a9f75c4fdd019…
commit ae426744a9f75c4fdd019b1feabc1007f8561e07
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Oct 25 21:19:06 2020 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat May 8 19:25:16 2021 +0200
[RAPPS] Restore event logging of install/uninstall actions
---
base/applications/rapps/installed.cpp | 3 +++
base/applications/rapps/loaddlg.cpp | 3 +++
2 files changed, 6 insertions(+)
diff --git a/base/applications/rapps/installed.cpp
b/base/applications/rapps/installed.cpp
index 5296c3fc6ae..6561ab38ee9 100644
--- a/base/applications/rapps/installed.cpp
+++ b/base/applications/rapps/installed.cpp
@@ -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);
}
diff --git a/base/applications/rapps/loaddlg.cpp b/base/applications/rapps/loaddlg.cpp
index 836bb150ab0..35383607da8 100644
--- a/base/applications/rapps/loaddlg.cpp
+++ b/base/applications/rapps/loaddlg.cpp
@@ -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