mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
[RAPPS] Don't delete downloaded ZIP/CAB even if configured to (#7791)
This commit is contained in:
parent
7f49ae633b
commit
7dc7b866b1
5 changed files with 78 additions and 3 deletions
|
@ -1115,7 +1115,14 @@ end:
|
|||
if (bTempfile)
|
||||
{
|
||||
if (bCancelled || (SettingsInfo.bDelInstaller && Info.DLType == DLTYPE_APPLICATION))
|
||||
DeleteFileW(Path);
|
||||
{
|
||||
// Don't delete .zip/.cab files so the user can extract from them
|
||||
if (bCancelled || Info.IType == INSTALLER_GENERATE || !OpensWithExplorer(Path) ||
|
||||
HIBYTE(ClassifyFile(Path)) != PERCEIVED_TYPE_COMPRESSED)
|
||||
{
|
||||
DeleteFileW(Path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SendMessageW(hDlg, WM_SETSTATUS, DLSTATUS_FINISHED, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue