From 9bcfbd0687565b58ab2b955a37d9edab76f90a20 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Wed, 2 Dec 2020 05:00:57 -0500 Subject: merge common-install with common --- installer/installer.vcxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/installer.vcxproj b/installer/installer.vcxproj index 8ff13a6..fec4c1e 100644 --- a/installer/installer.vcxproj +++ b/installer/installer.vcxproj @@ -35,7 +35,7 @@ - + -- cgit v1.2.3 From 7d14daf1d5fce4d09471a3abe2aca49cf7680816 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Wed, 2 Dec 2020 05:25:19 -0500 Subject: embed version info into assemblies check app versions against lib, lib against driver add an 'about' dialog which displays version details, accessible from menu refactor error handling + add check for negative offset --- installer/installer.rc | 100 ++++++++++++++++++++++++++++++++++++++++++++ installer/installer.vcxproj | 12 ++++++ installer/resource.h | 14 +++++++ 3 files changed, 126 insertions(+) create mode 100644 installer/installer.rc create mode 100644 installer/resource.h (limited to 'installer') diff --git a/installer/installer.rc b/installer/installer.rc new file mode 100644 index 0000000..4f56541 --- /dev/null +++ b/installer/installer.rc @@ -0,0 +1,100 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) + +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#include + +VS_VERSION_INFO VERSIONINFO +FILEVERSION RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH +PRODUCTVERSION RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH +FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif +FILEOS 0x40004L +FILETYPE 0x1L +FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "FileDescription", "Raw Accel installer (" RA_MIN_OS ")" + VALUE "FileVersion", RA_VER_STRING + VALUE "OriginalFilename", "converter.exe" + VALUE "ProductName", "Raw Accel" + VALUE "ProductVersion", RA_VER_STRING + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/installer/installer.vcxproj b/installer/installer.vcxproj index fec4c1e..de4bb0e 100644 --- a/installer/installer.vcxproj +++ b/installer/installer.vcxproj @@ -70,6 +70,9 @@ install.manifest + + $(SolutionDir)/common; + @@ -98,10 +101,19 @@ copy /Y "$(TargetPath)" "$(SolutionDir)signed\$(TargetFileName)" + + $(SolutionDir)/common; + + + + + + + diff --git a/installer/resource.h b/installer/resource.h new file mode 100644 index 0000000..98c3941 --- /dev/null +++ b/installer/resource.h @@ -0,0 +1,14 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by installer.rc + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif -- cgit v1.2.3 From 0aca62b28d1b071031460269ccfd7ffdb7b3e6fd Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Wed, 2 Dec 2020 05:47:12 -0500 Subject: support win7 while cross-signing is still available to be dropped by april 2021 --- installer/install.manifest | 6 ++++++ installer/installer.cpp | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'installer') diff --git a/installer/install.manifest b/installer/install.manifest index 0478246..f9b5ea3 100644 --- a/installer/install.manifest +++ b/installer/install.manifest @@ -4,6 +4,12 @@ + + + + + + diff --git a/installer/installer.cpp b/installer/installer.cpp index 06f234e..916209f 100644 --- a/installer/installer.cpp +++ b/installer/installer.cpp @@ -1,9 +1,8 @@ - - #include #include #include + void add_service(const fs::path& target) { SC_HANDLE schSCManager = OpenSCManager( NULL, // local computer @@ -43,8 +42,8 @@ void add_service(const fs::path& target) { int main() { try { - if (!IsWindows10OrGreater()) { - throw std::runtime_error("OS not supported, you need at least Windows 10"); + if (!IsWindows7OrGreater()) { + throw std::runtime_error("OS not supported, you need at least Windows 7"); } fs::path source = fs::path(L"driver") / DRIVER_FILE_NAME; -- cgit v1.2.3 From f87fa2c92e246fe0464eacfc2c338e34061e7fd4 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Sat, 5 Dec 2020 21:26:29 -0500 Subject: update signed, add installers --- installer/installer.rc | 2 +- installer/installer.vcxproj | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'installer') diff --git a/installer/installer.rc b/installer/installer.rc index 4f56541..43672d7 100644 --- a/installer/installer.rc +++ b/installer/installer.rc @@ -72,7 +72,7 @@ BEGIN BEGIN VALUE "FileDescription", "Raw Accel installer (" RA_MIN_OS ")" VALUE "FileVersion", RA_VER_STRING - VALUE "OriginalFilename", "converter.exe" + VALUE "OriginalFilename", "installer.exe" VALUE "ProductName", "Raw Accel" VALUE "ProductVersion", RA_VER_STRING END diff --git a/installer/installer.vcxproj b/installer/installer.vcxproj index de4bb0e..fa18344 100644 --- a/installer/installer.vcxproj +++ b/installer/installer.vcxproj @@ -99,7 +99,8 @@ install.manifest - copy /Y "$(TargetPath)" "$(SolutionDir)signed\$(TargetFileName)" + + $(SolutionDir)/common; -- cgit v1.2.3