1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Added TRK files Windows association

This commit is contained in:
Martin Tůma 2022-01-01 21:06:33 +01:00
parent 0483cdb5db
commit 7d98a797f5
4 changed files with 15 additions and 9 deletions

View File

@ -497,7 +497,8 @@ win32 {
icons/formats/wld.ico \
icons/formats/omd.ico \
icons/formats/ghp.ico \
icons/formats/qct.ico
icons/formats/qct.ico \
icons/formats/trk.ico
DEFINES += _USE_MATH_DEFINES \
NOGDI
}

View File

@ -28,3 +28,4 @@ wld:#c74c8f
omd:#ed09cb
ghp:#ed09cb
qct:#370642
trk:#cccccc

BIN
icons/formats/trk.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

View File

@ -178,13 +178,14 @@ Section "GPXSee" SEC_APP
!insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 22
!insertmacro FILE_ASSOCIATION_ADD "ghp" "ONmove Log File" 23
!insertmacro FILE_ASSOCIATION_ADD "qct" "QuickChart Map File" 24
!insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 25
!insertmacro FILE_ASSOCIATION_ADD "kmz" "KML geographic compressed data" 25
!insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 26
!insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 27
!insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 28
!insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track File" 29
!insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 30
!insertmacro FILE_ASSOCIATION_ADD "trk" "TwoNav Track File" 25
!insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 26
!insertmacro FILE_ASSOCIATION_ADD "kmz" "KML geographic compressed data" 26
!insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 27
!insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 28
!insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 29
!insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track File" 30
!insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 31
WriteRegStr HKCR "Applications\GPXSee.exe\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
WriteRegStr HKCR ".gpx\OpenWithList" "GPXSee.exe" ""
@ -231,6 +232,7 @@ Section "GPXSee" SEC_APP
WriteRegStr HKCR ".omd\OpenWithList" "GPXSee.exe" ""
WriteRegStr HKCR ".ghp\OpenWithList" "GPXSee.exe" ""
WriteRegStr HKCR ".qct\OpenWithList" "GPXSee.exe" ""
WriteRegStr HKCR ".trk\OpenWithList" "GPXSee.exe" ""
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
@ -381,6 +383,7 @@ Section "Uninstall"
!insertmacro FILE_ASSOCIATION_REMOVE "omd"
!insertmacro FILE_ASSOCIATION_REMOVE "ghp"
!insertmacro FILE_ASSOCIATION_REMOVE "qct"
!insertmacro FILE_ASSOCIATION_REMOVE "trk"
DeleteRegValue HKCR ".gpx\OpenWithList" "GPXSee.exe"
DeleteRegValue HKCR ".tcx\OpenWithList" "GPXSee.exe"
@ -426,6 +429,7 @@ Section "Uninstall"
DeleteRegValue HKCR ".omd\OpenWithList" "GPXSee.exe"
DeleteRegValue HKCR ".ghp\OpenWithList" "GPXSee.exe"
DeleteRegValue HKCR ".qct\OpenWithList" "GPXSee.exe"
DeleteRegValue HKCR ".trk\OpenWithList" "GPXSee.exe"
DeleteRegKey HKCR "Applications\GPXSee.exe"
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
@ -458,4 +462,4 @@ LangString DESC_LOCALIZATION ${LANG_ENGLISH} \
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP)
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
!insertmacro MUI_FUNCTION_DESCRIPTION_END