Skip to content

Instantly share code, notes, and snippets.

@nkymut
Last active August 5, 2020 05:08
Show Gist options
  • Save nkymut/6961cfd3ec634ec28363ee11f1c39d71 to your computer and use it in GitHub Desktop.
Save nkymut/6961cfd3ec634ec28363ee11f1c39d71 to your computer and use it in GitHub Desktop.
Silent install script for Arduino Driver and Arduino IDE
cd /D "%~dp0"
@echo off
setlocal enabledelayedexpansion
rem Silent install script for Arduino Driver and Arduino IDE
rem https://forum.arduino.cc/index.php?topic=582294.0
set ARDUINOINSTALLER=arduino-1.8.13-windows.exe
set DEST_DIR="C:\Program Files (x86)\Arduino"
certutil -addstore "TrustedPublisher" "%~dp0AdafruitCircuitPlayground.cer"
certutil -addstore "TrustedPublisher" "%~dp0Arduino-org.cer"
certutil -addstore "TrustedPublisher" "%~dp0Arduino.cer"
certutil -addstore "TrustedPublisher" "%~dp0Arduino_gemma.cer"
certutil -addstore "TrustedPublisher" "%~dp0Genuino.cer"
certutil -addstore "TrustedPublisher" "%~dp0Linino-boards_amd64.cer"
!ARDUINOINSTALLER! /S /NCRC
cd !DEST_DIR!
"drivers\dpinst-amd64.exe" /q /se
if exist !DEST_DIR! (
call echo OK ARDUINO
) else (
call echo ERROR ARDUINO
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment