Changeset 4470 in osm


Ignore:
Timestamp:
2007-09-06T03:17:47+02:00 (17 years ago)
Author:
ulf
Message:

install plugins into "program files" and not into personal folder

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

Legend:

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

    r3776 r4470  
    1 This is the Win32 installer generator for OpenStreetMap, to create a Windows
     1This is the Win32 installer generator for JOSM, to create a Windows
    22like installer. This should ease installation and provides a reasonable set of
    33default preferences for Windows users.
     
    2626- josm icons to the desktop and quick launch bar
    2727- josm file associations to .osm and .gpx files
    28 - some plugins to the current user profile (more to follow)
     28- some assorted plugins into "C:\Program Files\JOSM\plugins" (more to follow?)
    2929- default preferences to the current user profile (if not already existing)
    3030- default bookmarks to the current user profile (if not already existing)
     
    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?
     64- make installation of icons and file extensions optional
  • applications/editors/josm/nsis/josm.nsi

    r3802 r4470  
    266266WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "HelpLink" "mailto:newbies@openstreetmap.org."
    267267WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "URLInfoAbout" "http://www.openstreetmap.org/"
    268 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "URLUpdateInfo" "http://www.openstreetmap.org/"
     268WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "URLUpdateInfo" "http://wiki.openstreetmap.org/index.php/JOSM"
    269269WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "NoModify" 1
    270270WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "NoRepair" 1
     
    333333SetOutPath $INSTDIR
    334334File "josm.exe"
     335
     336; XXX - should be provided/done by josm.jar itself and not here!
    335337SetShellVarContext current
    336338SetOutPath "$APPDATA\JOSM"
     
    366368;-------------------------------------------
    367369SectionIn 1 2
    368 SetShellVarContext current
     370SetShellVarContext all
    369371SetOutPath $APPDATA\JOSM\plugins
    370372File "downloads\mappaint.jar"
    371 ;SetOutPath $APPDATA\JOSM\plugins\mappaint
    372 ;File "downloads\elemstyles.xml"
    373373SectionEnd
    374374
     
    376376;-------------------------------------------
    377377SectionIn 1 2
    378 SetShellVarContext current
     378SetShellVarContext all
    379379SetOutPath $APPDATA\JOSM\plugins
    380380File "downloads\osmarender.jar"
     381; XXX - should be done inside the plugin and not here!
     382SetShellVarContext current
    381383${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "osmarender.firefox" "$PROGRAMFILES\Mozilla Firefox\firefox.exe"
    382384SectionEnd
     
    385387;-------------------------------------------
    386388SectionIn 1 2
    387 SetShellVarContext current
     389SetShellVarContext all
    388390SetOutPath $APPDATA\JOSM\plugins
    389391File "downloads\wmsplugin.jar"
     
    393395;-------------------------------------------
    394396SectionIn 1 2
    395 SetShellVarContext current
     397SetShellVarContext all
    396398SetOutPath $APPDATA\JOSM\plugins
    397399File "downloads\namefinder.jar"
     
    401403;-------------------------------------------
    402404SectionIn 1 2
    403 SetShellVarContext current
     405SetShellVarContext all
    404406SetOutPath $APPDATA\JOSM\plugins
    405407File "downloads\validator.jar"
     
    409411;-------------------------------------------
    410412SectionIn 1 2
    411 SetShellVarContext current
     413SetShellVarContext all
    412414SetOutPath $APPDATA\JOSM\plugins
    413415File "downloads\tways-0.2.jar"
     
    419421;-------------------------------------------
    420422;MessageBox MB_OK "PluginSetting!" IDOK 0
     423; XXX - should better be handled inside JOSM (recent plugin manager is going in the right direction)
    421424SetShellVarContext current
    422425${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "plugins" "mappaint,osmarender,wmsplugin,namefinder,validator,tways-0.2"
     
    435438Delete "$INSTDIR\josm.exe"
    436439Delete "$INSTDIR\uninstall.exe"
     440Delete "$INSTDIR\plugins\wmsplugin.jar"
     441Delete "$INSTDIR\plugins\osmarender.jar"
     442Delete "$INSTDIR\plugins\mappaint.jar"
     443Delete "$INSTDIR\plugins\namefinder.jar"
     444Delete "$INSTDIR\plugins\validator.jar"
     445Delete "$INSTDIR\plugins\tways-0.2.jar"
    437446IfErrors 0 NoJOSMErrorMsg
    438447        MessageBox MB_OK "Please note: josm.exe could not be removed, it's probably in use!" IDOK 0 ;skipped if josm.exe removed
     
    472481Delete "$APPDATA\JOSM\de-streets.xml"
    473482RMDir "$APPDATA\JOSM"
    474 SectionEnd
    475 
    476 Section /o "Un.Plugins" un.SecPlugins
     483RMDir "$APPDATA\JOSM\plugins\mappaint"
     484SectionEnd
     485
     486Section /o "Un.Personal Plugins" un.SecPlugins
    477487;-------------------------------------------
    478488SectionIn 2
     
    486496Delete "$APPDATA\JOSM\plugins\validator.jar"
    487497Delete "$APPDATA\JOSM\plugins\tways-0.2.jar"
    488 ;Delete "$APPDATA\JOSM\plugins\mappaint\elemstyles.xml"
    489498RMDir "$APPDATA\JOSM\plugins\osmarender"
    490499RMDir "$APPDATA\JOSM\plugins\validator"
    491 ;RMDir "$APPDATA\JOSM\plugins\mappaint"
    492500RMDir "$APPDATA\JOSM\plugins"
    493501RMDir "$APPDATA\JOSM"
Note: See TracChangeset for help on using the changeset viewer.