summaryrefslogtreecommitdiff
path: root/UsbDkInstHelper/UsbDkInstHelper.cpp
diff options
context:
space:
mode:
authorDmitry Fleytman <dfleytma@redhat.com>2015-03-31 11:14:25 +0300
committerDmitry Fleytman <dfleytma@redhat.com>2015-03-31 11:14:25 +0300
commit5593a1cc362222a9cfd687c37e94f96669ea2fb1 (patch)
tree033efb24028320bd6619c14754a59c98b4a81bff /UsbDkInstHelper/UsbDkInstHelper.cpp
parenta80fa35e1dceacfeb362697c4e48f252272002c9 (diff)
UsbDkInstHelper: Add cleanup before installation
This patch fixed MSI installation failure in case non-MSI version is installed or previous installation experienced unexpected exit. Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
Diffstat (limited to 'UsbDkInstHelper/UsbDkInstHelper.cpp')
-rw-r--r--UsbDkInstHelper/UsbDkInstHelper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/UsbDkInstHelper/UsbDkInstHelper.cpp b/UsbDkInstHelper/UsbDkInstHelper.cpp
index cfdf084..a965247 100644
--- a/UsbDkInstHelper/UsbDkInstHelper.cpp
+++ b/UsbDkInstHelper/UsbDkInstHelper.cpp
@@ -29,6 +29,9 @@ using namespace std;
static int Controller_InstallDriver()
{
+ //Clean up any previous versions before reinstalling
+ UsbDk_UninstallDriver();
+
auto res = UsbDk_InstallDriver();
switch (res)
{