diff options
author | Umberto Baldi <u.baldi@arduino.cc> | 2021-12-17 11:46:15 +0100 |
---|---|---|
committer | Umberto Baldi <u.baldi@arduino.cc> | 2021-12-17 11:46:15 +0100 |
commit | 6bb264b57ca11596f315cda0c776997c877ae68d (patch) | |
tree | ca6927fa1bfbd529a0c34845c021e7bd5de525e1 /post_install.bat | |
parent | ae4c7ecb6d6459ccf473906fb2b86a5f43a7d228 (diff) |
add install for arduino gemma drivers: they are in another directory
Diffstat (limited to 'post_install.bat')
-rw-r--r-- | post_install.bat | 9 |
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
|