Changeset 30581 in osm for applications/editors/josm/nsis/josm.nsi
- Timestamp:
- 2014-08-13T02:48:01+02:00 (11 years ago)
- File:
-
- 1 edited
-
applications/editors/josm/nsis/josm.nsi (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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" " TheOpenStreetMap JOSMdevelopers 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" 1 272 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "NoRepair" 1 261 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
Note:
See TracChangeset
for help on using the changeset viewer.
