diff --git a/build/env.bat b/build/env.bat deleted file mode 100644 index f03f6e19..00000000 --- a/build/env.bat +++ /dev/null @@ -1,6 +0,0 @@ -CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" -set PATH=C:\qt\qtbase\bin;%PATH% -set PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;%PATH% -set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v7.1\Include;%INCLUDE% -set LIB=C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib;%LIB% -set CL=/D_USING_V110_SDK71_ diff --git a/build/env64.bat b/build/env64.bat deleted file mode 100644 index e43b1d38..00000000 --- a/build/env64.bat +++ /dev/null @@ -1,6 +0,0 @@ -CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 -set PATH=C:\qt64\qtbase\bin;%PATH% -set PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;%PATH% -set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v7.1\Include;%INCLUDE% -set LIB=C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64;%LIB% -set CL=/D_USING_V110_SDK71_ diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi index 0bad81eb..f3934e61 100644 --- a/pkg/gpxsee.nsi +++ b/pkg/gpxsee.nsi @@ -1,5 +1,6 @@ !include "MUI2.nsh" !include "x64.nsh" +!include "WinVer.nsh" ; The name of the installer Name "GPXSee" @@ -55,9 +56,15 @@ Var StartMenuFolder ; Languages !insertmacro MUI_LANGUAGE "English" +Function .onInit + ${IfNot} ${AtLeastWin7} + MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later." + Abort + ${EndIf} +FunctionEnd ; The stuff to install -Section "GPXSee (required)" SEC_APP +Section "GPXSee" SEC_APP SectionIn RO @@ -122,16 +129,15 @@ Section "GPXSee (required)" SEC_APP SectionEnd -Section "QT libs" SEC_QT +Section "QT framework" SEC_QT + + SectionIn RO File "Qt5Core.dll" File "Qt5Gui.dll" File "Qt5Widgets.dll" File "Qt5PrintSupport.dll" File "Qt5Network.dll" - File "libGLESv2.dll" - File "libEGL.dll" - File "D3DCompiler_47.dll" File /r "platforms" File /r "imageformats" File /r "printsupport" @@ -140,6 +146,8 @@ SectionEnd Section "MSVC runtime" SEC_MSVC + SectionIn RO + DetailPrint "Checking whether Visual C++ 2015 Redistributable is already installed..." ${If} ${RunningX64} ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Installed" @@ -159,6 +167,21 @@ Section "MSVC runtime" SEC_MSVC done: SectionEnd +Section "OpenSSL" SEC_OPENSSL + + File "libeay32.dll" + File "ssleay32.dll" + +SectionEnd + +Section "ANGLE" SEC_ANGLE + + File "libGLESv2.dll" + File "libEGL.dll" + File "D3DCompiler_47.dll" + +SectionEnd + ;-------------------------------- ; Uninstaller @@ -201,15 +224,21 @@ SectionEnd ;Language strings LangString DESC_QT ${LANG_ENGLISH} \ - "QT Library. Unselct only if you have QT already installed!" + "QT cross-platform application framework." LangString DESC_MSVC ${LANG_ENGLISH} \ - "Visual C++ 2015 runtime components. Unselct only if you have the runtime already installed!" + "Visual C++ 2015 runtime components. If already installed, will be skipped." +LangString DESC_OPENSSL ${LANG_ENGLISH} \ + "OpenSSL library. Required for HTTPS to work." +LangString DESC_ANGLE ${LANG_ENGLISH} \ + "ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers." LangString DESC_APP ${LANG_ENGLISH} \ "GPXSee application" ;Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT) + !insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL) + !insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) -!insertmacro MUI_FUNCTION_DESCRIPTION_END +!insertmacro MUI_FUNCTION_DESCRIPTION_END \ No newline at end of file diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi index 694e37e5..c7c8c297 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -1,5 +1,6 @@ !include "MUI2.nsh" !include "x64.nsh" +!include "WinVer.nsh" ; The name of the installer Name "GPXSee" @@ -55,7 +56,12 @@ Var StartMenuFolder ; Languages !insertmacro MUI_LANGUAGE "English" -Function .onInit +Function .onInit + ${IfNot} ${AtLeastWin7} + MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later." + Abort + ${EndIf} + ${If} ${RunningX64} SetRegView 64 ${Else} @@ -65,7 +71,7 @@ Function .onInit FunctionEnd ; The stuff to install -Section "GPXSee (required)" SEC_APP +Section "GPXSee" SEC_APP SectionIn RO @@ -130,16 +136,15 @@ Section "GPXSee (required)" SEC_APP SectionEnd -Section "QT libs" SEC_QT +Section "QT framework" SEC_QT + + SectionIn RO File "Qt5Core.dll" File "Qt5Gui.dll" File "Qt5Widgets.dll" File "Qt5PrintSupport.dll" File "Qt5Network.dll" - File "libGLESv2.dll" - File "libEGL.dll" - File "D3DCompiler_47.dll" File /r "platforms" File /r "imageformats" File /r "printsupport" @@ -148,6 +153,8 @@ SectionEnd Section "MSVC runtime" SEC_MSVC + SectionIn RO + DetailPrint "Checking whether Visual C++ 2015 Redistributable is already installed..." ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Installed" StrCmp $R0 "1" 0 +3 @@ -162,6 +169,21 @@ Section "MSVC runtime" SEC_MSVC done: SectionEnd +Section "OpenSSL" SEC_OPENSSL + + File "libeay32.dll" + File "ssleay32.dll" + +SectionEnd + +Section "ANGLE" SEC_ANGLE + + File "libGLESv2.dll" + File "libEGL.dll" + File "D3DCompiler_47.dll" + +SectionEnd + ;-------------------------------- ; Uninstaller @@ -205,15 +227,21 @@ SectionEnd ;Language strings LangString DESC_QT ${LANG_ENGLISH} \ - "QT Library. Unselct only if you have QT already installed!" + "QT cross-platform application framework." LangString DESC_MSVC ${LANG_ENGLISH} \ - "Visual C++ 2015 runtime components. Unselct only if you have the runtime already installed!" + "Visual C++ 2015 runtime components. If already installed, will be skipped." +LangString DESC_OPENSSL ${LANG_ENGLISH} \ + "OpenSSL library. Required for HTTPS to work." +LangString DESC_ANGLE ${LANG_ENGLISH} \ + "ANGLE (OpenGL via Direct3D). Enables OpenGL on systems without native OpenGL drivers." LangString DESC_APP ${LANG_ENGLISH} \ "GPXSee application" ;Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT) + !insertmacro MUI_DESCRIPTION_TEXT ${SEC_OPENSSL} $(DESC_OPENSSL) + !insertmacro MUI_DESCRIPTION_TEXT ${SEC_ANGLE} $(DESC_ANGLE) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) -!insertmacro MUI_FUNCTION_DESCRIPTION_END +!insertmacro MUI_FUNCTION_DESCRIPTION_END \ No newline at end of file