Mercurial > nagslang
comparison packaging/nagslang.nsi @ 674:03fc9cf0f556
We have icons now, so I suppose is needed.
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 08 Sep 2013 18:47:10 +0200 |
parents | 30ae339d7224 |
children |
comparison
equal
deleted
inserted
replaced
673:62b9eac8e236 | 674:03fc9cf0f556 |
---|---|
26 | 26 |
27 ; Dependencies | 27 ; Dependencies |
28 | 28 |
29 !define COMBINED_LICENSE "../LICENSE.txt" | 29 !define COMBINED_LICENSE "../LICENSE.txt" |
30 !define WS_PY2EXE_ZIP "nagslang-${WS_VERSION}.zip" | 30 !define WS_PY2EXE_ZIP "nagslang-${WS_VERSION}.zip" |
31 !define WS_ICON "../data/icons/werewolf-sonata.ico" | |
32 !define WS_WINDOWS_ICON "data\icons\werewolf-sonata.ico" | |
31 !define VCREDIST "vcredist_x86.exe" | 33 !define VCREDIST "vcredist_x86.exe" |
32 !define VCREDIST_KEY "{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" | 34 !define VCREDIST_KEY "{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" |
33 !define UNINSTALLER "Uninstaller.exe" | 35 !define UNINSTALLER "Uninstaller.exe" |
34 | 36 |
35 ; Pages | 37 ; Pages |
45 | 47 |
46 !insertmacro MUI_LANGUAGE "English" | 48 !insertmacro MUI_LANGUAGE "English" |
47 | 49 |
48 ; Other Stuff | 50 ; Other Stuff |
49 | 51 |
52 Icon "${WS_ICON}" | |
50 SetCompress off ; all the big stuff is already compressed | 53 SetCompress off ; all the big stuff is already compressed |
51 | 54 |
52 ; Installer Sections | 55 ; Installer Sections |
53 | 56 |
54 Section "vcredist" | 57 Section "vcredist" |
81 SetOutPath "$INSTDIR" | 84 SetOutPath "$INSTDIR" |
82 | 85 |
83 WriteUninstaller "$INSTDIR\${UNINSTALLER}" | 86 WriteUninstaller "$INSTDIR\${UNINSTALLER}" |
84 | 87 |
85 File "${DIST_FOLDER}\${WS_PY2EXE_ZIP}" | 88 File "${DIST_FOLDER}\${WS_PY2EXE_ZIP}" |
89 File "${WS_ICON}" | |
86 | 90 |
87 ZipDLL::extractall "$INSTDIR\${WS_PY2EXE_ZIP}" "$INSTDIR" | 91 ZipDLL::extractall "$INSTDIR\${WS_PY2EXE_ZIP}" "$INSTDIR" |
88 Delete "$INSTDIR\${WS_PY2EXE_ZIP}" | 92 Delete "$INSTDIR\${WS_PY2EXE_ZIP}" |
89 | 93 |
90 CreateDirectory "$SMPROGRAMS\Werewolf Sonata" | 94 CreateDirectory "$SMPROGRAMS\Werewolf Sonata" |
92 # link.lnk target.exe | 96 # link.lnk target.exe |
93 # parameters icon.file icon_index_number start_options | 97 # parameters icon.file icon_index_number start_options |
94 # keyboard_shortcut description | 98 # keyboard_shortcut description |
95 | 99 |
96 CreateShortCut "$SMPROGRAMS\Werewolf Sonata\Werewolf Sonata ${WS_VERSION}.lnk" "$INSTDIR\${WS_UNPACK}\nagslang.exe" \ | 100 CreateShortCut "$SMPROGRAMS\Werewolf Sonata\Werewolf Sonata ${WS_VERSION}.lnk" "$INSTDIR\${WS_UNPACK}\nagslang.exe" \ |
97 "" "" "" SW_SHOWNORMAL \ | 101 "" "$INSTDIR\${WS_UNPACK}\${WS_WINDOWS_ICON}" "" SW_SHOWNORMAL \ |
98 "" "Werewolf Sonata" | 102 "" "Werewolf Sonata" |
99 | 103 |
100 CreateShortCut "$SMPROGRAMS\Werewolf Sonata\Uninstall Werewolf Sonata ${WS_VERSION}.lnk" "$INSTDIR\${UNINSTALLER}" \ | 104 CreateShortCut "$SMPROGRAMS\Werewolf Sonata\Uninstall Werewolf Sonata ${WS_VERSION}.lnk" "$INSTDIR\${UNINSTALLER}" \ |
101 "" "" "" SW_SHOWNORMAL \ | 105 "" "" "" SW_SHOWNORMAL \ |
102 "" "Uninstall Werewolf Sonata" | 106 "" "Uninstall Werewolf Sonata" |
103 | 107 |
104 SectionEnd | 108 SectionEnd |
105 | 109 |
106 UninstallText "This will uninstall Werewolf Sonata ${WS_VERSION}." | 110 UninstallText "This will uninstall Werewolf Sonata ${WS_VERSION}." |
111 UninstallIcon "${WS_ICON}" | |
107 | 112 |
108 Section "Uninstall" | 113 Section "Uninstall" |
109 ; Delete files not deleted during install | 114 ; Delete files not deleted during install |
115 | |
116 Delete "$INSTDIR\${WS_ICON}" | |
110 | 117 |
111 ; Remove py2exe folder | 118 ; Remove py2exe folder |
112 RMDir /r /REBOOTOK "$INSTDIR\${WS_UNPACK}" | 119 RMDir /r /REBOOTOK "$INSTDIR\${WS_UNPACK}" |
113 | 120 |
114 ; Remove shortcut links | 121 ; Remove shortcut links |