From 70d22fb6db1a60bb63084957998f82332fc2e5ce Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 6 Dec 2008 16:06:38 +0000 Subject: [PATCH] Remove still installed but outdated files and start menu entries. Fix for bugs 313 and 314. --- mkvtoolnix-unicode.nsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mkvtoolnix-unicode.nsi b/mkvtoolnix-unicode.nsi index 11979fe3e..8d1476af1 100644 --- a/mkvtoolnix-unicode.nsi +++ b/mkvtoolnix-unicode.nsi @@ -344,6 +344,16 @@ Section "Program files" SEC01 File "examples\*.xml" File "examples\example-*.txt" + # Delete files that might be present from older installation + # if this is just an upgrade. + Delete "$INSTDIR\base64tool.exe" + Delete "$INSTDIR\doc\base64tool.html" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe" + Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\Command line reference\base64tool CLI reference.lnk" + SetShellVarContext current + Delete "$SMPROGRAMS\$ICONS_GROUP\Documentation\Command line reference\base64tool CLI reference.lnk" + SetShellVarContext all + # Shortcuts !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"