Changeset 14194 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-03-21T16:10:22+01:00 (16 years ago)
Author:
ulf
Message:

fix webkit folders
remove webkit stuff on uninstall
remove a lot of old (already commented out) stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/nsis/josm.nsi

    r14189 r14194  
    44
    55; 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!
    107SetCompressor /SOLID lzma
    118
     
    4239
    4340!include "MUI.nsh"
    44 ;!addplugindir ".\Plugins"
    4541
    4642; Icon of installer and uninstaller
     
    5349!define MUI_WELCOMEFINISHPAGE_BITMAP "josm-nsis-brand.bmp"
    5450!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
    6552!define MUI_FINISHPAGE_RUN "$INSTDIR\josm.exe"
    66 ;!define MUI_FINISHPAGE_RUN_NOTCHECKED
    67 
    68 
    69 
    70 ;!define MUI_PAGE_CUSTOMFUNCTION_SHOW myShowCallback
     53
    7154
    7255; ============================================================================
     
    11497  !insertmacro JOSM_MACRO_INCLUDE_LANGFILE "GERMAN" "locale\german.nsh"
    11598
    116 ; Uninstall stuff (NSIS 2.08: "\r\n" don't work here)
     99; Uninstall stuff
    117100!define MUI_UNCONFIRMPAGE_TEXT_TOP ${un.JOSM_UNCONFIRMPAGE_TEXT_TOP}
    118101
     
    133116  ;Only useful for BZIP2 compression
    134117
    135 ;  ReserveFile "AdditionalTasksPage.ini"
    136118!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
    137119
     
    170152; ============================================================================
    171153!include "FileFunc.nsh"
    172 
    173 ;!insertmacro GetParameters
    174 ;!insertmacro GetOptions
    175154
    176155; ============================================================================
     
    270249FunctionEnd
    271250
    272 ;Function DisplayAdditionalTasksPage
    273 ;  !insertmacro MUI_HEADER_TEXT "Select Additional Tasks" "Which additional tasks should be done?"
    274 ;  !insertmacro MUI_INSTALLOPTIONS_DISPLAY "AdditionalTasksPage.ini"
    275 ;FunctionEnd
    276 
    277251; ============================================================================
    278252; Installation execution commands
     
    342316SectionGroup $(JOSM_SEC_PLUGINS_GROUP) SecPluginsGroup
    343317
    344 ;Section "osmarender" SecOsmarenderPlugin
    345 ; osmarender needs Firefox (which isn't available on all machines)
    346 ; and often provides clipped SVG graphics - therefore it's ommited by default
    347 ;-------------------------------------------
    348 ;SectionIn 1 2
    349 ;SetShellVarContext all
    350 ;SetOutPath $APPDATA\JOSM\plugins
    351 ;File "downloads\osmarender.jar"
    352 ; XXX - should be done inside the plugin and not here!
    353 ;SetShellVarContext current
    354 ;${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe"
    355 ;SectionEnd
    356 
    357318Section $(JOSM_SEC_WMS_PLUGIN) SecWMSPlugin
    358319;-------------------------------------------
     
    361322SetOutPath $APPDATA\JOSM\plugins
    362323File "..\dist\wmsplugin.jar"
    363 SetOutPath $INSTDIR\webkit-image\imageformats
     324SetOutPath $INSTDIR\imageformats
    364325File "webkit-image\imageformats\qjpeg4.dll"
    365 SetOutPath $INSTDIR\webkit-image
     326SetOutPath $INSTDIR
    366327File "webkit-image\mingwm10.dll"
    367328File "webkit-image\QtCore4.dll"
     
    385346;-------------------------------------------
    386347SectionIn 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_StartMenu
    390348; To qoute "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11d.asp":
    391349; "Do not include Readme, Help, or Uninstall entries on the Programs menu."
    392350CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)
    393 ;SecRequired_skip_StartMenu:
    394351SectionEnd
    395352
     
    397354;-------------------------------------------
    398355; 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!
    409358CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)
    410 ;SecRequired_skip_DesktopIcon:
    411359SectionEnd
    412360
     
    414362;-------------------------------------------
    415363SectionIn 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
    426365CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)
    427 ;SecRequired_skip_QuickLaunchIcon:
    428366SectionEnd
    429367
     
    431369;-------------------------------------------
    432370SectionIn 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
    436372WriteRegStr HKCR ${OSM_ASSOC} "" "OpenStreetMap data"
    437373WriteRegStr HKCR "${OSM_ASSOC}\Shell\open\command" "" '"$INSTDIR\josm.exe" "%1"'
     
    442378        StrCpy $R0 ".gpx"
    443379        Call Associate
    444 ; if somethings added here, add it also to the uninstall section and the AdditionalTask page
     380; if somethings added here, add it also to the uninstall section
    445381pop $R0
    446382!insertmacro UpdateIcons
    447 ;SecRequired_skip_FileExtensions:
    448383SectionEnd
    449384
     
    474409        Abort $(un.JOSM_IN_USE_ERROR)
    475410NoJOSMErrorMsg:
     411Delete "$INSTDIR\imageformats\qjpeg4.dll"
     412RMDir "$INSTDIR\imageformats"
     413Delete "$INSTDIR\mingwm10.dll"
     414Delete "$INSTDIR\QtCore4.dll"
     415Delete "$INSTDIR\QtGui4.dll"
     416Delete "$INSTDIR\QtNetwork4.dll"
     417Delete "$INSTDIR\QtWebKit4.dll"
     418Delete "$INSTDIR\webkit-image.exe"
    476419Delete "$INSTDIR\uninstall.exe"
    477420Delete "$APPDATA\JOSM\plugins\wmsplugin.jar"
     
    514457Delete "$APPDATA\JOSM\preferences"
    515458Delete "$APPDATA\JOSM\bookmarks"
    516 ;Delete "$APPDATA\JOSM\de-streets.xml"
    517459RMDir "$APPDATA\JOSM"
    518460SectionEnd
     
    523465SetShellVarContext current
    524466Delete "$APPDATA\JOSM\plugins\wmsplugin.jar"
    525 ;Delete "$APPDATA\JOSM\plugins\osmarender.jar"
    526 ;Delete "$APPDATA\JOSM\plugins\osmarender\*.*"
    527467Delete "$APPDATA\JOSM\plugins\namefinder.jar"
    528468Delete "$APPDATA\JOSM\plugins\validator\*.*"
    529469Delete "$APPDATA\JOSM\plugins\validator.jar"
    530 ;RMDir "$APPDATA\JOSM\plugins\osmarender"
    531470RMDir "$APPDATA\JOSM\plugins\validator"
    532471RMDir "$APPDATA\JOSM\plugins"
Note: See TracChangeset for help on using the changeset viewer.