Remove still installed but outdated files and start menu entries. Fix for bugs 313 and 314.

This commit is contained in:
Moritz Bunkus 2008-12-06 16:06:38 +00:00
parent a0afa3cb94
commit 70d22fb6db

View File

@ -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"