From e912ec0b1be74cbe7cb8c3e63ac748d1bd238f6a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 26 Feb 2010 12:04:33 +0100 Subject: [PATCH] Remove the APPDATA\jobs directory during uninstallation Fix for bug 474. --- installer/mkvtoolnix-unicode.nsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/installer/mkvtoolnix-unicode.nsi b/installer/mkvtoolnix-unicode.nsi index 2d7850586..9d8a3124c 100644 --- a/installer/mkvtoolnix-unicode.nsi +++ b/installer/mkvtoolnix-unicode.nsi @@ -426,11 +426,21 @@ Section Uninstall RMDir "$INSTDIR\doc" RMDir "$INSTDIR\examples" - StrCmp $unRemoveJobs "Yes" 0 +2 + StrCmp $unRemoveJobs "Yes" 0 +8 Delete "$INSTDIR\jobs\*.mmg" RMDir "$INSTDIR\jobs" + SetShellVarContext current + Delete "$APPDATA\mkvtoolnix\jobs\*.mmg" + RMDir "$APPDATA\mkvtoolnix\jobs" + SetShellVarContext all + Delete "$APPDATA\mkvtoolnix\jobs\*.mmg" + RMDir "$APPDATA\mkvtoolnix\jobs" RMDir "$INSTDIR" + SetShellVarContext current + RMDir "$APPDATA\mkvtoolnix" + SetShellVarContext all + RMDir "$APPDATA\mkvtoolnix" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"