From 65b6941e7c52eff9c8118998151557b2a468a75e Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 21 Feb 2013 14:31:13 +0200 Subject: Some small changes to the Windows NSI script - on uninstall, delete all XSLT files and the "$instdir\xslt" folder itself - manage a desktop icon (i believe we had that before?) - ignore SVG files, as we are now embedding them as static resources Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- packaging/windows/subsurface.nsi.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packaging/windows') diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in index 6a54b9e77..caa120793 100644 --- a/packaging/windows/subsurface.nsi.in +++ b/packaging/windows/subsurface.nsi.in @@ -99,7 +99,6 @@ Section # Files to include in installer File ..\..\subsurface.exe - File ..\..\subsurface-icon.svg File /r ..\..\xslt File dll\iconv.dll File dll\libatk-1.0-0.dll @@ -148,6 +147,7 @@ Section CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Subsurface.lnk" "$INSTDIR\subsurface.exe" CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall Subsurface.lnk" "$INSTDIR\Uninstall.exe" + CreateShortCut "$DESKTOP\Subsurface.lnk" "$INSTDIR\subsurface.exe" "" !insertmacro MUI_STARTMENU_WRITE_END # Create the uninstaller @@ -163,13 +163,13 @@ Section "Uninstall" # Delete installed files Delete "$INSTDIR\*.dll" - Delete "$INSTDIR\*.xslt" + Delete "$INSTDIR\xslt\*.xslt" Delete "$INSTDIR\freetype-config" Delete "$INSTDIR\subsurface.exe" Delete "$INSTDIR\subsurface.ico" - Delete "$INSTDIR\subsurface-icon.svg" Delete "$INSTDIR\Uninstall.exe" RMDir /r "$INSTDIR\share" + RMDir /r "$INSTDIR\xslt" RMDir "$INSTDIR" # Remove shortcuts @@ -177,6 +177,7 @@ Section "Uninstall" Delete "$SMPROGRAMS\$StartMenuFolder\Subsurface.lnk" Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall Subsurface.lnk" RMDir "$SMPROGRAMS\$StartMenuFolder" + Delete "$DESKTOP\Subsurface.lnk" # Remove registry entries DeleteRegKey /ifempty HKCU "Software\Subsurface" -- cgit v1.2.3-70-g09d2