From 07e0924d51f6e7fdfb316143de810be085123c6d Mon Sep 17 00:00:00 2001 From: Sysprogs Date: Sun, 16 Dec 2018 10:59:48 -0800 Subject: [PATCH] Added support for removing the uninstaller executable when launched from outside the regular location --- Uninstall/uninstall.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Uninstall/uninstall.cpp b/Uninstall/uninstall.cpp index 5c09a30..c3192ca 100644 --- a/Uninstall/uninstall.cpp +++ b/Uninstall/uninstall.cpp @@ -127,6 +127,7 @@ void DeleteFiles(BazisLib::String path) Directory::Remove(path); MoveFileEx(tsz, NULL, MOVEFILE_DELAY_UNTIL_REBOOT); p[0] = '\\'; + MoveFileEx(tsz, NULL, MOVEFILE_DELAY_UNTIL_REBOOT); MoveFileEx(Path::Combine(path, _T("x86\\WinCDEmuContextMenu.dll")).c_str(), NULL, MOVEFILE_DELAY_UNTIL_REBOOT); MoveFileEx(Path::Combine(path, _T("x64\\WinCDEmuContextMenu.dll")).c_str(), NULL, MOVEFILE_DELAY_UNTIL_REBOOT);