Changeset 4471 in osm


Ignore:
Timestamp:
2007-09-06T05:58:27+02:00 (17 years ago)
Author:
ulf
Message:

make installation of icons and file extensions optional

Location:
applications/editors/josm/nsis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/nsis/README.txt

    r4470 r4471  
    6262- some way of automatic installer generation on the server (e.g. nightly build)?
    6363- install all josm plugins by default and only enable them according to user wishes?
    64 - make installation of icons and file extensions optional
  • applications/editors/josm/nsis/josm.nsi

    r4470 r4471  
    275275WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\josm.exe" "Path" '$INSTDIR'
    276276
     277SectionEnd ; "Required"
     278
     279
     280Section "JOSM" SecJosm
     281;-------------------------------------------
     282SectionIn 1
     283SetOutPath $INSTDIR
     284File "josm.exe"
     285
     286; XXX - should be provided/done by josm.jar itself and not here!
     287SetShellVarContext current
     288SetOutPath "$APPDATA\JOSM"
     289
     290; don't overwrite existing bookmarks
     291IfFileExists preferences dont_overwrite_bookmarks
     292File "bookmarks"
     293dont_overwrite_bookmarks:
     294
     295; don't overwrite existing de_streets.xml file
     296IfFileExists de-streets.xml dont_overwrite_de_streets
     297File "de-streets.xml"
     298dont_overwrite_de_streets:
     299
     300; write reasonable defaults for some preferences
     301; XXX - some of this should be done in JOSM itself
     302${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "laf" "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
     303${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "download.osm" "true"
     304${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "layerlist.visible" "true"
     305${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "commandstack.visible" "true"
     306${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "propertiesdialog.visible" "true"
     307${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "validator.visible" "true"
     308${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "draw.segment.direction" "true"
     309${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "projection" "org.openstreetmap.josm.data.projection.Epsg4326"
     310${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osm-server.url" "http://www.openstreetmap.org/api"
     311${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "taggingpreset.sources" "$APPDATA/JOSM/de-streets.xml"
     312SectionEnd
     313
     314
     315SectionGroup "Plugins" SecPluginsGroup
     316
     317Section "mappaint" SecMappaintPlugin
     318;-------------------------------------------
     319SectionIn 1 2
     320SetShellVarContext all
     321SetOutPath $APPDATA\JOSM\plugins
     322File "downloads\mappaint.jar"
     323SectionEnd
     324
     325Section "osmarender" SecOsmarenderPlugin
     326;-------------------------------------------
     327SectionIn 1 2
     328SetShellVarContext all
     329SetOutPath $APPDATA\JOSM\plugins
     330File "downloads\osmarender.jar"
     331; XXX - should be done inside the plugin and not here!
     332SetShellVarContext current
     333${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe"
     334SectionEnd
     335
     336Section "WMS" SecWMSPlugin
     337;-------------------------------------------
     338SectionIn 1 2
     339SetShellVarContext all
     340SetOutPath $APPDATA\JOSM\plugins
     341File "downloads\wmsplugin.jar"
     342SectionEnd
     343
     344Section "namefinder" SecNamefinderPlugin
     345;-------------------------------------------
     346SectionIn 1 2
     347SetShellVarContext all
     348SetOutPath $APPDATA\JOSM\plugins
     349File "downloads\namefinder.jar"
     350SectionEnd
     351
     352Section "validator" SecValidatorPlugin
     353;-------------------------------------------
     354SectionIn 1 2
     355SetShellVarContext all
     356SetOutPath $APPDATA\JOSM\plugins
     357File "downloads\validator.jar"
     358SectionEnd
     359
     360Section "tways" SecTWaysPlugin
     361;-------------------------------------------
     362SectionIn 1 2
     363SetShellVarContext all
     364SetOutPath $APPDATA\JOSM\plugins
     365File "downloads\tways-0.2.jar"
     366SectionEnd
     367
     368SectionGroupEnd ; "Plugins"
     369
     370Section "Start Menu Entry" SecStartMenu
     371;-------------------------------------------
     372SectionIn 1 2
    277373; Create start menu entries (depending on additional tasks page)
    278374;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State"
     
    282378CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor"
    283379;SecRequired_skip_StartMenu:
    284 
     380SectionEnd
     381
     382Section "Desktop Icon" SecDesktopIcon
     383;-------------------------------------------
     384; SectionIn 1 2
    285385; is command line option "/desktopicon" set?
    286386;${GetParameters} $R0
     
    295395CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor"
    296396;SecRequired_skip_DesktopIcon:
    297 
     397SectionEnd
     398
     399Section "Quick Launch Icon" SecQuickLaunchIcon
     400;-------------------------------------------
     401SectionIn 1 2
    298402; is command line option "/quicklaunchicon" set?
    299403;${GetParameters} $R0
     
    308412CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor"
    309413;SecRequired_skip_QuickLaunchIcon:
    310 
     414SectionEnd
     415
     416Section "File Extensions" SecFileExtensions
     417;-------------------------------------------
     418SectionIn 1 2
    311419; Create File Extensions (depending on additional tasks page)
    312420;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State"
     
    324432!insertmacro UpdateIcons
    325433;SecRequired_skip_FileExtensions:
    326 
    327 SectionEnd ; "Required"
    328 
    329 
    330 Section "JOSM" SecJosm
    331 ;-------------------------------------------
    332 SectionIn 1
    333 SetOutPath $INSTDIR
    334 File "josm.exe"
    335 
    336 ; XXX - should be provided/done by josm.jar itself and not here!
    337 SetShellVarContext current
    338 SetOutPath "$APPDATA\JOSM"
    339 
    340 ; don't overwrite existing bookmarks
    341 IfFileExists preferences dont_overwrite_bookmarks
    342 File "bookmarks"
    343 dont_overwrite_bookmarks:
    344 
    345 ; don't overwrite existing de_streets.xml file
    346 IfFileExists de-streets.xml dont_overwrite_de_streets
    347 File "de-streets.xml"
    348 dont_overwrite_de_streets:
    349 
    350 ; write reasonable defaults for some preferences
    351 ; XXX - some of this should be done in JOSM itself
    352 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "laf" "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
    353 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "download.osm" "true"
    354 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "layerlist.visible" "true"
    355 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "commandstack.visible" "true"
    356 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "propertiesdialog.visible" "true"
    357 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "validator.visible" "true"
    358 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "draw.segment.direction" "true"
    359 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "projection" "org.openstreetmap.josm.data.projection.Epsg4326"
    360 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osm-server.url" "http://www.openstreetmap.org/api"
    361 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "taggingpreset.sources" "$APPDATA/JOSM/de-streets.xml"
    362 SectionEnd
    363 
    364 
    365 SectionGroup /e "Plugins" SecPluginsGroup
    366 
    367 Section "mappaint" SecMappaintPlugin
    368 ;-------------------------------------------
    369 SectionIn 1 2
    370 SetShellVarContext all
    371 SetOutPath $APPDATA\JOSM\plugins
    372 File "downloads\mappaint.jar"
    373 SectionEnd
    374 
    375 Section "osmarender" SecOsmarenderPlugin
    376 ;-------------------------------------------
    377 SectionIn 1 2
    378 SetShellVarContext all
    379 SetOutPath $APPDATA\JOSM\plugins
    380 File "downloads\osmarender.jar"
    381 ; XXX - should be done inside the plugin and not here!
    382 SetShellVarContext current
    383 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe"
    384 SectionEnd
    385 
    386 Section "WMS" SecWMSPlugin
    387 ;-------------------------------------------
    388 SectionIn 1 2
    389 SetShellVarContext all
    390 SetOutPath $APPDATA\JOSM\plugins
    391 File "downloads\wmsplugin.jar"
    392 SectionEnd
    393 
    394 Section "namefinder" SecNamefinderPlugin
    395 ;-------------------------------------------
    396 SectionIn 1 2
    397 SetShellVarContext all
    398 SetOutPath $APPDATA\JOSM\plugins
    399 File "downloads\namefinder.jar"
    400 SectionEnd
    401 
    402 Section "validator" SecValidatorPlugin
    403 ;-------------------------------------------
    404 SectionIn 1 2
    405 SetShellVarContext all
    406 SetOutPath $APPDATA\JOSM\plugins
    407 File "downloads\validator.jar"
    408 SectionEnd
    409 
    410 Section "tways" SecTWaysPlugin
    411 ;-------------------------------------------
    412 SectionIn 1 2
    413 SetShellVarContext all
    414 SetOutPath $APPDATA\JOSM\plugins
    415 File "downloads\tways-0.2.jar"
    416 SectionEnd
    417 
    418 SectionGroupEnd ; "Plugins"
     434SectionEnd
     435
    419436
    420437Section "-PluginSetting"
    421438;-------------------------------------------
     439SectionIn 1 2
    422440;MessageBox MB_OK "PluginSetting!" IDOK 0
    423441; XXX - should better be handled inside JOSM (recent plugin manager is going in the right direction)
     
    518536!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    519537  !insertmacro MUI_DESCRIPTION_TEXT ${SecJosm} "JOSM is the JAVA OpenStreetMap editor for .osm files."
    520   !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsGroup} "Various JOSM plugins."
     538  !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsGroup} "An assortment of useful JOSM plugins."
    521539  !insertmacro MUI_DESCRIPTION_TEXT ${SecMappaintPlugin} "An alternative renderer for the map with colouring, line thickness, icons after tags."
    522540  !insertmacro MUI_DESCRIPTION_TEXT ${SecOsmarenderPlugin} "Displays the current screen as nicely rendered SVG graphics in FireFox."
     
    525543  !insertmacro MUI_DESCRIPTION_TEXT ${SecValidatorPlugin} "Validates edited data if it conforms to common suggestions."
    526544  !insertmacro MUI_DESCRIPTION_TEXT ${SecTwaysPlugin} "Mass wayfication of segments."
     545  !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} "Add a JOSM start menu entry."
     546  !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopIcon} "Add a JOSM desktop icon."
     547  !insertmacro MUI_DESCRIPTION_TEXT ${SecQuickLaunchIcon} "Add a JOSM icon to the quick launch bar."
     548  !insertmacro MUI_DESCRIPTION_TEXT ${SecFileExtensions} "Add JOSM file extensions for .osm and .gpx files."
     549 
     550
    527551!insertmacro MUI_FUNCTION_DESCRIPTION_END
    528552
Note: See TracChangeset for help on using the changeset viewer.