X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/b1f2d51fcb9b4e8534c56781f85651f98b010353..c6311c82b9c1150ce7ebe18408af30f20f154466:/win32/installer/viking-installer.nsi diff --git a/win32/installer/viking-installer.nsi b/win32/installer/viking-installer.nsi index a3fe94d0..80303808 100644 --- a/win32/installer/viking-installer.nsi +++ b/win32/installer/viking-installer.nsi @@ -257,6 +257,8 @@ Section $(VIKING_SECTION_TITLE) SecViking WriteUninstaller "$INSTDIR\${VIKING_UNINST_EXE}" SetOverwrite off + ; Always associate Viking file type + ${registerExtension} "$INSTDIR\viking.exe" ".vik" "Viking File" done: SectionEnd ; end of default Viking section @@ -285,9 +287,17 @@ SectionGroupEnd ;File association Section $(VIKING_FILE_ASSOCIATION_SECTION_TITLE) SecFileAssociation - ${registerExtension} "$INSTDIR\viking.exe" ".vik" "Viking File" + ${registerExtension} "$INSTDIR\viking.exe" ".gpx" "GPX File" SectionEnd +;-------------------------------- +; GPSBabel Install Section +; +Section $(VIKING_GPSBABEL_SECTION_TITLE) SecGPSBabel + File "bin\Optional\GPSBabel-1.5.1-Setup.exe" + ExecWait '"$INSTDIR\GPSBabel-1.5.1-Setup.exe" /SILENT' + Delete "$INSTDIR\GPSBabel-1.5.1-Setup.exe" +SectionEnd ;-------------------------------- ;Uninstaller Section @@ -327,6 +337,7 @@ Section Uninstall ; File association ${unregisterExtension} ".vik" "Viking File" + ${unregisterExtension} ".gpx" "GPX File" Goto done @@ -355,6 +366,8 @@ SectionEnd ; end of uninstall section $(VIKING_STARTMENU_SHORTCUT_DESC) !insertmacro MUI_DESCRIPTION_TEXT ${SecFileAssociation} \ $(VIKING_FILE_ASSOCIATION_DESC) + !insertmacro MUI_DESCRIPTION_TEXT ${SecGPSBabel} \ + $(VIKING_INSTALL_GPSBABEL_DESC) !insertmacro MUI_FUNCTION_DESCRIPTION_END