2021-02-07 16:09:17 +01:00
|
|
|
!include "MUI2.nsh"
|
2016-04-12 19:16:52 +02:00
|
|
|
!include "x64.nsh"
|
2017-02-12 17:34:13 +01:00
|
|
|
!include "WinVer.nsh"
|
2018-08-16 06:57:26 +02:00
|
|
|
|
|
|
|
|
2021-10-31 07:50:47 +01:00
|
|
|
; Macros
|
|
|
|
|
|
|
|
; File association
|
|
|
|
!macro FILE_ASSOCIATION_ADD EXT DESC ICON
|
|
|
|
WriteRegStr HKCR ".${EXT}" "" "GPXSee.${EXT}"
|
|
|
|
WriteRegStr HKCR "GPXSee.${EXT}" "" "${DESC}"
|
|
|
|
WriteRegStr HKCR "GPXSee.${EXT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,${ICON}"
|
|
|
|
WriteRegStr HKCR "GPXSee.${EXT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
!macro FILE_ASSOCIATION_REMOVE EXT
|
|
|
|
DeleteRegKey HKCR "GPXSee.${EXT}"
|
|
|
|
DeleteRegKey HKCR ".${EXT}"
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
; Translations
|
|
|
|
!macro LOCALIZATION LANG CODE
|
|
|
|
Section "${LANG}"
|
|
|
|
IfFileExists "$INSTDIR\translations" +2 0
|
|
|
|
CreateDirectory "$INSTDIR\translations"
|
|
|
|
File /oname=translations\gpxsee_${CODE}.qm translations\gpxsee_${CODE}.qm
|
|
|
|
!if /FileExists translations\qt_${CODE}.qm
|
|
|
|
File /oname=translations\qt_${CODE}.qm translations\qt_${CODE}.qm
|
|
|
|
!endif
|
|
|
|
SectionEnd
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
|
2021-02-05 22:01:10 +01:00
|
|
|
Unicode true
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; The name of the installer
|
|
|
|
Name "GPXSee"
|
2016-05-05 22:28:53 +02:00
|
|
|
; Program version
|
2024-11-26 07:40:45 +01:00
|
|
|
!define VERSION "13.33"
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
; The file to write
|
2016-05-05 22:28:53 +02:00
|
|
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
2017-06-18 13:23:00 +02:00
|
|
|
; Compression method
|
|
|
|
SetCompressor /SOLID lzma
|
2016-04-12 19:16:52 +02:00
|
|
|
|
2018-04-14 14:04:19 +02:00
|
|
|
; Required execution level
|
2016-04-12 19:16:52 +02:00
|
|
|
RequestExecutionLevel admin
|
|
|
|
|
2020-10-21 21:19:15 +02:00
|
|
|
; Don't let the OS scale(blur) the installer GUI
|
|
|
|
ManifestDPIAware true
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; The default installation directory
|
|
|
|
InstallDir "$PROGRAMFILES64\GPXSee"
|
|
|
|
|
2017-02-16 18:59:37 +01:00
|
|
|
; Installer executable info
|
|
|
|
VIProductVersion "${VERSION}.0.0"
|
|
|
|
VIAddVersionKey "ProductVersion" ${VERSION}
|
|
|
|
VIAddVersionKey "FileVersion" "${VERSION}.0.0"
|
|
|
|
VIAddVersionKey "ProductName" "GPXSee"
|
2024-01-02 22:04:30 +01:00
|
|
|
VIAddVersionKey "LegalCopyright" "Copyright (c) 2015-2024 Martin Tůma"
|
2017-04-01 18:02:34 +02:00
|
|
|
VIAddVersionKey "FileDescription" "GPXSee installer (x64)"
|
2017-02-16 18:59:37 +01:00
|
|
|
|
2018-04-14 14:04:19 +02:00
|
|
|
; Registry key to check for directory (so if you install again, it will
|
2016-04-12 19:16:52 +02:00
|
|
|
; overwrite the old one automatically)
|
|
|
|
InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
|
|
|
|
|
|
|
; Registry key for uninstaller
|
2016-05-03 10:18:51 +02:00
|
|
|
!define REGENTRY "Software\Microsoft\Windows\CurrentVersion\Uninstall\GPXSee"
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
; Start menu page configuration
|
2018-04-14 14:04:19 +02:00
|
|
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
|
|
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
|
|
|
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
Var StartMenuFolder
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; Pages
|
|
|
|
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
|
|
!insertmacro MUI_PAGE_LICENSE "licence.txt"
|
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; Languages
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
2017-02-12 17:34:13 +01:00
|
|
|
Function .onInit
|
2024-01-21 16:04:59 +01:00
|
|
|
!ifdef QT6
|
|
|
|
${IfNot} ${AtLeastWin10}
|
|
|
|
MessageBox MB_OK "GPXSee can only be installed on Windows 10 or later."
|
|
|
|
Abort
|
|
|
|
${EndIf}
|
|
|
|
!else
|
2017-02-12 17:34:13 +01:00
|
|
|
${IfNot} ${AtLeastWin7}
|
|
|
|
MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later."
|
|
|
|
Abort
|
|
|
|
${EndIf}
|
2024-01-21 16:04:59 +01:00
|
|
|
!endif
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
${If} ${RunningX64}
|
|
|
|
SetRegView 64
|
2018-04-14 14:04:19 +02:00
|
|
|
${Else}
|
|
|
|
MessageBox MB_OK "The 64b version of GPXSee can not be run on 32b systems."
|
|
|
|
Abort
|
2016-04-12 19:16:52 +02:00
|
|
|
${EndIf}
|
2018-04-14 14:04:19 +02:00
|
|
|
FunctionEnd
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
; The stuff to install
|
2017-02-12 17:34:13 +01:00
|
|
|
Section "GPXSee" SEC_APP
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
SectionIn RO
|
2018-04-14 14:04:19 +02:00
|
|
|
|
|
|
|
; Set output path to the installation directory
|
2016-04-12 19:16:52 +02:00
|
|
|
SetOutPath $INSTDIR
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; Put the files there
|
|
|
|
File "gpxsee.exe"
|
2018-01-29 00:19:57 +01:00
|
|
|
File /r "maps"
|
2023-04-13 23:53:31 +02:00
|
|
|
File /r "CRS"
|
2021-10-10 12:44:49 +02:00
|
|
|
File /r "symbols"
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2021-02-10 23:31:38 +01:00
|
|
|
; Create the uninstaller
|
|
|
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
|
|
|
|
2016-11-02 19:39:32 +01:00
|
|
|
; Create start menu entry and add links
|
|
|
|
SetShellVarContext all
|
2018-04-14 14:04:19 +02:00
|
|
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
2016-11-02 19:39:32 +01:00
|
|
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
|
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
|
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_END
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; Write the installation path into the registry
|
2016-11-02 19:39:32 +01:00
|
|
|
DetailPrint "Registering application..."
|
2016-04-12 19:16:52 +02:00
|
|
|
WriteRegStr HKLM SOFTWARE\GPXSee "Install_Dir" "$INSTDIR"
|
2016-11-02 19:39:32 +01:00
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; Write the uninstall keys for Windows
|
2017-04-01 18:02:34 +02:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "DisplayName" "GPXSee (x64)"
|
2021-02-05 22:01:10 +01:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "Publisher" "Martin Tůma"
|
2016-05-05 22:28:53 +02:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "${VERSION}"
|
2016-04-12 19:16:52 +02:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
2023-08-24 09:08:03 +02:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
2021-02-10 23:31:38 +01:00
|
|
|
WriteRegStr HKLM "${REGENTRY}" "DisplayIcon" '"$INSTDIR\gpxsee.exe"'
|
|
|
|
WriteRegStr HKLM "${REGENTRY}" "InstallLocation" '"$INSTDIR"'
|
|
|
|
WriteRegStr HKLM "${REGENTRY}" "URLInfoAbout" "https://www.gpxsee.org"
|
2016-04-12 19:16:52 +02:00
|
|
|
WriteRegDWORD HKLM "${REGENTRY}" "NoModify" 1
|
|
|
|
WriteRegDWORD HKLM "${REGENTRY}" "NoRepair" 1
|
|
|
|
|
2016-11-02 19:39:32 +01:00
|
|
|
; Associate file formats
|
|
|
|
DetailPrint "Associating file types..."
|
2018-08-12 13:30:20 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "wpt" "OziExplorer Waypoint File" 1
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "loc" "Geocaching.com Waypoint File" 2
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "slf" "Sigma Log File" 3
|
2019-01-28 09:05:30 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "geojson" "GeoJSON" 4
|
2019-10-28 14:34:01 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP File" 5
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "gpi" "Garmin POI File" 6
|
2020-01-15 23:10:14 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "sml" "Suunto Markup Language" 7
|
2020-12-15 21:51:08 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "img" "Garmin IMG Map" 8
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "jnx" "Garmin JNX Map" 9
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "kap" "BSB Nautical Chart" 10
|
2020-12-26 19:53:23 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 11
|
2020-12-15 21:51:08 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "map" "OziExplorer Map File" 12
|
2023-12-31 10:48:26 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "gmi" "GPS Tuner Map Calibration File" 12
|
2020-12-15 21:51:08 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "mbtiles" "MBTiles Map File" 13
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "rmap" "TwoNav Raster Map File" 14
|
2020-12-25 19:47:37 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "tba" "TrekBuddy Atlas" 15
|
2021-02-05 22:01:10 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "aqm" "AlpineQuest Map File" 16
|
2022-07-06 09:26:42 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "sqlite" "Osmdroid SQLite Map File" 17
|
2021-02-10 21:27:41 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "sqlitedb" "RMaps SQLite Map File" 17
|
2021-05-12 22:02:04 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "ov2" "TomTom POI File" 18
|
2021-06-27 20:57:54 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "itn" "TomTom Route File" 19
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "wld" "ESRI World File" 20
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "jgw" "ESRI World File" 20
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "gfw" "ESRI World File" 20
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "pgw" "ESRI World File" 20
|
2021-08-18 22:30:02 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "tfw" "ESRI World File" 20
|
2021-08-19 19:45:53 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "omd" "ONmove Log File" 21
|
2021-08-22 19:07:38 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 22
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "ghp" "ONmove Log File" 23
|
2021-11-14 15:54:41 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "qct" "QuickChart Map File" 24
|
2022-01-01 21:06:33 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "trk" "TwoNav Track File" 25
|
2022-07-22 20:34:33 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "gemf" "GEMF Map File" 26
|
2022-11-06 22:13:53 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "000" "IHO S-57 Electronic Navigation Chart" 27
|
2023-09-07 18:25:26 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "031" "IHO S-57 Electronic Navigation Catalogue" 28
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 29
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "kmz" "KML geographic compressed data" 29
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 30
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 31
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 32
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track File" 33
|
|
|
|
!insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 34
|
2020-12-08 01:01:26 +01:00
|
|
|
|
|
|
|
WriteRegStr HKCR "Applications\GPXSee.exe\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
|
|
|
WriteRegStr HKCR ".gpx\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tcx\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".kml\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".fit\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".igc\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".nmea\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".plt\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".rte\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".wpt\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".loc\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".slf\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".geojson\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".cup\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".gpi\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".sml\OpenWithList" "GPXSee.exe" ""
|
2021-05-12 22:02:04 +02:00
|
|
|
WriteRegStr HKCR ".ov2\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".itn\OpenWithList" "GPXSee.exe" ""
|
2020-12-08 01:01:26 +01:00
|
|
|
WriteRegStr HKCR ".csv\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".json\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".jpg\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".jpeg\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".img\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".jnx\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".kap\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".map\OpenWithList" "GPXSee.exe" ""
|
2023-12-31 10:48:26 +01:00
|
|
|
WriteRegStr HKCR ".gmi\OpenWithList" "GPXSee.exe" ""
|
2020-12-08 01:01:26 +01:00
|
|
|
WriteRegStr HKCR ".mbtiles\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".rmap\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".rtmap\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tar\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tba\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tif\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tiff\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".xml\OpenWithList" "GPXSee.exe" ""
|
2020-12-25 19:47:37 +01:00
|
|
|
WriteRegStr HKCR ".kmz\OpenWithList" "GPXSee.exe" ""
|
2021-02-05 22:01:10 +01:00
|
|
|
WriteRegStr HKCR ".aqm\OpenWithList" "GPXSee.exe" ""
|
2022-07-06 09:26:42 +02:00
|
|
|
WriteRegStr HKCR ".sqlite\OpenWithList" "GPXSee.exe" ""
|
2021-02-10 21:27:41 +01:00
|
|
|
WriteRegStr HKCR ".sqlitedb\OpenWithList" "GPXSee.exe" ""
|
2021-06-27 20:57:54 +02:00
|
|
|
WriteRegStr HKCR ".wld\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".jgw\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".gfw\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".pgw\OpenWithList" "GPXSee.exe" ""
|
|
|
|
WriteRegStr HKCR ".tfw\OpenWithList" "GPXSee.exe" ""
|
2021-08-18 22:30:02 +02:00
|
|
|
WriteRegStr HKCR ".omd\OpenWithList" "GPXSee.exe" ""
|
2021-08-19 19:45:53 +02:00
|
|
|
WriteRegStr HKCR ".ghp\OpenWithList" "GPXSee.exe" ""
|
2021-11-14 16:38:01 +01:00
|
|
|
WriteRegStr HKCR ".qct\OpenWithList" "GPXSee.exe" ""
|
2022-01-01 21:06:33 +01:00
|
|
|
WriteRegStr HKCR ".trk\OpenWithList" "GPXSee.exe" ""
|
2022-07-22 20:34:33 +02:00
|
|
|
WriteRegStr HKCR ".gemf\OpenWithList" "GPXSee.exe" ""
|
2022-11-06 22:13:53 +01:00
|
|
|
WriteRegStr HKCR ".000\OpenWithList" "GPXSee.exe" ""
|
2023-09-07 18:25:26 +02:00
|
|
|
WriteRegStr HKCR ".031\OpenWithList" "GPXSee.exe" ""
|
2020-12-08 01:01:26 +01:00
|
|
|
|
2016-05-03 10:18:51 +02:00
|
|
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
SectionEnd
|
|
|
|
|
2024-01-21 12:01:27 +01:00
|
|
|
Section "Qt framework" SEC_QT
|
2017-02-12 17:34:13 +01:00
|
|
|
|
|
|
|
SectionIn RO
|
2016-04-12 19:16:52 +02:00
|
|
|
|
2021-01-09 13:06:31 +01:00
|
|
|
!ifdef QT6
|
|
|
|
File "Qt6Concurrent.dll"
|
|
|
|
File "Qt6Core.dll"
|
|
|
|
File "Qt6Gui.dll"
|
|
|
|
File "Qt6Network.dll"
|
|
|
|
File "Qt6OpenGL.dll"
|
|
|
|
File "Qt6OpenGLWidgets.dll"
|
|
|
|
File "Qt6PrintSupport.dll"
|
|
|
|
File "Qt6Sql.dll"
|
2021-04-18 22:46:58 +02:00
|
|
|
File "Qt6Svg.dll"
|
2021-01-09 13:06:31 +01:00
|
|
|
File "Qt6Widgets.dll"
|
2021-12-04 15:05:30 +01:00
|
|
|
File "Qt6Positioning.dll"
|
|
|
|
File "Qt6SerialPort.dll"
|
2022-01-10 21:54:39 +01:00
|
|
|
File /r "tls"
|
2021-01-09 13:06:31 +01:00
|
|
|
!else
|
2016-04-12 19:16:52 +02:00
|
|
|
File "Qt5Core.dll"
|
|
|
|
File "Qt5Gui.dll"
|
|
|
|
File "Qt5Widgets.dll"
|
|
|
|
File "Qt5PrintSupport.dll"
|
|
|
|
File "Qt5Network.dll"
|
2018-09-21 01:58:58 +02:00
|
|
|
File "Qt5Sql.dll"
|
2021-04-18 22:46:58 +02:00
|
|
|
File "Qt5Svg.dll"
|
2018-11-04 01:14:31 +01:00
|
|
|
File "Qt5Concurrent.dll"
|
2021-12-04 15:05:30 +01:00
|
|
|
File "Qt5Positioning.dll"
|
|
|
|
File "Qt5SerialPort.dll"
|
2021-01-09 13:30:54 +01:00
|
|
|
File /r "printsupport"
|
2021-01-09 13:06:31 +01:00
|
|
|
!endif
|
2016-04-12 19:16:52 +02:00
|
|
|
File /r "platforms"
|
2024-01-21 12:01:27 +01:00
|
|
|
File /r "iconengines"
|
2016-04-12 19:16:52 +02:00
|
|
|
File /r "imageformats"
|
2018-08-05 23:23:53 +02:00
|
|
|
File /r "styles"
|
2018-09-21 01:58:58 +02:00
|
|
|
File /r "sqldrivers"
|
2021-12-04 15:05:30 +01:00
|
|
|
File /r "position"
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section "MSVC runtime" SEC_MSVC
|
|
|
|
|
2017-02-12 17:34:13 +01:00
|
|
|
SectionIn RO
|
|
|
|
|
2020-01-26 15:58:20 +01:00
|
|
|
SetOutPath $TEMP
|
|
|
|
File "vc_redist.x64.exe"
|
|
|
|
ExecWait '"$TEMP\vc_redist.x64.exe" /install /quiet /norestart'
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
SectionEnd
|
|
|
|
|
2024-01-21 12:01:27 +01:00
|
|
|
!ifdef ICU
|
|
|
|
Section "ICU" SEC_ICU
|
2017-02-12 17:34:13 +01:00
|
|
|
|
2021-02-10 23:31:38 +01:00
|
|
|
SectionIn RO
|
|
|
|
|
2024-01-21 12:01:27 +01:00
|
|
|
File "icudt*.dll"
|
|
|
|
File "icuin*.dll"
|
|
|
|
File "icuuc*.dll"
|
|
|
|
|
|
|
|
SectionEnd
|
2023-09-14 23:32:35 +02:00
|
|
|
!endif
|
2017-02-12 17:34:13 +01:00
|
|
|
|
2024-01-21 12:01:27 +01:00
|
|
|
!ifdef OPENSSL
|
|
|
|
Section "OpenSSL" SEC_OPENSSL
|
|
|
|
|
|
|
|
SectionIn RO
|
|
|
|
|
|
|
|
File "libcrypto-*-x64.dll"
|
|
|
|
File "libssl-*-x64.dll"
|
|
|
|
|
2017-02-12 17:34:13 +01:00
|
|
|
SectionEnd
|
2024-01-21 12:01:27 +01:00
|
|
|
!endif
|
2017-02-12 17:34:13 +01:00
|
|
|
|
2024-01-21 12:01:27 +01:00
|
|
|
!ifdef ANGLE
|
2017-02-12 17:34:13 +01:00
|
|
|
Section "ANGLE" SEC_ANGLE
|
|
|
|
|
|
|
|
File "libGLESv2.dll"
|
|
|
|
File "libEGL.dll"
|
|
|
|
File "D3DCompiler_47.dll"
|
|
|
|
|
|
|
|
SectionEnd
|
2021-01-09 13:06:31 +01:00
|
|
|
!endif
|
2017-02-12 17:34:13 +01:00
|
|
|
|
2018-02-09 21:04:37 +01:00
|
|
|
SectionGroup "Localization" SEC_LOCALIZATION
|
2022-09-06 09:31:27 +02:00
|
|
|
!insertmacro LOCALIZATION "Catalan" "ca"
|
2024-10-20 19:15:01 +02:00
|
|
|
!insertmacro LOCALIZATION "Chinese (Simplified)" "zh_CN"
|
2018-08-16 06:57:26 +02:00
|
|
|
!insertmacro LOCALIZATION "Czech" "cs"
|
2018-10-09 00:01:18 +02:00
|
|
|
!insertmacro LOCALIZATION "Danish" "da"
|
2024-10-20 19:15:01 +02:00
|
|
|
!insertmacro LOCALIZATION "English" "en"
|
2020-12-27 19:39:41 +01:00
|
|
|
!insertmacro LOCALIZATION "Esperanto" "eo"
|
2018-08-16 06:57:26 +02:00
|
|
|
!insertmacro LOCALIZATION "Finnish" "fi"
|
|
|
|
!insertmacro LOCALIZATION "French" "fr"
|
|
|
|
!insertmacro LOCALIZATION "German" "de"
|
2020-01-28 22:02:16 +01:00
|
|
|
!insertmacro LOCALIZATION "Hungarian" "hu"
|
2020-06-27 18:05:50 +02:00
|
|
|
!insertmacro LOCALIZATION "Italian" "it"
|
2023-01-23 23:48:00 +01:00
|
|
|
!insertmacro LOCALIZATION "Korean" "ko"
|
2018-10-07 22:27:50 +02:00
|
|
|
!insertmacro LOCALIZATION "Norwegian" "nb"
|
2018-08-16 06:57:26 +02:00
|
|
|
!insertmacro LOCALIZATION "Polish" "pl"
|
2019-02-16 19:54:50 +01:00
|
|
|
!insertmacro LOCALIZATION "Portuguese (Brazil)" "pt_BR"
|
2018-08-16 06:57:26 +02:00
|
|
|
!insertmacro LOCALIZATION "Russian" "ru"
|
2019-01-21 00:01:07 +01:00
|
|
|
!insertmacro LOCALIZATION "Spanish" "es"
|
2018-08-16 06:57:26 +02:00
|
|
|
!insertmacro LOCALIZATION "Swedish" "sv"
|
2018-11-22 22:59:31 +01:00
|
|
|
!insertmacro LOCALIZATION "Turkish" "tr"
|
2019-11-05 21:59:01 +01:00
|
|
|
!insertmacro LOCALIZATION "Ukrainian" "uk"
|
2018-02-08 18:16:44 +01:00
|
|
|
SectionGroupEnd
|
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; Uninstaller
|
|
|
|
|
|
|
|
Section "Uninstall"
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2016-04-12 19:16:52 +02:00
|
|
|
; Remove registry keys
|
2016-04-15 18:19:35 +02:00
|
|
|
SetRegView 64
|
2016-04-12 19:16:52 +02:00
|
|
|
DeleteRegKey HKLM "${REGENTRY}"
|
|
|
|
DeleteRegKey HKLM SOFTWARE\GPXSee
|
|
|
|
|
|
|
|
; Remove directories used
|
|
|
|
RMDir /r "$INSTDIR"
|
|
|
|
|
|
|
|
; Remove Start menu entries
|
|
|
|
SetShellVarContext all
|
|
|
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
|
|
|
Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
|
2016-05-03 10:18:51 +02:00
|
|
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
2018-04-14 14:04:19 +02:00
|
|
|
|
2020-12-08 01:01:26 +01:00
|
|
|
; Remove file associations
|
2018-08-12 13:30:20 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "gpx"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "tcx"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "kml"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "fit"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "igc"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "nmea"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "plt"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "rte"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "wpt"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "loc"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "slf"
|
2019-01-28 20:40:31 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "geojson"
|
2019-08-16 20:46:42 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "cup"
|
2019-10-28 14:34:01 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "gpi"
|
2020-01-15 23:10:14 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "sml"
|
2020-12-15 21:51:08 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "img"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "jnx"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "kap"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "map"
|
2023-12-31 10:48:26 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "gmi"
|
2020-12-15 21:51:08 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "mbtiles"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "rmap"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "tba"
|
2020-12-25 19:47:37 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "kmz"
|
2021-02-05 22:01:10 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "aqm"
|
2022-07-06 09:26:42 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "sqlite"
|
2021-02-10 21:27:41 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "sqlitedb"
|
2021-05-12 22:02:04 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "ov2"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "itn"
|
2021-06-27 20:57:54 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "wld"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "jgw"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "gfw"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "pgw"
|
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "tfw"
|
2021-08-18 22:30:02 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "omd"
|
2021-08-19 19:45:53 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "ghp"
|
2021-11-14 16:38:01 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "qct"
|
2022-01-01 21:06:33 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "trk"
|
2022-07-22 20:34:33 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "gemf"
|
2022-11-06 22:13:53 +01:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "000"
|
2023-09-07 18:25:26 +02:00
|
|
|
!insertmacro FILE_ASSOCIATION_REMOVE "031"
|
2020-12-08 01:01:26 +01:00
|
|
|
|
|
|
|
DeleteRegValue HKCR ".gpx\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tcx\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".kml\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".fit\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".igc\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".nmea\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".plt\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".rte\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".wpt\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".loc\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".slf\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".geojson\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".cup\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".gpi\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".sml\OpenWithList" "GPXSee.exe"
|
2021-05-12 22:02:04 +02:00
|
|
|
DeleteRegValue HKCR ".ov2\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".itn\OpenWithList" "GPXSee.exe"
|
2020-12-08 01:01:26 +01:00
|
|
|
DeleteRegValue HKCR ".csv\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".json\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".jpg\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".jpeg\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".img\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".jnx\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".kap\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".map\OpenWithList" "GPXSee.exe"
|
2023-12-31 10:48:26 +01:00
|
|
|
DeleteRegValue HKCR ".gmi\OpenWithList" "GPXSee.exe"
|
2020-12-08 01:01:26 +01:00
|
|
|
DeleteRegValue HKCR ".mbtiles\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".rmap\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".rtmap\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tar\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tba\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tif\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tiff\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".xml\OpenWithList" "GPXSee.exe"
|
2020-12-25 19:47:37 +01:00
|
|
|
DeleteRegValue HKCR ".kmz\OpenWithList" "GPXSee.exe"
|
2021-02-05 22:01:10 +01:00
|
|
|
DeleteRegValue HKCR ".aqm\OpenWithList" "GPXSee.exe"
|
2022-07-06 09:26:42 +02:00
|
|
|
DeleteRegValue HKCR ".sqlite\OpenWithList" "GPXSee.exe"
|
2021-02-10 21:27:41 +01:00
|
|
|
DeleteRegValue HKCR ".sqlitedb\OpenWithList" "GPXSee.exe"
|
2021-06-27 20:57:54 +02:00
|
|
|
DeleteRegValue HKCR ".wld\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".jgw\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".gfw\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".pgw\OpenWithList" "GPXSee.exe"
|
|
|
|
DeleteRegValue HKCR ".tfw\OpenWithList" "GPXSee.exe"
|
2021-08-18 22:30:02 +02:00
|
|
|
DeleteRegValue HKCR ".omd\OpenWithList" "GPXSee.exe"
|
2021-08-19 19:45:53 +02:00
|
|
|
DeleteRegValue HKCR ".ghp\OpenWithList" "GPXSee.exe"
|
2021-11-14 16:38:01 +01:00
|
|
|
DeleteRegValue HKCR ".qct\OpenWithList" "GPXSee.exe"
|
2022-01-01 21:06:33 +01:00
|
|
|
DeleteRegValue HKCR ".trk\OpenWithList" "GPXSee.exe"
|
2022-07-22 20:34:33 +02:00
|
|
|
DeleteRegValue HKCR ".gemf\OpenWithList" "GPXSee.exe"
|
2022-11-06 22:13:53 +01:00
|
|
|
DeleteRegValue HKCR ".000\OpenWithList" "GPXSee.exe"
|
2023-09-07 18:25:26 +02:00
|
|
|
DeleteRegValue HKCR ".031\OpenWithList" "GPXSee.exe"
|
2020-12-08 01:01:26 +01:00
|
|
|
DeleteRegKey HKCR "Applications\GPXSee.exe"
|
|
|
|
|
2016-05-03 10:18:51 +02:00
|
|
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
2016-04-12 19:16:52 +02:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;-------------------------------
|
|
|
|
|
2022-03-19 14:21:19 +01:00
|
|
|
; Descriptions
|
2016-04-12 19:16:52 +02:00
|
|
|
|
2022-03-19 14:21:19 +01:00
|
|
|
; Language strings
|
2024-01-21 12:01:27 +01:00
|
|
|
!ifdef QT6
|
2016-04-12 19:16:52 +02:00
|
|
|
LangString DESC_QT ${LANG_ENGLISH} \
|
2024-01-21 12:01:27 +01:00
|
|
|
"Qt6 cross-platform application framework."
|
|
|
|
!else
|
|
|
|
LangString DESC_QT ${LANG_ENGLISH} \
|
|
|
|
"Qt5 cross-platform application framework."
|
|
|
|
!endif
|
2016-04-12 19:16:52 +02:00
|
|
|
LangString DESC_MSVC ${LANG_ENGLISH} \
|
2024-01-21 12:01:27 +01:00
|
|
|
"Microsoft Visual C++ runtime. If already installed, will be skipped."
|
|
|
|
!ifdef ICU
|
|
|
|
LangString DESC_ICU ${LANG_ENGLISH} \
|
|
|
|
"ICU library. Required for character set/encoding conversions."
|
|
|
|
!endif
|
|
|
|
!ifdef OPENSSL
|
2017-02-12 17:34:13 +01:00
|
|
|
LangString DESC_OPENSSL ${LANG_ENGLISH} \
|
2024-01-21 12:01:27 +01:00
|
|
|
"OpenSSL library. Qt SSL/TLS backend for HTTPS."
|
|
|
|
!endif
|
|
|
|
!ifdef ANGLE
|
2017-02-12 17:34:13 +01:00
|
|
|
LangString DESC_ANGLE ${LANG_ENGLISH} \
|
|
|
|
"ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers."
|
2022-03-19 14:21:19 +01:00
|
|
|
!endif
|
2016-04-12 19:16:52 +02:00
|
|
|
LangString DESC_APP ${LANG_ENGLISH} \
|
|
|
|
"GPXSee application"
|
2018-02-09 21:04:37 +01:00
|
|
|
LangString DESC_LOCALIZATION ${LANG_ENGLISH} \
|
2018-02-08 18:16:44 +01:00
|
|
|
"Localization"
|
2016-04-12 19:16:52 +02:00
|
|
|
|
2022-03-19 14:21:19 +01:00
|
|
|
; Assign language strings to sections
|
2016-04-12 19:16:52 +02:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT)
|
2024-01-21 12:01:27 +01:00
|
|
|
!ifdef ICU
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_ICU} $(DESC_ICU)
|
|
|
|
!endif
|
|
|
|
!ifdef OPENSSL
|
2017-02-12 17:34:13 +01:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL)
|
2024-01-21 12:01:27 +01:00
|
|
|
!endif
|
|
|
|
!ifdef ANGLE
|
2017-02-12 17:34:13 +01:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE)
|
2022-03-19 14:21:19 +01:00
|
|
|
!endif
|
2016-04-12 19:16:52 +02:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC)
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP)
|
2018-02-09 21:04:37 +01:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION)
|
2022-01-01 21:06:33 +01:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|