From 2685b9b1426fc8344abe30fdb94254f7d0f770ef Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Thu, 16 Dec 2021 18:39:51 +0100 Subject: initial import from https://github.com/arduino/Arduino/tree/master/build/windows/dist/drivers (moved also gemma stuff under `gemma/`) --- post_install.bat | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 post_install.bat (limited to 'post_install.bat') diff --git a/post_install.bat b/post_install.bat new file mode 100644 index 0000000..73b9a24 --- /dev/null +++ b/post_install.bat @@ -0,0 +1,28 @@ +@echo off +set ARGS=/SE /SW /SA +if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( + drivers\dpinst-amd64.exe %ARGS% +) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" ( + drivers\dpinst-amd64.exe %ARGS% +) 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 -- cgit v1.2.3-18-g5258 From ae4c7ecb6d6459ccf473906fb2b86a5f43a7d228 Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Thu, 16 Dec 2021 18:48:04 +0100 Subject: modify post_install.bat according to https://github.com/arduino/ArduinoCore-megaavr/blob/master/post_install.bat --- post_install.bat | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'post_install.bat') diff --git a/post_install.bat b/post_install.bat index 73b9a24..4b80f1c 100644 --- a/post_install.bat +++ b/post_install.bat @@ -1,5 +1,5 @@ @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 -- cgit v1.2.3-18-g5258 From 6bb264b57ca11596f315cda0c776997c877ae68d Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Fri, 17 Dec 2021 11:46:15 +0100 Subject: add install for arduino gemma drivers: they are in another directory --- post_install.bat | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'post_install.bat') diff --git a/post_install.bat b/post_install.bat index 4b80f1c..10db223 100644 --- a/post_install.bat +++ b/post_install.bat @@ -8,4 +8,13 @@ if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( drivers\dpinst-x86.exe %ARGS% ) +REM dpinst /PATH has problems with relative paths, so use absolute path. +if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( + drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS% +) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" ( + drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS% +) ELSE ( + drivers\dpinst-x86.exe /PATH %cd%\drivers\gemma %ARGS% +) + exit /b 0 -- cgit v1.2.3-18-g5258