Changeset 30580 in osm for applications/editors/josm/nsis/josm.nsi
- Timestamp:
- 2014-08-11T02:02:24+02:00 (12 years ago)
- File:
-
- 1 edited
-
applications/editors/josm/nsis/josm.nsi (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/nsis/josm.nsi
r30517 r30580 6 6 ; If you get an error here, please update to at least NSIS 2.07! 7 7 SetCompressor /SOLID lzma 8 9 !define DEST "josm"10 8 11 9 ; Used to refresh the display of file association … … 47 45 !define MUI_WELCOMEPAGE_TEXT $(JOSM_WELCOME_TEXT) 48 46 49 !define MUI_FINISHPAGE_RUN "$INSTDIR\ josm.exe"47 !define MUI_FINISHPAGE_RUN "$INSTDIR\${DEST}.exe" 50 48 51 49 … … 267 265 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "DisplayName" "JOSM ${VERSION}" 268 266 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "UninstallString" '"$INSTDIR\uninstall.exe"' 269 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "Publisher" "The OpenStreetMap developer community, http://www.openstreetmap.org/"270 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "HelpLink" "mailto: newbies@openstreetmap.org."271 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "URLInfoAbout" "http ://www.openstreetmap.org/"272 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "URLUpdateInfo" "http ://wiki.openstreetmap.org/index.php/JOSM"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" 273 271 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "NoModify" 1 274 272 WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" "NoRepair" 1 … … 276 274 277 275 ; Write an entry for ShellExecute 278 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\ josm.exe" "" '$INSTDIR\josm.exe'279 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\ josm.exe" "Path" '$INSTDIR'276 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${DEST}.exe" "" '$INSTDIR\${DEST}.exe' 277 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${DEST}.exe" "Path" '$INSTDIR' 280 278 281 279 SectionEnd ; "Required" … … 286 284 SectionIn 1 287 285 SetOutPath $INSTDIR 288 File " josm.exe"286 File "${DEST}.exe" 289 287 File "josm-tested.jar" 290 288 … … 328 326 ; To quote "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11d.asp": 329 327 ; "Do not include Readme, Help, or Uninstall entries on the Programs menu." 330 CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\ josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)328 CreateShortCut "$SMPROGRAMS\JOSM.lnk" "$INSTDIR\${DEST}.exe" "" "$INSTDIR\${DEST}.exe" 0 "" "" $(JOSM_LINK_TEXT) 331 329 SectionEnd 332 330 … … 335 333 ; Create desktop icon 336 334 ; Desktop icon for a program should not be installed as default! 337 CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\ josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)335 CreateShortCut "$DESKTOP\JOSM.lnk" "$INSTDIR\${DEST}.exe" "" "$INSTDIR\${DEST}.exe" 0 "" "" $(JOSM_LINK_TEXT) 338 336 SectionEnd 339 337 … … 342 340 ; Create quick launch icon. Does not really exist as of Windows 7/8 but still advanced users use it. 343 341 ; Only disable it by default, see #10241 344 CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\ josm.exe" "" "$INSTDIR\josm.exe" 0 "" "" $(JOSM_LINK_TEXT)342 CreateShortCut "$QUICKLAUNCH\JOSM.lnk" "$INSTDIR\${DEST}.exe" "" "$INSTDIR\${DEST}.exe" 0 "" "" $(JOSM_LINK_TEXT) 345 343 SectionEnd 346 344 … … 350 348 ; Create File Extensions 351 349 WriteRegStr HKCR ${OSM_ASSOC} "" "OpenStreetMap data" 352 WriteRegStr HKCR "${OSM_ASSOC}\Shell\open\command" "" '"$INSTDIR\ josm.exe" "%1"'353 WriteRegStr HKCR "${OSM_ASSOC}\DefaultIcon" "" '"$INSTDIR\ josm.exe",0'350 WriteRegStr HKCR "${OSM_ASSOC}\Shell\open\command" "" '"$INSTDIR\${DEST}.exe" "%1"' 351 WriteRegStr HKCR "${OSM_ASSOC}\DefaultIcon" "" '"$INSTDIR\${DEST}.exe",0' 354 352 push $R0 355 353 StrCpy $R0 ".osm" … … 394 392 Abort $(un.JOSM_IN_USE_ERROR) 395 393 NoJOSMErrorMsg: 396 Delete "$INSTDIR\ josm.exe"394 Delete "$INSTDIR\${DEST}.exe" 397 395 Delete "$INSTDIR\imageformats\qjpeg4.dll" 398 396 RMDir "$INSTDIR\imageformats" … … 406 404 407 405 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\OSM" 408 DeleteRegKey HKEY_LOCAL_MACHINE "Software\ josm.exe"409 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\ josm.exe"406 DeleteRegKey HKEY_LOCAL_MACHINE "Software\${DEST}.exe" 407 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\App Paths\${DEST}.exe" 410 408 411 409 ; Remove Language preference info
Note:
See TracChangeset
for help on using the changeset viewer.
