improve installer + docs

improve exception handling
add link to vcr redist in install section of guide
This commit is contained in:
a1xd 2020-10-05 23:14:21 -04:00
parent f7f598fef0
commit c5987ac1e2
3 changed files with 11 additions and 3 deletions

View file

@ -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.

View file

@ -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';
}

View file

@ -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';
}