summaryrefslogtreecommitdiff
path: root/driver.nsh
diff options
context:
space:
mode:
authorGrant Williamson <grant.williamson@gmail.com>2012-03-07 10:43:08 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-07 10:43:56 +0100
commit2766a6d776dc4f79a11d19a0e82079f84b424faf (patch)
treeb4e1cdd30c9e9c3616d3121d44b26273e75dec2d /driver.nsh
parent0971841c1be32e927ee06e084e60985023dfe5d5 (diff)
Handle "driver is already installed" pnputil error
Diffstat (limited to 'driver.nsh')
-rw-r--r--driver.nsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver.nsh b/driver.nsh
index c6d242f..30ca9ff 100644
--- a/driver.nsh
+++ b/driver.nsh
@@ -111,6 +111,7 @@ lbl_pnputil:
Pop $0
StrCmp $0 "error" lbl_pnputil_not_found
StrCmp $0 "timeout" lbl_pnputil_timeout
+ IntCmp $0 "1" lbl_pnputil_already_exists
IntCmp $0 0 lbl_done
DetailPrint "pnputil.exe reported an error: $0"
Goto lbl_nodriver
@@ -120,6 +121,9 @@ lbl_pnputil_not_found:
lbl_pnputil_timeout:
DetailPrint "timeout waiting for pnputil.exe to run"
Goto lbl_nodriver
+lbl_pnputil_already_exists:
+ DetailPrint "Driver does not need upgraded"
+ Goto lbl_nodriver
lbl_nodriver:
lbl_done: