[RAPPS] Uninstall empty directories after its children (#7164)

This commit is contained in:
Whindmar Saksit 2024-07-25 00:22:12 +02:00 committed by GitHub
parent a8b33400a2
commit e87f1d5d91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -370,15 +370,12 @@ InstallFiles(const CStringW &SourceDirBase, const CStringW &Spec,
{ {
success = !ErrorBox(Info.Error); success = !ErrorBox(Info.Error);
} }
else
{
success = AddEntry(UNOP_EMPTYDIR, uninstpath);
}
if (success) if (success)
{ {
success = InstallFiles(from, filespec, to); success = InstallFiles(from, filespec, to);
} }
AddEntry(UNOP_EMPTYDIR, uninstpath);
} }
} }
else else