Year++ in copyright notices
[GPXSee.git] / pkg / windows / gpxsee64.nsi
blobec553a290001085da355ceb45c29391c3008d617
1 !include "MUI2.nsh"
2 !include "x64.nsh"
3 !include "WinVer.nsh"
6 ; Macros
8 ; File association
9 !macro FILE_ASSOCIATION_ADD EXT DESC ICON
10 WriteRegStr HKCR ".${EXT}" "" "GPXSee.${EXT}"
11 WriteRegStr HKCR "GPXSee.${EXT}" "" "${DESC}"
12 WriteRegStr HKCR "GPXSee.${EXT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,${ICON}"
13 WriteRegStr HKCR "GPXSee.${EXT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
14 !macroend
16 !macro FILE_ASSOCIATION_REMOVE EXT
17 DeleteRegKey HKCR "GPXSee.${EXT}"
18 DeleteRegKey HKCR ".${EXT}"
19 !macroend
21 ; Translations
22 !macro LOCALIZATION LANG CODE
23 Section "${LANG}"
24 IfFileExists "$INSTDIR\translations" +2 0
25 CreateDirectory "$INSTDIR\translations"
26 File /oname=translations\gpxsee_${CODE}.qm translations\gpxsee_${CODE}.qm
27 !if /FileExists translations\qt_${CODE}.qm
28 File /oname=translations\qt_${CODE}.qm translations\qt_${CODE}.qm
29 !endif
30 SectionEnd
31 !macroend
33 ;--------------------------------
35 Unicode true
37 ; The name of the installer
38 Name "GPXSee"
39 ; Program version
40 !define VERSION "13.14"
42 ; The file to write
43 OutFile "GPXSee-${VERSION}_x64.exe"
44 ; Compression method
45 SetCompressor /SOLID lzma
47 ; Required execution level
48 RequestExecutionLevel admin
50 ; Don't let the OS scale(blur) the installer GUI
51 ManifestDPIAware true
53 ; The default installation directory
54 InstallDir "$PROGRAMFILES64\GPXSee"
56 ; Installer executable info
57 VIProductVersion "${VERSION}.0.0"
58 VIAddVersionKey "ProductVersion" ${VERSION}
59 VIAddVersionKey "FileVersion" "${VERSION}.0.0"
60 VIAddVersionKey "ProductName" "GPXSee"
61 VIAddVersionKey "LegalCopyright" "Copyright (c) 2015-2024 Martin Tůma"
62 VIAddVersionKey "FileDescription" "GPXSee installer (x64)"
64 ; Registry key to check for directory (so if you install again, it will
65 ; overwrite the old one automatically)
66 InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
68 ; Registry key for uninstaller
69 !define REGENTRY "Software\Microsoft\Windows\CurrentVersion\Uninstall\GPXSee"
71 ; Start menu page configuration
72 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
73 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
74 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
76 Var StartMenuFolder
78 ;--------------------------------
80 ; Pages
82 !insertmacro MUI_PAGE_WELCOME
83 !insertmacro MUI_PAGE_LICENSE "licence.txt"
84 !insertmacro MUI_PAGE_COMPONENTS
85 !insertmacro MUI_PAGE_DIRECTORY
86 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
87 !insertmacro MUI_PAGE_INSTFILES
89 !insertmacro MUI_UNPAGE_CONFIRM
90 !insertmacro MUI_UNPAGE_INSTFILES
92 ;--------------------------------
94 ; Languages
95 !insertmacro MUI_LANGUAGE "English"
97 Function .onInit
98 ${IfNot} ${AtLeastWin7}
99 MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later."
100 Abort
101 ${EndIf}
103 ${If} ${RunningX64}
104 SetRegView 64
105 ${Else}
106 MessageBox MB_OK "The 64b version of GPXSee can not be run on 32b systems."
107 Abort
108 ${EndIf}
109 FunctionEnd
111 ; The stuff to install
112 Section "GPXSee" SEC_APP
114 SectionIn RO
116 ; Set output path to the installation directory
117 SetOutPath $INSTDIR
119 ; Put the files there
120 File "gpxsee.exe"
121 File /r "maps"
122 File /r "CRS"
123 File /r "symbols"
125 ; Create the uninstaller
126 WriteUninstaller "$INSTDIR\uninstall.exe"
128 ; Create start menu entry and add links
129 SetShellVarContext all
130 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
131 CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
132 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
133 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
134 !insertmacro MUI_STARTMENU_WRITE_END
136 ; Write the installation path into the registry
137 DetailPrint "Registering application..."
138 WriteRegStr HKLM SOFTWARE\GPXSee "Install_Dir" "$INSTDIR"
140 ; Write the uninstall keys for Windows
141 WriteRegStr HKLM "${REGENTRY}" "DisplayName" "GPXSee (x64)"
142 WriteRegStr HKLM "${REGENTRY}" "Publisher" "Martin Tůma"
143 WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "${VERSION}"
144 WriteRegStr HKLM "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
145 WriteRegStr HKLM "${REGENTRY}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
146 WriteRegStr HKLM "${REGENTRY}" "DisplayIcon" '"$INSTDIR\gpxsee.exe"'
147 WriteRegStr HKLM "${REGENTRY}" "InstallLocation" '"$INSTDIR"'
148 WriteRegStr HKLM "${REGENTRY}" "URLInfoAbout" "https://www.gpxsee.org"
149 WriteRegDWORD HKLM "${REGENTRY}" "NoModify" 1
150 WriteRegDWORD HKLM "${REGENTRY}" "NoRepair" 1
152 ; Associate file formats
153 DetailPrint "Associating file types..."
154 !insertmacro FILE_ASSOCIATION_ADD "wpt" "OziExplorer Waypoint File" 1
155 !insertmacro FILE_ASSOCIATION_ADD "loc" "Geocaching.com Waypoint File" 2
156 !insertmacro FILE_ASSOCIATION_ADD "slf" "Sigma Log File" 3
157 !insertmacro FILE_ASSOCIATION_ADD "geojson" "GeoJSON" 4
158 !insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP File" 5
159 !insertmacro FILE_ASSOCIATION_ADD "gpi" "Garmin POI File" 6
160 !insertmacro FILE_ASSOCIATION_ADD "sml" "Suunto Markup Language" 7
161 !insertmacro FILE_ASSOCIATION_ADD "img" "Garmin IMG Map" 8
162 !insertmacro FILE_ASSOCIATION_ADD "jnx" "Garmin JNX Map" 9
163 !insertmacro FILE_ASSOCIATION_ADD "kap" "BSB Nautical Chart" 10
164 !insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 11
165 !insertmacro FILE_ASSOCIATION_ADD "map" "OziExplorer Map File" 12
166 !insertmacro FILE_ASSOCIATION_ADD "gmi" "GPS Tuner Map Calibration File" 12
167 !insertmacro FILE_ASSOCIATION_ADD "mbtiles" "MBTiles Map File" 13
168 !insertmacro FILE_ASSOCIATION_ADD "rmap" "TwoNav Raster Map File" 14
169 !insertmacro FILE_ASSOCIATION_ADD "tba" "TrekBuddy Atlas" 15
170 !insertmacro FILE_ASSOCIATION_ADD "aqm" "AlpineQuest Map File" 16
171 !insertmacro FILE_ASSOCIATION_ADD "sqlite" "Osmdroid SQLite Map File" 17
172 !insertmacro FILE_ASSOCIATION_ADD "sqlitedb" "RMaps SQLite Map File" 17
173 !insertmacro FILE_ASSOCIATION_ADD "ov2" "TomTom POI File" 18
174 !insertmacro FILE_ASSOCIATION_ADD "itn" "TomTom Route File" 19
175 !insertmacro FILE_ASSOCIATION_ADD "wld" "ESRI World File" 20
176 !insertmacro FILE_ASSOCIATION_ADD "jgw" "ESRI World File" 20
177 !insertmacro FILE_ASSOCIATION_ADD "gfw" "ESRI World File" 20
178 !insertmacro FILE_ASSOCIATION_ADD "pgw" "ESRI World File" 20
179 !insertmacro FILE_ASSOCIATION_ADD "tfw" "ESRI World File" 20
180 !insertmacro FILE_ASSOCIATION_ADD "omd" "ONmove Log File" 21
181 !insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 22
182 !insertmacro FILE_ASSOCIATION_ADD "ghp" "ONmove Log File" 23
183 !insertmacro FILE_ASSOCIATION_ADD "qct" "QuickChart Map File" 24
184 !insertmacro FILE_ASSOCIATION_ADD "trk" "TwoNav Track File" 25
185 !insertmacro FILE_ASSOCIATION_ADD "gemf" "GEMF Map File" 26
186 !insertmacro FILE_ASSOCIATION_ADD "000" "IHO S-57 Electronic Navigation Chart" 27
187 !insertmacro FILE_ASSOCIATION_ADD "031" "IHO S-57 Electronic Navigation Catalogue" 28
188 !insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 29
189 !insertmacro FILE_ASSOCIATION_ADD "kmz" "KML geographic compressed data" 29
190 !insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 30
191 !insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 31
192 !insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 32
193 !insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track File" 33
194 !insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 34
196 WriteRegStr HKCR "Applications\GPXSee.exe\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
197 WriteRegStr HKCR ".gpx\OpenWithList" "GPXSee.exe" ""
198 WriteRegStr HKCR ".tcx\OpenWithList" "GPXSee.exe" ""
199 WriteRegStr HKCR ".kml\OpenWithList" "GPXSee.exe" ""
200 WriteRegStr HKCR ".fit\OpenWithList" "GPXSee.exe" ""
201 WriteRegStr HKCR ".igc\OpenWithList" "GPXSee.exe" ""
202 WriteRegStr HKCR ".nmea\OpenWithList" "GPXSee.exe" ""
203 WriteRegStr HKCR ".plt\OpenWithList" "GPXSee.exe" ""
204 WriteRegStr HKCR ".rte\OpenWithList" "GPXSee.exe" ""
205 WriteRegStr HKCR ".wpt\OpenWithList" "GPXSee.exe" ""
206 WriteRegStr HKCR ".loc\OpenWithList" "GPXSee.exe" ""
207 WriteRegStr HKCR ".slf\OpenWithList" "GPXSee.exe" ""
208 WriteRegStr HKCR ".geojson\OpenWithList" "GPXSee.exe" ""
209 WriteRegStr HKCR ".cup\OpenWithList" "GPXSee.exe" ""
210 WriteRegStr HKCR ".gpi\OpenWithList" "GPXSee.exe" ""
211 WriteRegStr HKCR ".sml\OpenWithList" "GPXSee.exe" ""
212 WriteRegStr HKCR ".ov2\OpenWithList" "GPXSee.exe" ""
213 WriteRegStr HKCR ".itn\OpenWithList" "GPXSee.exe" ""
214 WriteRegStr HKCR ".csv\OpenWithList" "GPXSee.exe" ""
215 WriteRegStr HKCR ".json\OpenWithList" "GPXSee.exe" ""
216 WriteRegStr HKCR ".jpg\OpenWithList" "GPXSee.exe" ""
217 WriteRegStr HKCR ".jpeg\OpenWithList" "GPXSee.exe" ""
218 WriteRegStr HKCR ".img\OpenWithList" "GPXSee.exe" ""
219 WriteRegStr HKCR ".jnx\OpenWithList" "GPXSee.exe" ""
220 WriteRegStr HKCR ".kap\OpenWithList" "GPXSee.exe" ""
221 WriteRegStr HKCR ".map\OpenWithList" "GPXSee.exe" ""
222 WriteRegStr HKCR ".gmi\OpenWithList" "GPXSee.exe" ""
223 WriteRegStr HKCR ".mbtiles\OpenWithList" "GPXSee.exe" ""
224 WriteRegStr HKCR ".rmap\OpenWithList" "GPXSee.exe" ""
225 WriteRegStr HKCR ".rtmap\OpenWithList" "GPXSee.exe" ""
226 WriteRegStr HKCR ".tar\OpenWithList" "GPXSee.exe" ""
227 WriteRegStr HKCR ".tba\OpenWithList" "GPXSee.exe" ""
228 WriteRegStr HKCR ".tif\OpenWithList" "GPXSee.exe" ""
229 WriteRegStr HKCR ".tiff\OpenWithList" "GPXSee.exe" ""
230 WriteRegStr HKCR ".xml\OpenWithList" "GPXSee.exe" ""
231 WriteRegStr HKCR ".kmz\OpenWithList" "GPXSee.exe" ""
232 WriteRegStr HKCR ".aqm\OpenWithList" "GPXSee.exe" ""
233 WriteRegStr HKCR ".sqlite\OpenWithList" "GPXSee.exe" ""
234 WriteRegStr HKCR ".sqlitedb\OpenWithList" "GPXSee.exe" ""
235 WriteRegStr HKCR ".wld\OpenWithList" "GPXSee.exe" ""
236 WriteRegStr HKCR ".jgw\OpenWithList" "GPXSee.exe" ""
237 WriteRegStr HKCR ".gfw\OpenWithList" "GPXSee.exe" ""
238 WriteRegStr HKCR ".pgw\OpenWithList" "GPXSee.exe" ""
239 WriteRegStr HKCR ".tfw\OpenWithList" "GPXSee.exe" ""
240 WriteRegStr HKCR ".omd\OpenWithList" "GPXSee.exe" ""
241 WriteRegStr HKCR ".ghp\OpenWithList" "GPXSee.exe" ""
242 WriteRegStr HKCR ".qct\OpenWithList" "GPXSee.exe" ""
243 WriteRegStr HKCR ".trk\OpenWithList" "GPXSee.exe" ""
244 WriteRegStr HKCR ".gemf\OpenWithList" "GPXSee.exe" ""
245 WriteRegStr HKCR ".000\OpenWithList" "GPXSee.exe" ""
246 WriteRegStr HKCR ".031\OpenWithList" "GPXSee.exe" ""
248 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
250 SectionEnd
252 Section "QT framework" SEC_QT
254 SectionIn RO
256 !ifdef QT6
257 File "Qt6Concurrent.dll"
258 File "Qt6Core.dll"
259 File "Qt6Gui.dll"
260 File "Qt6Network.dll"
261 File "Qt6OpenGL.dll"
262 File "Qt6OpenGLWidgets.dll"
263 File "Qt6PrintSupport.dll"
264 File "Qt6Sql.dll"
265 File "Qt6Svg.dll"
266 File "Qt6Widgets.dll"
267 File "Qt6Core5Compat.dll"
268 File "Qt6Positioning.dll"
269 File "Qt6SerialPort.dll"
270 File /r "tls"
271 !else
272 File "Qt5Core.dll"
273 File "Qt5Gui.dll"
274 File "Qt5Widgets.dll"
275 File "Qt5PrintSupport.dll"
276 File "Qt5Network.dll"
277 File "Qt5Sql.dll"
278 File "Qt5Svg.dll"
279 File "Qt5Concurrent.dll"
280 File "Qt5Positioning.dll"
281 File "Qt5SerialPort.dll"
282 File /r "printsupport"
283 !endif
284 File /r "platforms"
285 File /r "imageformats"
286 File /r "styles"
287 File /r "sqldrivers"
288 File /r "position"
290 SectionEnd
292 Section "MSVC runtime" SEC_MSVC
294 SectionIn RO
296 SetOutPath $TEMP
297 File "vc_redist.x64.exe"
298 ExecWait '"$TEMP\vc_redist.x64.exe" /install /quiet /norestart'
299 SetOutPath $INSTDIR
301 SectionEnd
303 Section "OpenSSL" SEC_OPENSSL
305 SectionIn RO
307 !ifdef QT6
308 File "libcrypto-3-x64.dll"
309 File "libssl-3-x64.dll"
310 !else
311 File "libcrypto-1_1-x64.dll"
312 File "libssl-1_1-x64.dll"
313 !endif
315 SectionEnd
317 !ifndef QT6
318 Section "ANGLE" SEC_ANGLE
320 File "libGLESv2.dll"
321 File "libEGL.dll"
322 File "D3DCompiler_47.dll"
324 SectionEnd
325 !endif
327 SectionGroup "Localization" SEC_LOCALIZATION
328 !insertmacro LOCALIZATION "Catalan" "ca"
329 !insertmacro LOCALIZATION "Chinese (Simplified)" "zh"
330 !insertmacro LOCALIZATION "Czech" "cs"
331 !insertmacro LOCALIZATION "Danish" "da"
332 !insertmacro LOCALIZATION "Esperanto" "eo"
333 !insertmacro LOCALIZATION "Finnish" "fi"
334 !insertmacro LOCALIZATION "French" "fr"
335 !insertmacro LOCALIZATION "German" "de"
336 !insertmacro LOCALIZATION "Hungarian" "hu"
337 !insertmacro LOCALIZATION "Italian" "it"
338 !insertmacro LOCALIZATION "Korean" "ko"
339 !insertmacro LOCALIZATION "Norwegian" "nb"
340 !insertmacro LOCALIZATION "Polish" "pl"
341 !insertmacro LOCALIZATION "Portuguese (Brazil)" "pt_BR"
342 !insertmacro LOCALIZATION "Russian" "ru"
343 !insertmacro LOCALIZATION "Spanish" "es"
344 !insertmacro LOCALIZATION "Swedish" "sv"
345 !insertmacro LOCALIZATION "Turkish" "tr"
346 !insertmacro LOCALIZATION "Ukrainian" "uk"
347 SectionGroupEnd
349 ;--------------------------------
351 ; Uninstaller
353 Section "Uninstall"
355 ; Remove registry keys
356 SetRegView 64
357 DeleteRegKey HKLM "${REGENTRY}"
358 DeleteRegKey HKLM SOFTWARE\GPXSee
360 ; Remove directories used
361 RMDir /r "$INSTDIR"
363 ; Remove Start menu entries
364 SetShellVarContext all
365 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
366 Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
367 RMDir "$SMPROGRAMS\$StartMenuFolder"
369 ; Remove file associations
370 !insertmacro FILE_ASSOCIATION_REMOVE "gpx"
371 !insertmacro FILE_ASSOCIATION_REMOVE "tcx"
372 !insertmacro FILE_ASSOCIATION_REMOVE "kml"
373 !insertmacro FILE_ASSOCIATION_REMOVE "fit"
374 !insertmacro FILE_ASSOCIATION_REMOVE "igc"
375 !insertmacro FILE_ASSOCIATION_REMOVE "nmea"
376 !insertmacro FILE_ASSOCIATION_REMOVE "plt"
377 !insertmacro FILE_ASSOCIATION_REMOVE "rte"
378 !insertmacro FILE_ASSOCIATION_REMOVE "wpt"
379 !insertmacro FILE_ASSOCIATION_REMOVE "loc"
380 !insertmacro FILE_ASSOCIATION_REMOVE "slf"
381 !insertmacro FILE_ASSOCIATION_REMOVE "geojson"
382 !insertmacro FILE_ASSOCIATION_REMOVE "cup"
383 !insertmacro FILE_ASSOCIATION_REMOVE "gpi"
384 !insertmacro FILE_ASSOCIATION_REMOVE "sml"
385 !insertmacro FILE_ASSOCIATION_REMOVE "img"
386 !insertmacro FILE_ASSOCIATION_REMOVE "jnx"
387 !insertmacro FILE_ASSOCIATION_REMOVE "kap"
388 !insertmacro FILE_ASSOCIATION_REMOVE "map"
389 !insertmacro FILE_ASSOCIATION_REMOVE "gmi"
390 !insertmacro FILE_ASSOCIATION_REMOVE "mbtiles"
391 !insertmacro FILE_ASSOCIATION_REMOVE "rmap"
392 !insertmacro FILE_ASSOCIATION_REMOVE "tba"
393 !insertmacro FILE_ASSOCIATION_REMOVE "kmz"
394 !insertmacro FILE_ASSOCIATION_REMOVE "aqm"
395 !insertmacro FILE_ASSOCIATION_REMOVE "sqlite"
396 !insertmacro FILE_ASSOCIATION_REMOVE "sqlitedb"
397 !insertmacro FILE_ASSOCIATION_REMOVE "ov2"
398 !insertmacro FILE_ASSOCIATION_REMOVE "itn"
399 !insertmacro FILE_ASSOCIATION_REMOVE "wld"
400 !insertmacro FILE_ASSOCIATION_REMOVE "jgw"
401 !insertmacro FILE_ASSOCIATION_REMOVE "gfw"
402 !insertmacro FILE_ASSOCIATION_REMOVE "pgw"
403 !insertmacro FILE_ASSOCIATION_REMOVE "tfw"
404 !insertmacro FILE_ASSOCIATION_REMOVE "omd"
405 !insertmacro FILE_ASSOCIATION_REMOVE "ghp"
406 !insertmacro FILE_ASSOCIATION_REMOVE "qct"
407 !insertmacro FILE_ASSOCIATION_REMOVE "trk"
408 !insertmacro FILE_ASSOCIATION_REMOVE "gemf"
409 !insertmacro FILE_ASSOCIATION_REMOVE "000"
410 !insertmacro FILE_ASSOCIATION_REMOVE "031"
412 DeleteRegValue HKCR ".gpx\OpenWithList" "GPXSee.exe"
413 DeleteRegValue HKCR ".tcx\OpenWithList" "GPXSee.exe"
414 DeleteRegValue HKCR ".kml\OpenWithList" "GPXSee.exe"
415 DeleteRegValue HKCR ".fit\OpenWithList" "GPXSee.exe"
416 DeleteRegValue HKCR ".igc\OpenWithList" "GPXSee.exe"
417 DeleteRegValue HKCR ".nmea\OpenWithList" "GPXSee.exe"
418 DeleteRegValue HKCR ".plt\OpenWithList" "GPXSee.exe"
419 DeleteRegValue HKCR ".rte\OpenWithList" "GPXSee.exe"
420 DeleteRegValue HKCR ".wpt\OpenWithList" "GPXSee.exe"
421 DeleteRegValue HKCR ".loc\OpenWithList" "GPXSee.exe"
422 DeleteRegValue HKCR ".slf\OpenWithList" "GPXSee.exe"
423 DeleteRegValue HKCR ".geojson\OpenWithList" "GPXSee.exe"
424 DeleteRegValue HKCR ".cup\OpenWithList" "GPXSee.exe"
425 DeleteRegValue HKCR ".gpi\OpenWithList" "GPXSee.exe"
426 DeleteRegValue HKCR ".sml\OpenWithList" "GPXSee.exe"
427 DeleteRegValue HKCR ".ov2\OpenWithList" "GPXSee.exe"
428 DeleteRegValue HKCR ".itn\OpenWithList" "GPXSee.exe"
429 DeleteRegValue HKCR ".csv\OpenWithList" "GPXSee.exe"
430 DeleteRegValue HKCR ".json\OpenWithList" "GPXSee.exe"
431 DeleteRegValue HKCR ".jpg\OpenWithList" "GPXSee.exe"
432 DeleteRegValue HKCR ".jpeg\OpenWithList" "GPXSee.exe"
433 DeleteRegValue HKCR ".img\OpenWithList" "GPXSee.exe"
434 DeleteRegValue HKCR ".jnx\OpenWithList" "GPXSee.exe"
435 DeleteRegValue HKCR ".kap\OpenWithList" "GPXSee.exe"
436 DeleteRegValue HKCR ".map\OpenWithList" "GPXSee.exe"
437 DeleteRegValue HKCR ".gmi\OpenWithList" "GPXSee.exe"
438 DeleteRegValue HKCR ".mbtiles\OpenWithList" "GPXSee.exe"
439 DeleteRegValue HKCR ".rmap\OpenWithList" "GPXSee.exe"
440 DeleteRegValue HKCR ".rtmap\OpenWithList" "GPXSee.exe"
441 DeleteRegValue HKCR ".tar\OpenWithList" "GPXSee.exe"
442 DeleteRegValue HKCR ".tba\OpenWithList" "GPXSee.exe"
443 DeleteRegValue HKCR ".tif\OpenWithList" "GPXSee.exe"
444 DeleteRegValue HKCR ".tiff\OpenWithList" "GPXSee.exe"
445 DeleteRegValue HKCR ".xml\OpenWithList" "GPXSee.exe"
446 DeleteRegValue HKCR ".kmz\OpenWithList" "GPXSee.exe"
447 DeleteRegValue HKCR ".aqm\OpenWithList" "GPXSee.exe"
448 DeleteRegValue HKCR ".sqlite\OpenWithList" "GPXSee.exe"
449 DeleteRegValue HKCR ".sqlitedb\OpenWithList" "GPXSee.exe"
450 DeleteRegValue HKCR ".wld\OpenWithList" "GPXSee.exe"
451 DeleteRegValue HKCR ".jgw\OpenWithList" "GPXSee.exe"
452 DeleteRegValue HKCR ".gfw\OpenWithList" "GPXSee.exe"
453 DeleteRegValue HKCR ".pgw\OpenWithList" "GPXSee.exe"
454 DeleteRegValue HKCR ".tfw\OpenWithList" "GPXSee.exe"
455 DeleteRegValue HKCR ".omd\OpenWithList" "GPXSee.exe"
456 DeleteRegValue HKCR ".ghp\OpenWithList" "GPXSee.exe"
457 DeleteRegValue HKCR ".qct\OpenWithList" "GPXSee.exe"
458 DeleteRegValue HKCR ".trk\OpenWithList" "GPXSee.exe"
459 DeleteRegValue HKCR ".gemf\OpenWithList" "GPXSee.exe"
460 DeleteRegValue HKCR ".000\OpenWithList" "GPXSee.exe"
461 DeleteRegValue HKCR ".031\OpenWithList" "GPXSee.exe"
462 DeleteRegKey HKCR "Applications\GPXSee.exe"
464 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
466 SectionEnd
468 ;-------------------------------
470 ; Descriptions
472 ; Language strings
473 LangString DESC_QT ${LANG_ENGLISH} \
474 "QT cross-platform application framework."
475 LangString DESC_MSVC ${LANG_ENGLISH} \
476 "Microsoft Visual C++ 2019 runtime. If already installed, will be skipped."
477 LangString DESC_OPENSSL ${LANG_ENGLISH} \
478 "OpenSSL library. Required for HTTPS to work."
479 !ifndef QT6
480 LangString DESC_ANGLE ${LANG_ENGLISH} \
481 "ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers."
482 !endif
483 LangString DESC_APP ${LANG_ENGLISH} \
484 "GPXSee application"
485 LangString DESC_LOCALIZATION ${LANG_ENGLISH} \
486 "Localization"
488 ; Assign language strings to sections
489 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
490 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT)
491 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL)
492 !ifndef QT6
493 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE)
494 !endif
495 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC)
496 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP)
497 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION)
498 !insertmacro MUI_FUNCTION_DESCRIPTION_END