diff --git a/misc/install_st/.gitignore b/misc/install_st/.gitignore new file mode 100644 index 0000000000..47828897f1 --- /dev/null +++ b/misc/install_st/.gitignore @@ -0,0 +1,3 @@ +silent_st_drivers.exe +Virtual comport driver +ST-LINK_USB_V2_1_Driver \ No newline at end of file diff --git a/misc/install_st/make_package.bat b/misc/install_st/make_package.bat new file mode 100644 index 0000000000..3513d5c8d6 --- /dev/null +++ b/misc/install_st/make_package.bat @@ -0,0 +1,10 @@ +rem Depends on ST Link and ST VCP being installed manually + +rm -rf silent_st_drivers/ST-LINK_USB_V2_1_Driver +rm -rf silent_st_drivers/"Virtual comport driver" + +cp -r "C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK_USB_V2_1_Driver" silent_st_drivers +cp -r "C:\Program Files (x86)\STMicroelectronics\Software\Virtual comport driver" silent_st_drivers + +rem compress 'silent_st_drivers' folder +"C:\Program Files\7-Zip\7z.exe" a silent_st_drivers.exe -mmt -mx5 -sfx silent_st_drivers \ No newline at end of file diff --git a/misc/install_st/silent_st_drivers/silent_install_w7.bat b/misc/install_st/silent_st_drivers/silent_install_w7.bat new file mode 100644 index 0000000000..83fa2fa2d0 --- /dev/null +++ b/misc/install_st/silent_st_drivers/silent_install_w7.bat @@ -0,0 +1,28 @@ +@echo off +cd "Virtual comport driver" +cd Win7 + +echo Let's install VCP driver silently +if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto VCP_X64 +if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto VCP_X64 +start "" dpinst_x86.exe /s +goto VCP_END +:VCP_X64 +start "" dpinst_amd64.exe /s +:VCP_END + +cd ../.. +echo Done installing VCP silently +pwd + +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 +start "" dpinst_x86.exe /sw +goto END +:X64 +start "" dpinst_amd64.exe /sw +:END \ No newline at end of file