1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
; Script generated by the HM NIS Edit Script Wizard.
!cd ..
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Crossfire Client"
!define PRODUCT_VERSION "1.12.0"
!define PRODUCT_PUBLISHER "Crossfire Project"
!define PRODUCT_WEB_SITE "http://crossfire.real-time.com/"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Crossfire Client Gtkv2"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
SetCompressor lzma
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "pixmaps\client.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "nsis-tmp\COPYING.txt"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Crossfire"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Start the client"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchClient"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Win32-Readme.txt"
!insertmacro MUI_PAGE_FINISH
Function LaunchClient
#Exec "cd $INSTDIR"
SetOutPath $INSTDIR
Exec "crossfire-client-gtk2.exe"
FunctionEnd
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Crossfire client Gtk v2 1.12.0.exe"
InstallDir "$PROGRAMFILES\Crossfire\Gtk Client v2"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails hide
ShowUnInstDetails hide
Section "!Client" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "nsis-tmp\SDL_image.dll"
File "nsis-tmp\SDL.dll"
File "nsis-tmp\pthreadGC2.dll"
File "nsis-tmp\libxml2.dll"
File "nsis-tmp\libtiff3.dll"
File "nsis-tmp\libpng12-0.dll"
File "nsis-tmp\libpangowin32-1.0-0.dll"
File "nsis-tmp\libpangocairo-1.0-0.dll"
File "nsis-tmp\libpango-1.0-0.dll"
File "nsis-tmp\libgtk-win32-2.0-0.dll"
File "nsis-tmp\libgobject-2.0-0.dll"
File "nsis-tmp\libgmodule-2.0-0.dll"
File "nsis-tmp\libglib-2.0-0.dll"
File "nsis-tmp\libglade-2.0-0.dll"
File "nsis-tmp\libgio-2.0-0.dll"
File "nsis-tmp\libgdk-win32-2.0-0.dll"
File "nsis-tmp\libgdk_pixbuf-2.0-0.dll"
File "nsis-tmp\libcurl-4.dll"
File "nsis-tmp\libcairo-2.dll"
File "nsis-tmp\libatk-1.0-0.dll"
File "nsis-tmp\intl.dll"
File "nsis-tmp\iconv.dll"
File "nsis-tmp\gtk-query-immodules-2.0.exe"
File "nsis-tmp\gspawn-win32-helper-console.exe"
File "nsis-tmp\gspawn-win32-helper.exe"
File "nsis-tmp\gdk-pixbuf-query-loaders.exe"
File "gtk-v2\src\crossfire-client-gtk2.exe"
File "nsis-tmp\zlib1.dll"
SetOutPath "$INSTDIR\glade-gtk2"
File "gtk-v2\glade\README"
File "gtk-v2\glade\dialogs.glade"
File "gtk-v2\glade\gtk-v2.glade"
SetOutPath "$INSTDIR\pixmaps"
File "pixmaps\16x16.png"
File "pixmaps\32x32.png"
File "pixmaps\48x48.png"
File "pixmaps\all.xpm"
File "pixmaps\applied.xbm"
File "pixmaps\applied.xpm"
File "pixmaps\bg.xpm"
File "pixmaps\clear.xbm"
File "pixmaps\client.ico"
File "pixmaps\close.xbm"
File "pixmaps\close.xpm"
File "pixmaps\coin.xpm"
File "pixmaps\crossfiretitle.xpm"
File "pixmaps\cursed.xbm"
File "pixmaps\cursed.xpm"
File "pixmaps\damned.xbm"
File "pixmaps\damned.xpm"
File "pixmaps\dot.xpm"
File "pixmaps\hand.xpm"
File "pixmaps\hand2.xpm"
File "pixmaps\lock.xpm"
File "pixmaps\locked.xbm"
File "pixmaps\locked.xpm"
File "pixmaps\mag.xpm"
File "pixmaps\magic.xbm"
File "pixmaps\magic.xpm"
File "pixmaps\nonmag.xpm"
File "pixmaps\question.sdl"
File "pixmaps\question.xpm"
File "pixmaps\sign_east.xpm"
File "pixmaps\sign_flat.xpm"
File "pixmaps\sign_west.xpm"
File "pixmaps\skull.xpm"
File "pixmaps\stipple.111"
File "pixmaps\stipple.112"
File "pixmaps\test.xpm"
File "pixmaps\unlock.xpm"
File "pixmaps\unpaid.xbm"
File "pixmaps\unpaid.xpm"
File "pixmaps\question.111"
SetOutPath "$INSTDIR\themes"
File "themes\Black"
File "themes\Standard"
SetOutPath "$INSTDIR"
File "nsis-tmp\COPYING.txt"
File "Win32-Readme.txt"
; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Crossfire Client.lnk" "$INSTDIR\crossfire-client-gtk2.exe" "" "$INSTDIR\pixmaps\client.ico"
CreateShortCut "$DESKTOP\Crossfire Client.lnk" "$INSTDIR\crossfire-client-gtk2.exe" "" "$INSTDIR\pixmaps\client.ico"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "Additional layouts" SEC02
SetOutPath "$INSTDIR\glade-gtk2"
SetOverwrite ifnewer
File "gtk-v2\glade\caelestis.glade"
File "gtk-v2\glade\chthonic.glade"
File "gtk-v2\glade\eureka.glade"
File "gtk-v2\glade\gtk-v1.glade"
File "gtk-v2\glade\lobotomy.glade"
File "gtk-v2\glade\meflin.glade"
File "gtk-v2\glade\oroboros.glade"
File "gtk-v2\glade\un-deux.glade"
File "gtk-v2\glade\v1-redux.glade"
; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -AdditionalIcons
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\crossfire-client-gtk2.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\pixmaps\client.ico"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "All necessary files to play the game"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "A few different window layouts"
!insertmacro MUI_FUNCTION_DESCRIPTION_END
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "The Crossfire client was successfully removed from your computer."
FunctionEnd
Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove the Crossfire client and all of its components?" IDYES +2
Abort
FunctionEnd
Section Uninstall
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\COPYING.txt"
Delete "$INSTDIR\Win32-Readme.txt"
Delete "$INSTDIR\question.111"
Delete "$INSTDIR\themes\Standard"
Delete "$INSTDIR\themes\Black"
Delete "$INSTDIR\pixmaps\unpaid.xpm"
Delete "$INSTDIR\pixmaps\unpaid.xbm"
Delete "$INSTDIR\pixmaps\unlock.xpm"
Delete "$INSTDIR\pixmaps\test.xpm"
Delete "$INSTDIR\pixmaps\stipple.112"
Delete "$INSTDIR\pixmaps\stipple.111"
Delete "$INSTDIR\pixmaps\skull.xpm"
Delete "$INSTDIR\pixmaps\sign_west.xpm"
Delete "$INSTDIR\pixmaps\sign_flat.xpm"
Delete "$INSTDIR\pixmaps\sign_east.xpm"
Delete "$INSTDIR\pixmaps\question.xpm"
Delete "$INSTDIR\pixmaps\question.sdl"
Delete "$INSTDIR\pixmaps\nonmag.xpm"
Delete "$INSTDIR\pixmaps\magic.xpm"
Delete "$INSTDIR\pixmaps\magic.xbm"
Delete "$INSTDIR\pixmaps\mag.xpm"
Delete "$INSTDIR\pixmaps\locked.xpm"
Delete "$INSTDIR\pixmaps\locked.xbm"
Delete "$INSTDIR\pixmaps\lock.xpm"
Delete "$INSTDIR\pixmaps\hand2.xpm"
Delete "$INSTDIR\pixmaps\hand.xpm"
Delete "$INSTDIR\pixmaps\dot.xpm"
Delete "$INSTDIR\pixmaps\damned.xpm"
Delete "$INSTDIR\pixmaps\damned.xbm"
Delete "$INSTDIR\pixmaps\cursed.xpm"
Delete "$INSTDIR\pixmaps\cursed.xbm"
Delete "$INSTDIR\pixmaps\crossfiretitle.xpm"
Delete "$INSTDIR\pixmaps\coin.xpm"
Delete "$INSTDIR\pixmaps\close.xpm"
Delete "$INSTDIR\pixmaps\close.xbm"
Delete "$INSTDIR\pixmaps\client.ico"
Delete "$INSTDIR\pixmaps\clear.xbm"
Delete "$INSTDIR\pixmaps\bg.xpm"
Delete "$INSTDIR\pixmaps\applied.xpm"
Delete "$INSTDIR\pixmaps\applied.xbm"
Delete "$INSTDIR\pixmaps\all.xpm"
Delete "$INSTDIR\pixmaps\48x48.png"
Delete "$INSTDIR\pixmaps\32x32.png"
Delete "$INSTDIR\pixmaps\16x16.png"
Delete "$INSTDIR\pixmaps\question.111"
Delete "$INSTDIR\glade-gtk2\gtk-v2.glade"
Delete "$INSTDIR\glade-gtk2\dialogs.glade"
Delete "$INSTDIR\glade-gtk2\caelestis.glade"
Delete "$INSTDIR\glade-gtk2\chthonic.glade"
Delete "$INSTDIR\glade-gtk2\dialogs.glade"
Delete "$INSTDIR\glade-gtk2\eureka.glade"
Delete "$INSTDIR\glade-gtk2\gtk-v1.glade"
Delete "$INSTDIR\glade-gtk2\gtk-v2.glade"
Delete "$INSTDIR\glade-gtk2\lobotomy.glade"
Delete "$INSTDIR\glade-gtk2\meflin.glade"
Delete "$INSTDIR\glade-gtk2\oroboros.glade"
Delete "$INSTDIR\glade-gtk2\un-deux.glade"
Delete "$INSTDIR\glade-gtk2\v1-redux.glade"
Delete "$INSTDIR\glade-gtk2\README"
Delete "$INSTDIR\zlib1.dll"
Delete "$INSTDIR\crossfire-client-gtk2.exe"
Delete "$INSTDIR\gdk-pixbuf-query-loaders.exe"
Delete "$INSTDIR\gspawn-win32-helper.exe"
Delete "$INSTDIR\gspawn-win32-helper-console.exe"
Delete "$INSTDIR\gtk-query-immodules-2.0.exe"
Delete "$INSTDIR\iconv.dll"
Delete "$INSTDIR\intl.dll"
Delete "$INSTDIR\libatk-1.0-0.dll"
Delete "$INSTDIR\libcairo-2.dll"
Delete "$INSTDIR\libcurl-4.dll"
Delete "$INSTDIR\libgdk_pixbuf-2.0-0.dll"
Delete "$INSTDIR\libgdk-win32-2.0-0.dll"
Delete "$INSTDIR\libgio-2.0-0.dll"
Delete "$INSTDIR\libglade-2.0-0.dll"
Delete "$INSTDIR\libglib-2.0-0.dll"
Delete "$INSTDIR\libgmodule-2.0-0.dll"
Delete "$INSTDIR\libgobject-2.0-0.dll"
Delete "$INSTDIR\libgtk-win32-2.0-0.dll"
Delete "$INSTDIR\libpango-1.0-0.dll"
Delete "$INSTDIR\libpangocairo-1.0-0.dll"
Delete "$INSTDIR\libpangowin32-1.0-0.dll"
Delete "$INSTDIR\libpng12-0.dll"
Delete "$INSTDIR\libtiff3.dll"
Delete "$INSTDIR\libxml2.dll"
Delete "$INSTDIR\pthreadGC2.dll"
Delete "$INSTDIR\SDL.dll"
Delete "$INSTDIR\SDL_image.dll"
Delete "$INSTDIR\stderr.txt"
RMDir /REBOOTOK "$INSTDIR\themes"
RMDir /REBOOTOK "$INSTDIR\pixmaps"
RMDir /REBOOTOK "$INSTDIR\glade-gtk2"
RMDir /REBOOTOK "$INSTDIR"
Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
Delete "$DESKTOP\Crossfire Client.lnk"
Delete "$SMPROGRAMS\$ICONS_GROUP\Crossfire Client.lnk"
RMDir "$SMPROGRAMS\$ICONS_GROUP"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd
|