aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmberto Baldi <u.baldi@arduino.cc>2021-12-17 11:46:15 +0100
committerUmberto Baldi <u.baldi@arduino.cc>2021-12-17 11:46:15 +0100
commit6bb264b57ca11596f315cda0c776997c877ae68d (patch)
treeca6927fa1bfbd529a0c34845c021e7bd5de525e1
parentae4c7ecb6d6459ccf473906fb2b86a5f43a7d228 (diff)
add install for arduino gemma drivers: they are in another directory
-rw-r--r--post_install.bat9
1 files changed, 9 insertions, 0 deletions
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