mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:22:56 +00:00
[RAPPS] Refresh item info after installer completes (#7697)
- Refresh the details view of the item that was just installed. - Hint update of uninstallers list is needed. - Restore focus correctly after installer process finishes. CORE-17677
This commit is contained in:
parent
a610016952
commit
5bc6d59142
10 changed files with 109 additions and 29 deletions
|
@ -142,8 +142,7 @@ struct DownloadInfo
|
|||
AppInfo.GetDownloadInfo(szUrl, szSHA1, SizeInBytes);
|
||||
szName = AppInfo.szDisplayName;
|
||||
IType = AppInfo.GetInstallerType();
|
||||
if (IType == INSTALLER_GENERATE)
|
||||
szPackageName = AppInfo.szIdentifier;
|
||||
szPackageName = AppInfo.szIdentifier;
|
||||
|
||||
CConfigParser *cfg = static_cast<const CAvailableApplicationInfo&>(AppInfo).GetConfigParser();
|
||||
if (cfg)
|
||||
|
@ -452,6 +451,8 @@ ShowLastError(HWND hWndOwner, BOOL bInetError, DWORD dwLastError)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (hWndOwner && !IsWindowVisible(hWndOwner))
|
||||
hWndOwner = NULL;
|
||||
MessageBoxW(hWndOwner, lpMsg, NULL, MB_OK | MB_ICONERROR);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -1090,8 +1091,12 @@ run:
|
|||
SendMessageW(hDlg, WM_SETSTATUS, DLSTATUS_INSTALLING, 0);
|
||||
|
||||
// TODO: issue an install operation separately so that the apps could be downloaded in the background
|
||||
WaitForSingleObject(shExInfo.hProcess, INFINITE);
|
||||
CloseHandle(shExInfo.hProcess);
|
||||
if (shExInfo.hProcess)
|
||||
{
|
||||
WaitForSingleObject(shExInfo.hProcess, INFINITE);
|
||||
CloseHandle(shExInfo.hProcess);
|
||||
SendMessageW(hMainWnd, WM_NOTIFY_INSTALLERFINISHED, 0, (LPARAM)(PCWSTR)Info.szPackageName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue