Skip to content

Commit a7c87ce

Browse files
committed
Setup: Fixed uninstallation of EP installations that have went through upgrades before the proper Pin to Start fix ^2
1 parent 845d2b5 commit a7c87ce

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ep_setup/ep_setup.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,11 +985,14 @@ int WINAPI wWinMain(
985985
{
986986
bOk = DeleteFileW(wszPath);
987987
}
988-
PathRemoveExtensionW(wszPath);
989-
wcscat_s(wszPath, MAX_PATH, L".prev");
990-
if (FileExistsW(wszPath))
988+
if (bOk)
991989
{
992-
bOk = DeleteFileW(wszPath);
990+
PathRemoveExtensionW(wszPath);
991+
wcscat_s(wszPath, MAX_PATH, L".prev");
992+
if (FileExistsW(wszPath))
993+
{
994+
bOk = DeleteFileW(wszPath);
995+
}
993996
}
994997
if (bOk)
995998
{

0 commit comments

Comments
 (0)