Changeset 14194 in osm for applications/editors
- Timestamp:
- 2009-03-21T16:10:22+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/nsis/josm.nsi
r14189 r14194 4 4 5 5 ; Set the compression mechanism first. 6 ; As of NSIS 2.07, solid compression which makes installer about 1MB smaller 7 ; is no longer the default, so use the /SOLID switch. 8 ; This unfortunately is unknown to NSIS prior to 2.07 and creates an error. 9 ; So if you get an error here, please update to at least NSIS 2.07! 6 ; If you get an error here, please update to at least NSIS 2.07! 10 7 SetCompressor /SOLID lzma 11 8 … … 42 39 43 40 !include "MUI.nsh" 44 ;!addplugindir ".\Plugins"45 41 46 42 ; Icon of installer and uninstaller … … 53 49 !define MUI_WELCOMEFINISHPAGE_BITMAP "josm-nsis-brand.bmp" 54 50 !define MUI_WELCOMEPAGE_TEXT $(JOSM_WELCOME_TEXT) 55 ;!define MUI_FINISHPAGE_LINK "Install WinPcap to be able to capture packets from a network!" 56 ;!define MUI_FINISHPAGE_LINK_LOCATION "http://www.winpcap.org" 57 58 ; NSIS shows Readme files by opening the Readme file with the default application for 59 ; the file's extension. "README.win32" won't work in most cases, because extension "win32" 60 ; is usually not associated with an appropriate text editor. We should use extension "txt" 61 ; for a text file or "html" for an html README file. 62 ;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\NEWS.txt" 63 ;!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show News" 64 ;!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED 51 65 52 !define MUI_FINISHPAGE_RUN "$INSTDIR\josm.exe" 66 ;!define MUI_FINISHPAGE_RUN_NOTCHECKED 67 68 69 70 ;!define MUI_PAGE_CUSTOMFUNCTION_SHOW myShowCallback 53 71 54 72 55 ; ============================================================================ … … 114 97 !insertmacro JOSM_MACRO_INCLUDE_LANGFILE "GERMAN" "locale\german.nsh" 115 98 116 ; Uninstall stuff (NSIS 2.08: "\r\n" don't work here)99 ; Uninstall stuff 117 100 !define MUI_UNCONFIRMPAGE_TEXT_TOP ${un.JOSM_UNCONFIRMPAGE_TEXT_TOP} 118 101 … … 133 116 ;Only useful for BZIP2 compression 134 117 135 ; ReserveFile "AdditionalTasksPage.ini"136 118 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS 137 119 … … 170 152 ; ============================================================================ 171 153 !include "FileFunc.nsh" 172 173 ;!insertmacro GetParameters174 ;!insertmacro GetOptions175 154 176 155 ; ============================================================================ … … 270 249 FunctionEnd 271 250 272 ;Function DisplayAdditionalTasksPage273 ; !insertmacro MUI_HEADER_TEXT "Select Additional Tasks" "Which additional tasks should be done?"274 ; !insertmacro MUI_INSTALLOPTIONS_DISPLAY "AdditionalTasksPage.ini"275 ;FunctionEnd276 277 251 ; ============================================================================ 278 252 ; Installation execution commands … … 342 316 SectionGroup $(JOSM_SEC_PLUGINS_GROUP) SecPluginsGroup 343 317 344 ;Section "osmarender" SecOsmarenderPlugin345 ; osmarender needs Firefox (which isn't available on all machines)346 ; and often provides clipped SVG graphics - therefore it's ommited by default347 ;-------------------------------------------348 ;SectionIn 1 2349 ;SetShellVarContext all350 ;SetOutPath $APPDATA\JOSM\plugins351 ;File "downloads\osmarender.jar"352 ; XXX - should be done inside the plugin and not here!353 ;SetShellVarContext current354 ;${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe"355 ;SectionEnd356 357 318 Section $(JOSM_SEC_WMS_PLUGIN) SecWMSPlugin 358 319 ;------------------------------------------- … … 361 322 SetOutPath $APPDATA\JOSM\plugins 362 323 File "..\dist\wmsplugin.jar" 363 SetOutPath $INSTDIR\ webkit-image\imageformats324 SetOutPath $INSTDIR\imageformats 364 325 File "webkit-image\imageformats\qjpeg4.dll" 365 SetOutPath $INSTDIR \webkit-image326 SetOutPath $INSTDIR 366 327 File "webkit-image\mingwm10.dll" 367 328 File "webkit-image\QtCore4.dll" … … 385 346 ;------------------------------------------- 386 347 SectionIn 1 2 387 ; Create start menu entries (depending on additional tasks page)388 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State"389 ;StrCmp $0 "0" SecRequired_skip_StartMenu390 348 ; To qoute "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11d.asp": 391 349 ; "Do not include Readme, Help, or Uninstall entries on the Programs menu." 392 350 CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT) 393 ;SecRequired_skip_StartMenu:394 351 SectionEnd 395 352 … … 397 354 ;------------------------------------------- 398 355 ; SectionIn 1 2 399 ; is command line option "/desktopicon" set? 400 ;${GetParameters} $R0 401 ;${GetOptions} $R0 "/desktopicon=" $R1 402 ;StrCmp $R1 "no" SecRequired_skip_DesktopIcon 403 ;StrCmp $R1 "yes" SecRequired_install_DesktopIcon 404 405 ; Create desktop icon (depending on additional tasks page and command line option) 406 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 3" "State" 407 ;StrCmp $0 "0" SecRequired_skip_DesktopIcon 408 ;SecRequired_install_DesktopIcon: 356 ; Create desktop icon 357 ; Desktop icon for a program should not be installed as default! 409 358 CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT) 410 ;SecRequired_skip_DesktopIcon:411 359 SectionEnd 412 360 … … 414 362 ;------------------------------------------- 415 363 SectionIn 1 2 416 ; is command line option "/quicklaunchicon" set? 417 ;${GetParameters} $R0 418 ;${GetOptions} $R0 "/quicklaunchicon=" $R1 419 ;StrCmp $R1 "no" SecRequired_skip_QuickLaunchIcon 420 ;StrCmp $R1 "yes" SecRequired_install_QuickLaunchIcon 421 422 ; Create quick launch icon (depending on additional tasks page and command line option) 423 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 4" "State" 424 ;StrCmp $0 "0" SecRequired_skip_QuickLaunchIcon 425 ;SecRequired_install_QuickLaunchIcon: 364 ; Create quick launch icon 426 365 CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT) 427 ;SecRequired_skip_QuickLaunchIcon:428 366 SectionEnd 429 367 … … 431 369 ;------------------------------------------- 432 370 SectionIn 1 2 433 ; Create File Extensions (depending on additional tasks page) 434 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" 435 ;StrCmp $0 "0" SecRequired_skip_FileExtensions 371 ; Create File Extensions 436 372 WriteRegStr HKCR ${OSM_ASSOC} "" "OpenStreetMap data" 437 373 WriteRegStr HKCR "${OSM_ASSOC}\Shell\open\command" "" '"$INSTDIR\josm.exe" "%1"' … … 442 378 StrCpy $R0 ".gpx" 443 379 Call Associate 444 ; if somethings added here, add it also to the uninstall section and the AdditionalTask page380 ; if somethings added here, add it also to the uninstall section 445 381 pop $R0 446 382 !insertmacro UpdateIcons 447 ;SecRequired_skip_FileExtensions:448 383 SectionEnd 449 384 … … 474 409 Abort $(un.JOSM_IN_USE_ERROR) 475 410 NoJOSMErrorMsg: 411 Delete "$INSTDIR\imageformats\qjpeg4.dll" 412 RMDir "$INSTDIR\imageformats" 413 Delete "$INSTDIR\mingwm10.dll" 414 Delete "$INSTDIR\QtCore4.dll" 415 Delete "$INSTDIR\QtGui4.dll" 416 Delete "$INSTDIR\QtNetwork4.dll" 417 Delete "$INSTDIR\QtWebKit4.dll" 418 Delete "$INSTDIR\webkit-image.exe" 476 419 Delete "$INSTDIR\uninstall.exe" 477 420 Delete "$APPDATA\JOSM\plugins\wmsplugin.jar" … … 514 457 Delete "$APPDATA\JOSM\preferences" 515 458 Delete "$APPDATA\JOSM\bookmarks" 516 ;Delete "$APPDATA\JOSM\de-streets.xml"517 459 RMDir "$APPDATA\JOSM" 518 460 SectionEnd … … 523 465 SetShellVarContext current 524 466 Delete "$APPDATA\JOSM\plugins\wmsplugin.jar" 525 ;Delete "$APPDATA\JOSM\plugins\osmarender.jar"526 ;Delete "$APPDATA\JOSM\plugins\osmarender\*.*"527 467 Delete "$APPDATA\JOSM\plugins\namefinder.jar" 528 468 Delete "$APPDATA\JOSM\plugins\validator\*.*" 529 469 Delete "$APPDATA\JOSM\plugins\validator.jar" 530 ;RMDir "$APPDATA\JOSM\plugins\osmarender"531 470 RMDir "$APPDATA\JOSM\plugins\validator" 532 471 RMDir "$APPDATA\JOSM\plugins"
Note:
See TracChangeset
for help on using the changeset viewer.