summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorTomáš Pazdiora <[email protected]>2021-01-06 14:26:48 +0100
committerTomáš Pazdiora <[email protected]>2021-01-06 14:26:48 +0100
commita249ac942811b995e25ed4af02cb748c5c5a284d (patch)
tree5dd7bb10433047c886bbdc805b3b2dff9e657ca7 /installer
parentMerge pull request #53 from termhn/patch-1 (diff)
downloadrawaccel-a249ac942811b995e25ed4af02cb748c5c5a284d.tar.xz
rawaccel-a249ac942811b995e25ed4af02cb748c5c5a284d.zip
better information for user when installing/removing driver
Diffstat (limited to 'installer')
-rw-r--r--installer/installer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/installer.cpp b/installer/installer.cpp
index 916209f..279fefc 100644
--- a/installer/installer.cpp
+++ b/installer/installer.cpp
@@ -53,6 +53,10 @@ int main() {
fs::path target = get_target_path();
+ if (fs::exists(target)) {
+ std::cout << "Driver already installed. Removing previous installation.\n";
+ }
+
add_service(target);
fs::path tmp = make_temp_path(target);