summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-10-05 23:14:21 -0400
committera1xd <[email protected]>2020-10-07 05:31:23 -0400
commitc5987ac1e233e1093485d38154d8896e4bb6ee44 (patch)
treeeb559c944c671f6fffb6c84dc2ebca9f7e663b66
parentFixed anisotropy not loading correctly on save (diff)
downloadrawaccel-c5987ac1e233e1093485d38154d8896e4bb6ee44.tar.xz
rawaccel-c5987ac1e233e1093485d38154d8896e4bb6ee44.zip
improve installer + docs
improve exception handling add link to vcr redist in install section of guide
-rw-r--r--doc/Guide.md4
-rw-r--r--installer/installer.cpp5
-rw-r--r--uninstaller/uninstaller.cpp5
3 files changed, 11 insertions, 3 deletions
diff --git a/doc/Guide.md b/doc/Guide.md
index 5f18e02..c3498ac 100644
--- a/doc/Guide.md
+++ b/doc/Guide.md
@@ -1,7 +1,9 @@
# Raw Accel Guide
## Installation
-Run `installer.exe` in the release directory to install the Raw Accel driver. Restart your computer for the installation to take effect.
+
+Run `installer.exe` in the release directory to install the Raw Accel driver. Restart your computer for the installation to take effect.
+* If you encounter a `VCRUNTIME` related system error, [download and install the latest version from Microsoft.](https://aka.ms/vs/16/release/vc_redist.x64.exe)
Run `uninstaller.exe` in the release directory to uninstall the driver. Restart for the uninstallation to take effect.
diff --git a/installer/installer.cpp b/installer/installer.cpp
index 03c8881..06f234e 100644
--- a/installer/installer.cpp
+++ b/installer/installer.cpp
@@ -76,7 +76,10 @@ int main() {
std::cout << "Install complete, change will take effect after restart.\n";
}
- catch (std::exception e) {
+ catch (const std::system_error& e) {
+ std::cerr << "Error: " << e.what() << ' ' << e.code() << '\n';
+ }
+ catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << '\n';
}
diff --git a/uninstaller/uninstaller.cpp b/uninstaller/uninstaller.cpp
index 4d02715..8d9e890 100644
--- a/uninstaller/uninstaller.cpp
+++ b/uninstaller/uninstaller.cpp
@@ -20,7 +20,10 @@ int main() {
}
std::cout << "Removal complete, change will take effect after restart.\n";
}
- catch (std::exception e) {
+ catch (const std::system_error& e) {
+ std::cerr << "Error: " << e.what() << ' ' << e.code() << '\n';
+ }
+ catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << '\n';
}