Better Windows build-in DFU #3338

This commit is contained in:
rusefillc 2021-10-15 21:00:17 -04:00
parent c74f2482f0
commit 6ce282f85c
2 changed files with 14 additions and 10 deletions

View File

@ -19,11 +19,13 @@ echo Let's install ST-Link driver silently
cd ST-LINK_USB_V2_1_Driver
@echo off
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto X64
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto X64
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto ST_X64
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto ST_X64
start "" dpinst_x86.exe /sw
goto END
:X64
goto ST_END
:ST_X64
start "" dpinst_amd64.exe /sw
:END
:ST_END
exit

View File

@ -19,11 +19,13 @@ echo Let's install ST-Link driver silently
cd ST-LINK_USB_V2_1_Driver
@echo off
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto X64
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto X64
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto ST_X64
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto ST_X64
start "" dpinst_x86.exe /sw
goto END
:X64
goto ST_END
:ST_X64
start "" dpinst_amd64.exe /sw
:END
:ST_END
exit