Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9f9d2c7

Browse filesBrowse files
dhalbertcmaglie
authored andcommitted
do not install CPX drivers on win10
1 parent 09f867e commit 9f9d2c7
Copy full SHA for 9f9d2c7

File tree

3 files changed

+18
-0
lines changed
Filter options

3 files changed

+18
-0
lines changed

‎post_install.bat

Copy file name to clipboardExpand all lines: post_install.bat
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,22 @@ if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
77
) ELSE (
88
drivers\dpinst-x86.exe %ARGS%
99
)
10+
11+
@echo off
12+
setlocal
13+
for /f "tokens=4-5 delims=[.] " %%i in ('ver') do @(if %%i==Version (set VERSION=%%j) else (set VERSION=%%i))
14+
if %VERSION% GEQ 10 (
15+
exit /b 0
16+
)
17+
endlocal
18+
19+
REM dpinst /PATH has problems with relative paths, so use absolute path.
20+
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
21+
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
22+
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
23+
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
24+
) ELSE (
25+
drivers/dpinst-x86.exe /PATH %cd%\drivers\prewin10 %ARGS%
26+
)
27+
1028
exit /b 0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.