Skip to content

Commit

Permalink
do not install CPX drivers on win10
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert authored and cmaglie committed Aug 14, 2018
1 parent 09f867e commit 9f9d2c7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions post_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,22 @@ if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
) ELSE (
drivers\dpinst-x86.exe %ARGS%
)

@echo off
setlocal
for /f "tokens=4-5 delims=[.] " %%i in ('ver') do @(if %%i==Version (set VERSION=%%j) else (set VERSION=%%i))
if %VERSION% GEQ 10 (
exit /b 0
)
endlocal

REM dpinst /PATH has problems with relative paths, so use absolute path.
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
drivers\dpinst-amd64.exe /PATH %cd%\drivers\prewin10 %ARGS%
) ELSE (
drivers/dpinst-x86.exe /PATH %cd%\drivers\prewin10 %ARGS%
)

exit /b 0

0 comments on commit 9f9d2c7

Please sign in to comment.