Remove locale directories during upgrade and uninstallation.

The old "german" locale directory should be removed during upgrades.
The "de" and "ja" locale directories should be removed during uninstallation.
Fixes for bug 361.
This commit is contained in:
Moritz Bunkus 2009-03-23 14:57:58 +01:00
parent 012a497048
commit ee75273cbd

View File

@ -145,6 +145,10 @@ Section "Program files" SEC01
Delete "$INSTDIR\libcharset.dll"
Delete "$INSTDIR\libiconv.dll"
Delete "$INSTDIR\locale\german\LC_MESSAGES\mkvtoolnix.mo"
RMDir "$INSTDIR\locale\german\LC_MESSAGES"
RMDir "$INSTDIR\locale\german"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe"
Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\Command line reference\base64tool CLI reference.lnk"
SetShellVarContext current
@ -302,10 +306,14 @@ Section Uninstall
Delete "$INSTDIR\examples\matroskasegmentinfo.dtd"
Delete "$INSTDIR\examples\matroskatags.dtd"
Delete "$INSTDIR\locale\german\LC_MESSAGES\mkvtoolnix.mo"
Delete "$INSTDIR\locale\de\LC_MESSAGES\mkvtoolnix.mo"
RMDir "$INSTDIR\locale\de\LC_MESSAGES"
RMDir "$INSTDIR\locale\de"
Delete "$INSTDIR\locale\ja\LC_MESSAGES\mkvtoolnix.mo"
RMDir "$INSTDIR\locale\ja\LC_MESSAGES"
RMDir "$INSTDIR\locale\ja"
RMDir "$INSTDIR\locale\german\LC_MESSAGES"
RMDir "$INSTDIR\locale\german"
RMDir "$INSTDIR\locale"
RMDir "$INSTDIR\data"
RMDir "$INSTDIR\doc\images"