Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f9d2c7

Browse files
dhalbertcmaglie
authored andcommitted
do not install CPX drivers on win10
1 parent 09f867e commit 9f9d2c7

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

post_install.bat

+18
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)