Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9f9d2c7

Browse files
dhalbertcmaglie
authored andcommitted
do not install CPX drivers on win10
1 parent09f867e commit9f9d2c7

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

‎post_install.bat‎

Lines 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+
@echooff
12+
setlocal
13+
for /f"tokens=4-5 delims=[.]"%%iin ('ver')do@(if%%i==Version (set VERSION=%%j)else (set VERSION=%%i))
14+
if%VERSION%GEQ10 (
15+
exit /b0
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+
)ELSEIF"%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 /b0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp