[RAPPS] Restore event logging of install/uninstall actions

This commit is contained in:
Mark Jansen 2020-10-25 21:19:06 +01:00
parent 264aaa9e05
commit ae426744a9
2 changed files with 6 additions and 0 deletions

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);
}

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