diff options
| author | JacobPalecki <[email protected]> | 2020-09-27 20:54:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-27 20:54:57 -0700 |
| commit | 5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b (patch) | |
| tree | f1c73a42b369f362a40ea251281d98ee02bf0a98 /installer/installer.cpp | |
| parent | Merge pull request #25 from JacobPalecki/GUI (diff) | |
| parent | add arg checks in wrapper (diff) | |
| download | rawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.tar.xz rawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.zip | |
Merge pull request #26 from a1xd/argcheck
Accel arg checks
Diffstat (limited to 'installer/installer.cpp')
| -rw-r--r-- | installer/installer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/installer/installer.cpp b/installer/installer.cpp index ac426af..03c8881 100644 --- a/installer/installer.cpp +++ b/installer/installer.cpp @@ -1,7 +1,9 @@ + + #include <iostream> #include <utility-install.hpp> - +#include <VersionHelpers.h> void add_service(const fs::path& target) { SC_HANDLE schSCManager = OpenSCManager( NULL, // local computer @@ -41,6 +43,9 @@ 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"); + } fs::path source = fs::path(L"driver") / DRIVER_FILE_NAME; if (!fs::exists(source)) { |