Skip to content

Commit

Permalink
Use the common URL:$protocol naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Jan 21, 2025
1 parent e27bc43 commit db2d810
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/windows/gpxsee64.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
!macroend

; URI association
!macro URI_ASSOCIATION_ADD PROTO DESC
WriteRegStr HKCR "${PROTO}" "" "${DESC}"
!macro URI_ASSOCIATION_ADD PROTO
WriteRegStr HKCR "${PROTO}" "" "URL:${PROTO}"
WriteRegStr HKCR "${PROTO}" "URL Protocol" ""
WriteRegStr HKCR "${PROTO}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,0"
WriteRegStr HKCR "${PROTO}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
Expand Down Expand Up @@ -212,7 +212,7 @@ Section "GPXSee" SEC_APP
!insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track File" 33
!insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 34

!insertmacro URI_ASSOCIATION_ADD "geo" "geo URI"
!insertmacro URI_ASSOCIATION_ADD "geo"

WriteRegStr HKCR "Applications\GPXSee.exe\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
WriteRegStr HKCR ".gpx\OpenWithList" "GPXSee.exe" ""
Expand Down

0 comments on commit db2d810

Please sign in to comment.