[PATCH] subsurface.nsi.in: set icons for the executable shortcuts

Lubomir I. Ivanov neolit123 at gmail.com
Thu Nov 28 03:37:39 UTC 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

The executable shortcuts were lacking icons. This should
do the trick, by using the packaged subsurface.ico.

Perhaps it would be better if we hardcode the icon into
the executable as a resource.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 packaging/windows/subsurface.nsi.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in
index 4b72e1e..2631689 100644
--- a/packaging/windows/subsurface.nsi.in
+++ b/packaging/windows/subsurface.nsi.in
@@ -127,9 +127,9 @@ Section
     # Create shortcuts
     !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
         CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
-        CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Subsurface.lnk" "$INSTDIR\subsurface.exe"
+        CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Subsurface.lnk" "$INSTDIR\subsurface.exe" "" "$INSTDIR\subsurface.ico" 0
         CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall Subsurface.lnk" "$INSTDIR\Uninstall.exe"
-        CreateShortCut "$DESKTOP\Subsurface.lnk" "$INSTDIR\subsurface.exe" ""
+        CreateShortCut "$DESKTOP\Subsurface.lnk" "$INSTDIR\subsurface.exe" "" "$INSTDIR\subsurface.ico" 0
     !insertmacro MUI_STARTMENU_WRITE_END
 
     # Create the uninstaller
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list