Permalink
Browse files

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 07e0924d51f6e7fdfb316143de810be085123c6d
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);

0 comments on commit 07e0924

Please sign in to comment.