summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Veyde <lveyde@redhat.com>2014-07-17 13:34:38 +0300
committerChristophe Fergeau <cfergeau@redhat.com>2015-04-28 12:45:26 +0200
commitda76c09570861bf8d490023c68644054ce396e1e (patch)
tree3248da884a72cfc4943907bc797dad32c2eb01b8
parent347860b54ed820a828c694f38d2f81ebdb435cd9 (diff)
packaging: Fix issue with Vista, 2K8 and some other OSes
Change-Id: Ibb6e39ca40397d19dcfc81e23edb3e2a907fa7d9 Signed-off-by: Lev Veyde <lveyde@redhat.com>
-rw-r--r--driver.nsh21
1 files changed, 4 insertions, 17 deletions
diff --git a/driver.nsh b/driver.nsh
index 8e3bd8d..25f8de8 100644
--- a/driver.nsh
+++ b/driver.nsh
@@ -60,24 +60,9 @@ Function InstallUpgradeDriver
Goto lbl_upgrade
${EndIf}
- ${If} ${AtLeastWin8}
- StrCpy $0 "C:\Windows\WinSxS\amd64_microsoft-windows-pnputil_31bf3856ad364e35_6.2.9200.16384_none_562d69f6464bbc65\PnPutil.exe"
- goto lbl_pnputil
- ${Endif}
-
- ${If} ${AtLeastWin7}
- ${If} ${RunningX64}
- StrCpy $0 "C:\Windows\winsxs\amd64_microsoft-windows-pnputil_31bf3856ad364e35_6.1.7600.16385_none_5958b438d6388d15\PnPutil.exe"
- goto lbl_pnputil
- ${Else}
- StrCpy $0 "C:\Windows\winsxs\x86_microsoft-windows-pnputil_31bf3856ad364e35_6.1.7600.16385_none_fd3a18b51ddb1bdf\PnPutil.exe"
- goto lbl_pnputil
- ${EndIf}
- ${EndIf}
-
${If} ${AtLeastWinVista}
- StrCpy $0 "pnputil.exe"
- Goto lbl_pnputil
+ StrCpy $0 "PnPutil.exe"
+ goto lbl_pnputil
${EndIf}
DetailPrint "This Windows version doesn't support automatic driver updates."
@@ -124,7 +109,9 @@ lbl_inoapi:
lbl_pnputil:
DetailPrint 'pnputil.exe -i -a "$R1"'
DetailPrint "Installing the $R3 driver..."
+ ${DisableX64FSRedirection}
nsExec::ExecToLog '$0 -i -a "$R1"'
+ ${EnableX64FSRedirection}
Pop $0
StrCmp $0 "error" lbl_pnputil_not_found
StrCmp $0 "timeout" lbl_pnputil_timeout