Changeset 4471 in osm
- Timestamp:
- 2007-09-06T05:58:27+02:00 (17 years ago)
- Location:
- applications/editors/josm/nsis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/nsis/README.txt
r4470 r4471 62 62 - some way of automatic installer generation on the server (e.g. nightly build)? 63 63 - 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 275 275 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\josm.exe" "Path" '$INSTDIR' 276 276 277 SectionEnd ; "Required" 278 279 280 Section "JOSM" SecJosm 281 ;------------------------------------------- 282 SectionIn 1 283 SetOutPath $INSTDIR 284 File "josm.exe" 285 286 ; XXX - should be provided/done by josm.jar itself and not here! 287 SetShellVarContext current 288 SetOutPath "$APPDATA\JOSM" 289 290 ; don't overwrite existing bookmarks 291 IfFileExists preferences dont_overwrite_bookmarks 292 File "bookmarks" 293 dont_overwrite_bookmarks: 294 295 ; don't overwrite existing de_streets.xml file 296 IfFileExists de-streets.xml dont_overwrite_de_streets 297 File "de-streets.xml" 298 dont_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" 312 SectionEnd 313 314 315 SectionGroup "Plugins" SecPluginsGroup 316 317 Section "mappaint" SecMappaintPlugin 318 ;------------------------------------------- 319 SectionIn 1 2 320 SetShellVarContext all 321 SetOutPath $APPDATA\JOSM\plugins 322 File "downloads\mappaint.jar" 323 SectionEnd 324 325 Section "osmarender" SecOsmarenderPlugin 326 ;------------------------------------------- 327 SectionIn 1 2 328 SetShellVarContext all 329 SetOutPath $APPDATA\JOSM\plugins 330 File "downloads\osmarender.jar" 331 ; XXX - should be done inside the plugin and not here! 332 SetShellVarContext current 333 ${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe" 334 SectionEnd 335 336 Section "WMS" SecWMSPlugin 337 ;------------------------------------------- 338 SectionIn 1 2 339 SetShellVarContext all 340 SetOutPath $APPDATA\JOSM\plugins 341 File "downloads\wmsplugin.jar" 342 SectionEnd 343 344 Section "namefinder" SecNamefinderPlugin 345 ;------------------------------------------- 346 SectionIn 1 2 347 SetShellVarContext all 348 SetOutPath $APPDATA\JOSM\plugins 349 File "downloads\namefinder.jar" 350 SectionEnd 351 352 Section "validator" SecValidatorPlugin 353 ;------------------------------------------- 354 SectionIn 1 2 355 SetShellVarContext all 356 SetOutPath $APPDATA\JOSM\plugins 357 File "downloads\validator.jar" 358 SectionEnd 359 360 Section "tways" SecTWaysPlugin 361 ;------------------------------------------- 362 SectionIn 1 2 363 SetShellVarContext all 364 SetOutPath $APPDATA\JOSM\plugins 365 File "downloads\tways-0.2.jar" 366 SectionEnd 367 368 SectionGroupEnd ; "Plugins" 369 370 Section "Start Menu Entry" SecStartMenu 371 ;------------------------------------------- 372 SectionIn 1 2 277 373 ; Create start menu entries (depending on additional tasks page) 278 374 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 2" "State" … … 282 378 CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor" 283 379 ;SecRequired_skip_StartMenu: 284 380 SectionEnd 381 382 Section "Desktop Icon" SecDesktopIcon 383 ;------------------------------------------- 384 ; SectionIn 1 2 285 385 ; is command line option "/desktopicon" set? 286 386 ;${GetParameters} $R0 … … 295 395 CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor" 296 396 ;SecRequired_skip_DesktopIcon: 297 397 SectionEnd 398 399 Section "Quick Launch Icon" SecQuickLaunchIcon 400 ;------------------------------------------- 401 SectionIn 1 2 298 402 ; is command line option "/quicklaunchicon" set? 299 403 ;${GetParameters} $R0 … … 308 412 CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" "JAVA OpenStreetMap - Editor" 309 413 ;SecRequired_skip_QuickLaunchIcon: 310 414 SectionEnd 415 416 Section "File Extensions" SecFileExtensions 417 ;------------------------------------------- 418 SectionIn 1 2 311 419 ; Create File Extensions (depending on additional tasks page) 312 420 ;ReadINIStr $0 "$PLUGINSDIR\AdditionalTasksPage.ini" "Field 6" "State" … … 324 432 !insertmacro UpdateIcons 325 433 ;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" 434 SectionEnd 435 419 436 420 437 Section "-PluginSetting" 421 438 ;------------------------------------------- 439 SectionIn 1 2 422 440 ;MessageBox MB_OK "PluginSetting!" IDOK 0 423 441 ; XXX - should better be handled inside JOSM (recent plugin manager is going in the right direction) … … 518 536 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN 519 537 !insertmacro MUI_DESCRIPTION_TEXT ${SecJosm} "JOSM is the JAVA OpenStreetMap editor for .osm files." 520 !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsGroup} " VariousJOSM plugins."538 !insertmacro MUI_DESCRIPTION_TEXT ${SecPluginsGroup} "An assortment of useful JOSM plugins." 521 539 !insertmacro MUI_DESCRIPTION_TEXT ${SecMappaintPlugin} "An alternative renderer for the map with colouring, line thickness, icons after tags." 522 540 !insertmacro MUI_DESCRIPTION_TEXT ${SecOsmarenderPlugin} "Displays the current screen as nicely rendered SVG graphics in FireFox." … … 525 543 !insertmacro MUI_DESCRIPTION_TEXT ${SecValidatorPlugin} "Validates edited data if it conforms to common suggestions." 526 544 !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 527 551 !insertmacro MUI_FUNCTION_DESCRIPTION_END 528 552
Note:
See TracChangeset
for help on using the changeset viewer.