1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

Setup: Fixed uninstallation of EP installations that have went through upgrades before the proper Pin to Start fix ^2

This commit is contained in:
Amrsatrio 2023-10-26 00:16:12 +07:00
parent 845d2b55c9
commit a7c87ce37d

View File

@ -985,11 +985,14 @@ int WINAPI wWinMain(
{
bOk = DeleteFileW(wszPath);
}
PathRemoveExtensionW(wszPath);
wcscat_s(wszPath, MAX_PATH, L".prev");
if (FileExistsW(wszPath))
if (bOk)
{
bOk = DeleteFileW(wszPath);
PathRemoveExtensionW(wszPath);
wcscat_s(wszPath, MAX_PATH, L".prev");
if (FileExistsW(wszPath))
{
bOk = DeleteFileW(wszPath);
}
}
if (bOk)
{