File: post_install.bat

package info (click to toggle)
arduino-core-avr 1.8.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,216 kB
  • sloc: ansic: 13,104; cpp: 4,874; makefile: 2,344; asm: 94; sh: 68
file content (20 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
set ARGS=/LM /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%
)

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