Changeset 30581 in osm for applications
- Timestamp:
- 2014-08-13T02:48:01+02:00 (10 years ago)
- Location:
- applications/editors/josm/nsis
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/nsis/josm-setup-unix.sh
r30580 r30581 101 101 102 102 export TARGET=$1 # josm / josm64. Used in file name of launcher and installer 103 #export RTBITS=$2 # L4J "runtimeBits" (JVM architecture used by launcher)104 #export INIHEAP=$3 # L4J "initialHeapSize" (initial heap size in MB)105 #export MAXHEAP=$4 # L4J "maxHeapSize" (max heap size in MB)106 103 107 104 /bin/rm -f "launch4j_${TARGET}.xml" … … 137 134 138 135 build_exe "josm" "64\/32" 128 1024 139 build_exe "josm64" "64" 256 2048 136 # 64-bit binary generation commented until possible with launch4j / nsis 137 # build_exe "josm64" "64" 256 2048 140 138 141 139 /bin/rm -f josm-tested.jar 2>/dev/null >/dev/null -
applications/editors/josm/nsis/josm.nsi
r30580 r30581 4 4 5 5 ; Set the compression mechanism first. 6 ; If you get an error here, please update to at least NSIS 2.07!7 6 SetCompressor /SOLID lzma 7 8 ; Load StdUtils plugin (ANSI until we switch to Unicode installer with NSIS 3) 9 !addplugindir plugins/stdutils/Plugins/Release_ANSI 10 !addincludedir plugins/stdutils/Include 11 12 !include "StdUtils.nsh" 13 14 ; make sure the installer will get elevated rights on UAC-enabled system (Vista+) 15 RequestExecutionLevel admin 8 16 9 17 ; Used to refresh the display of file association … … 18 26 ; ============================================================================ 19 27 ; The name of the installer 20 !define PROGRAM_NAME "JOSM" 21 22 Name "${PROGRAM_NAME} ${VERSION}" 28 Name "JOSM ${VERSION}" 23 29 24 30 ; The file to write … … 33 39 ; ============================================================================ 34 40 35 !include "MUI .nsh"41 !include "MUI2.nsh" 36 42 37 43 ; Icon of installer and uninstaller … … 45 51 !define MUI_WELCOMEPAGE_TEXT $(JOSM_WELCOME_TEXT) 46 52 47 !define MUI_FINISHPAGE_RUN "$INSTDIR\${DEST}.exe" 48 53 !define MUI_FINISHPAGE_RUN 54 !define MUI_FINISHPAGE_RUN_FUNCTION LaunchJOSM 55 56 ; Function used to Launch JOSM in user (non-elevated) mode 57 Function LaunchJOSM 58 ${StdUtils.ExecShellAsUser} $0 "$INSTDIR\${DEST}.exe" "open" "" 59 FunctionEnd 49 60 50 61 ; ============================================================================ … … 55 66 !insertmacro MUI_PAGE_LICENSE "..\core\LICENSE" 56 67 !insertmacro MUI_PAGE_COMPONENTS 57 ;Page custom DisplayAdditionalTasksPage58 68 !insertmacro MUI_PAGE_DIRECTORY 59 69 !insertmacro MUI_PAGE_INSTFILES … … 72 82 ;Remember the installer language 73 83 !define MUI_LANGDLL_REGISTRY_ROOT "HKLM" 74 !define MUI_LANGDLL_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM"84 !define MUI_LANGDLL_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" 75 85 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" 76 86 … … 105 115 InstType "un.$(un.JOSM_DEFAULT_UNINSTALL)" 106 116 InstType "un.$(un.JOSM_FULL_UNINSTALL)" 107 108 ; ============================================================================109 ; Reserve Files110 ; ============================================================================111 112 ;Things that need to be extracted on first (keep these lines before any File command!)113 ;Only useful for BZIP2 compression114 115 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS116 117 117 118 ; ============================================================================ … … 235 236 236 237 Function .onInit 237 ;Extract InstallOptions INI files238 ; !insertmacro MUI_INSTALLOPTIONS_EXTRACT "AdditionalTasksPage.ini"239 238 !insertmacro MUI_LANGDLL_DISPLAY 240 239 FunctionEnd 241 240 242 241 Function un.onInit 243 244 242 !insertmacro MUI_UNGETLANGUAGE 245 246 243 FunctionEnd 247 244 … … 262 259 263 260 ; Write the uninstall keys for Windows 264 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "DisplayVersion" "${VERSION}"265 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "DisplayName" "JOSM ${VERSION}"266 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "UninstallString" '"$INSTDIR\uninstall.exe"'267 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "Publisher" "The OpenStreetMap JOSM developers team, https://josm.openstreetmap.de"268 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "HelpLink" "mailto:josm-dev@openstreetmap.org."269 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "URLInfoAbout" "https://josm.openstreetmap.de"270 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "URLUpdateInfo" "https://josm.openstreetmap.de"271 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "NoModify" 1272 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM" "NoRepair" 1261 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "DisplayVersion" "${VERSION}" 262 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "DisplayName" "JOSM ${VERSION}" 263 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "UninstallString" '"$INSTDIR\uninstall.exe"' 264 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "Publisher" "OpenStreetMap JOSM team" 265 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "HelpLink" "mailto:josm-dev@openstreetmap.org." 266 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "URLInfoAbout" "https://josm.openstreetmap.de" 267 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "URLUpdateInfo" "https://josm.openstreetmap.de" 268 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "NoModify" 1 269 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" "NoRepair" 1 273 270 WriteUninstaller "uninstall.exe" 274 271 … … 360 357 SectionEnd 361 358 362 363 359 Section "-PluginSetting" 364 360 ;------------------------------------------- … … 374 370 FileClose $R0 375 371 settings_exists: 376 377 SectionEnd 378 372 SectionEnd 379 373 380 374 Section "un.$(un.JOSM_SEC_UNINSTALL)" un.SecUinstall … … 403 397 Delete "$INSTDIR\uninstall.exe" 404 398 405 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\ OSM"399 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\JOSM" 406 400 DeleteRegKey HKEY_LOCAL_MACHINE "Software\${DEST}.exe" 407 401 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${DEST}.exe" … … 446 440 SectionEnd 447 441 448 449 442 Section "-Un.Finally" 450 443 ;------------------------------------------- … … 455 448 NoFinalErrorMsg: 456 449 SectionEnd 457 458 450 459 451 ; ============================================================================ … … 469 461 !insertmacro MUI_DESCRIPTION_TEXT ${SecQuickLaunchIcon} $(JOSM_SECDESC_QUICKLAUNCH_ICON) 470 462 !insertmacro MUI_DESCRIPTION_TEXT ${SecFileExtensions} $(JOSM_SECDESC_FILE_EXTENSIONS) 471 472 473 463 !insertmacro MUI_FUNCTION_DESCRIPTION_END 474 464 -
applications/editors/josm/nsis/locale/english.nsh
r30108 r30581 11 11 ; langmacros.nsh when updating this file 12 12 13 14 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "This wizard will guide you through the installation of the JAVA OpenStreetMap editor (JOSM).\r\n\r\nBefore starting the installation, make sure any JOSM applications are not running.\r\n\r\nClick 'Next' to continue." 13 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "This wizard will guide you through the installation of the Java OpenStreetMap Editor (JOSM).$\r$\n$\r$\nBefore starting the installation, make sure any JOSM applications are not running.$\r$\n$\r$\nClick 'Next' to continue." 15 14 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_DIR_TEXT "Choose a directory in which to install JOSM." 16 15 … … 18 17 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_JOSM "JOSM" 19 18 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_PLUGINS_GROUP "Plugins" 20 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_AGPIFOJ_PLUGIN "AgPifoJ"21 19 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_TURNRESTRICTIONS_PLUGIN "TurnRestrictions" 22 20 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_WMS "WMS Downloader" … … 25 23 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_QUICKLAUNCH_ICON "Quick Launch Icon" 26 24 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_FILE_EXTENSIONS "File Extensions" 27 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_JOSM "JOSM is the J AVAOpenStreetMap editor for .osm files."25 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_JOSM "JOSM is the Java OpenStreetMap editor for .osm files." 28 26 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_PLUGINS_GROUP "An assortment of useful JOSM plugins." 29 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_AGPIFOJ_PLUGIN "Correlates pictures with GPS tracks or import EXIF geotagged pictures."30 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_REMOTECONTROL_PLUGIN "Let other applications send commands to JOSM."31 27 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_TURNRESTRICTIONS_PLUGIN "Allows to enter and maintain information about turn restrictions." 32 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_VALIDATOR_PLUGIN "Validates edited data if it conforms to common suggestions."33 28 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_WMS "Display background images from Web Map Service (WMS) sources." 34 29 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_STARTMENU "Add a JOSM start menu entry." … … 40 35 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_UPDATEICONS_ERROR2 "You should install the free 'Microsoft Layer for Unicode' to update JOSM file icons" 41 36 42 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_LINK_TEXT "J AVAOpenStreetMap - Editor"37 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_LINK_TEXT "Java OpenStreetMap - Editor" 43 38 44 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_UNCONFIRMPAGE_TEXT_TOP "The following J AVAOpenStreetMap editor (JOSM) installation will be uninstalled. Click 'Next' to continue."39 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_UNCONFIRMPAGE_TEXT_TOP "The following Java OpenStreetMap editor (JOSM) installation will be uninstalled. Click 'Next' to continue." 45 40 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_DEFAULT_UNINSTALL "Default (keep Personal Settings and plugins)" 46 41 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_FULL_UNINSTALL "All (remove all)" … … 49 44 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_INSTDIR_ERROR "Please note: The directory $INSTDIR could not be removed!" 50 45 51 52 46 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_UNINSTALL "JOSM" 53 47 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_PERSONAL_SETTINGS "Personal settings" 54 48 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_PLUGINS "Personal plugins" 55 49 56 57 50 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SECDESC_UNINSTALL "Uninstall JOSM." 58 51 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SECDESC_PERSONAL_SETTINGS "Uninstall personal settings from your profile: $PROFILE." 59 -
applications/editors/josm/nsis/locale/french.nsh
r30108 r30581 7 7 ;; Author: Vincent Privat <vprivat@openstreetmap.fr>, 2011. 8 8 ;; 9 ;;10 9 11 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "Cet assistant va vous guider à travers l'installation de l'éditeur Java OpenStreetMap (JOSM).\r\n\r\nAvant de lancer l'installation, assure-vous que JOSM n'est pas déjà en cours d'exécution.\r\n\r\nVeuillez cliquer sur 'Suivant' pour continuer." 10 ; Make sure to update the JOSM_MACRO_LANGUAGEFILE_END macro in 11 ; langmacros.nsh when updating this file 12 13 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "Cet assistant va vous guider à travers l'installation de l'éditeur Java OpenStreetMap (JOSM).$\r$\n$\r$\nAvant de lancer l'installation, assurez-vous que JOSM n'est pas déjà en cours d'exécution.$\r$\n$\r$\nVeuillez cliquer sur 'Suivant' pour continuer." 12 14 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_DIR_TEXT "Veuillez choisir un dossier où installer JOSM." 13 15 … … 15 17 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_JOSM "JOSM" 16 18 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_PLUGINS_GROUP "Greffons" 17 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_AGPIFOJ_PLUGIN "AgPifoJ"18 19 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_TURNRESTRICTIONS_PLUGIN "TurnRestrictions" 19 20 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_WMS "Téléchargement WMS" … … 24 25 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_JOSM "JOSM est l'éditeur Java OpenStreetMap pour les fichiers .osm." 25 26 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_PLUGINS_GROUP "Une sélection de greffons utiles pour JOSM." 26 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_AGPIFOJ_PLUGIN "Corrèle des photos avec des traces GPS ou importe des photos géolocalisées EXIF."27 ;!insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_REMOTECONTROL_PLUGIN "Let other applications send commands to JOSM."28 27 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_TURNRESTRICTIONS_PLUGIN "Permet de saisir et de maintenir des informations sur les restrictions de tourner." 29 ;!insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_VALIDATOR_PLUGIN "Validates edited data if it conforms to common suggestions."30 28 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_WMS "Affiche des images en arrière-plan à partir de sources Web Map Service (WMS)." 31 29 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_STARTMENU "Ajoute une entrée JOSM au menu démarrer." … … 46 44 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_INSTDIR_ERROR "Attention: Le dossier $INSTDIR n'a pas pu être supprimé !" 47 45 48 49 46 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_UNINSTALL "JOSM" 50 47 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_PERSONAL_SETTINGS "Paramètres personnels" 51 48 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SEC_PLUGINS "Greffons personnels" 52 49 53 54 50 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SECDESC_UNINSTALL "Désinstaller JOSM." 55 51 !insertmacro JOSM_MACRO_DEFAULT_STRING un.JOSM_SECDESC_PERSONAL_SETTINGS "Désinstaller les paramètres personnels de votre profil: $PROFILE." 56 -
applications/editors/josm/nsis/locale/german.nsh
r30108 r30581 7 7 ;; Author: Bjoern Voigt <bjoern@cs.tu-berlin.de>, 2003. 8 8 ;; Version 2 9 ;;10 9 11 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "Diese Installationshilfe wird Sie durch den Installationsvorgang des JAVA OpenStreetMap Editors (JOSM) führen.\r\n\r\nBevor Sie die Installation starten, stellen Sie bitte sicher das JOSM nicht bereits läuft.\r\n\r\nAuf 'Weiter' klicken um fortzufahren." 10 ; Make sure to update the JOSM_MACRO_LANGUAGEFILE_END macro in 11 ; langmacros.nsh when updating this file 12 13 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_WELCOME_TEXT "Diese Installationshilfe wird Sie durch den Installationsvorgang des JAVA OpenStreetMap Editors (JOSM) führen.$\r$\n$\r$\nBevor Sie die Installation starten, stellen Sie bitte sicher das JOSM nicht bereits läuft.$\r$\n$\r$\nAuf 'Weiter' klicken um fortzufahren." 12 14 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_DIR_TEXT "Bitte das Verzeichnis auswählen, in das JOSM installiert werden soll." 13 15 … … 15 17 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_JOSM "JOSM" 16 18 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_PLUGINS_GROUP "Plugins" 17 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_AGPIFOJ_PLUGIN "AgPifoJ"18 19 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_TURNRESTRICTIONS_PLUGIN "TurnRestrictions" 19 20 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SEC_WMS "WMS Downloadprogram" … … 24 25 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_JOSM "JOSM ist der JAVA OpenStreetMap Editor für .osm Dateien." 25 26 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_PLUGINS_GROUP "Eine Auswahl an nützlichen JOSM Plugins." 26 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_AGPIFOJ_PLUGIN "Bringt GPS Tracks mit Fotos in Übereinstimmung oder importiert EXIF Fotos"27 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_REMOTECONTROL_PLUGIN "Andere Applikationen können JOSM Kommandos zusenden."28 27 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_TURNRESTRICTIONS_PLUGIN "Erleichtert die Eingabe und Pflege von Informationen zu Abbiegebeschränkungen." 29 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_VALIDATOR_PLUGIN "Validatiert geänderte Daten ob diese mit den üblichen Ratschlägen übereinstimmen."30 28 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_WMS "Hintergrundbilder von Web Map Service (WMS) Quellen." 31 29 !insertmacro JOSM_MACRO_DEFAULT_STRING JOSM_SECDESC_STARTMENU "Fügt JOSM zum Startmenü hinzu."
Note:
See TracChangeset
for help on using the changeset viewer.