File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ cd %BaseDir%
2424if errorlevel 1 goto fail
2525
2626call %vcvarsall% x64
27+ set RegKey = " HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots"
28+ set RegVal = " KitsRoot10"
29+ reg query %RegKey% /v %RegVal% > nul 2 >& 1 || (echo Cannot find Windows Kit >& 2 & exit /b 1)
30+ for /f " tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^ | findstr %RegVal% ') do (
31+ set KitRoot = " %%j "
32+ )
2733
2834set TempDir = %TMP% \mkcat-%RANDOM%
2935if exist %TempDir% rmdir /s/q %TempDir%
@@ -36,7 +42,7 @@ if not "%1"=="" (
3642 goto copyloop
3743)
3844echo inf2cat /driver:%TempDir% /os:%OsVer% /uselocaltime
39- inf2cat /driver:%TempDir% /os:%OsVer% /uselocaltime
45+ %KitRoot% \bin\x86\ inf2cat /driver:%TempDir% /os:%OsVer% /uselocaltime
4046if errorlevel 1 goto fail
4147if not " %CertFile% " == " " (
4248 for /F " delims=" %%l in ('certutil -dump " %CertFile% " ^ | findstr /I /C:" Cert Hash(sha1)" ') do (
You can’t perform that action at this time.
0 commit comments