Commit ae4c7ecb authored by Umberto Baldi's avatar Umberto Baldi

modify post_install.bat according to...

modify post_install.bat according to https://github.com/arduino/ArduinoCore-megaavr/blob/master/post_install.bat
parent 2685b9b1
@echo off
set ARGS=/SE /SW /SA
set ARGS=/LM /SW /SA
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
drivers\dpinst-amd64.exe %ARGS%
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
......@@ -8,21 +8,4 @@ if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment