Skip to content

Commit

Permalink
Setup: Fixed uninstallation of EP installations that have went throug…
Browse files Browse the repository at this point in the history
…h upgrades before the proper Pin to Start fix ^2
  • Loading branch information
Amrsatrio committed Oct 25, 2023
1 parent 845d2b5 commit a7c87ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ep_setup/ep_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a7c87ce

Please sign in to comment.