Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added support for removing the uninstaller executable when launched f…
…rom outside the regular location
  • Loading branch information
sysprogs committed Dec 16, 2018
1 parent 0e73660 commit 07e0924
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Uninstall/uninstall.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 07e0924

Please sign in to comment.