From 7eaa1f3d863740c4b57b0ae5208dcffab8df3a6a Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Wed, 2 Nov 2022 11:39:50 +0000 Subject: [PATCH] win32: Update windows installer and make it smaller --- win32/install_script.nsi | 24 +++--------------------- win32/rpi-mass-storage-gadget.bat | 3 +++ win32/rpiboot_setup.exe | Bin 43185665 -> 0 bytes 3 files changed, 6 insertions(+), 21 deletions(-) create mode 100755 win32/rpi-mass-storage-gadget.bat diff --git a/win32/install_script.nsi b/win32/install_script.nsi index c0c7685..af14835 100644 --- a/win32/install_script.nsi +++ b/win32/install_script.nsi @@ -105,23 +105,7 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot SetOutPath "$INSTDIR\mass-storage-gadget" File /r /x bootcode4.bin ..\mass-storage-gadget\*.* File ..\bootcode4.bin - - SetOutPath "$INSTDIR\rpi-imager-embedded" - File /r /x bootcode4.bin ..\rpi-imager-embedded\*.* - File ..\bootcode4.bin - - SetOutPath "$INSTDIR\secure-boot-example" - File /r /x bootcode4.bin ..\secure-boot-example\*.* - File ..\bootcode4.bin - - SetOutPath "$INSTDIR\secure-boot-msd" - File /r /x bootcode4.bin ..\secure-boot-msd\*.* - File ..\bootcode4.bin - - SetOutPath "$INSTDIR\secure-boot-recovery" - File /r /x bootcode4.bin ..\secure-boot-recovery\*.* - File /oname=bootcode4.bin ..\recovery.bin - + SetOutPath "$INSTDIR\tools" File /r ..\tools\*.* @@ -142,9 +126,11 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot File cygusb-1.0.dll File cygwin1.dll File ..\rpiboot.exe + File rpi-mass-storage-gadget.bat CreateDirectory "$SMPROGRAMS\Raspberry Pi" CreateShortcut "$SMPROGRAMS\Raspberry Pi\rpiboot.lnk" "$INSTDIR\rpiboot.exe" + CreateShortcut "$SMPROGRAMS\Raspberry Pi\Raspberry Pi - Mass Storage Gadget.lnk" "$INSTDIR\rpi-mass-storage-gadget.bat" CreateShortcut "$SMPROGRAMS\Raspberry Pi\Uninstall rpiboot.lnk" "$INSTDIR\Uninstall.exe" ;Store installation folder @@ -175,10 +161,6 @@ Section "Uninstall" RmDir /r /REBOOTOK $INSTDIR\mass-storage-gadget RmDir /r /REBOOTOK $INSTDIR\msd RmDir /r /REBOOTOK $INSTDIR\recovery - RmDir /r /REBOOTOK $INSTDIR\rpi-imager-embedded - RmDir /r /REBOOTOK $INSTDIR\secure-boot-example - RmDir /r /REBOOTOK $INSTDIR\secure-boot-msd - RmDir /r /REBOOTOK $INSTDIR\secure-boot-recovery RmDir /r /REBOOTOK $INSTDIR\tools RmDir /r /REBOOTOK $INSTDIR\usb_driver diff --git a/win32/rpi-mass-storage-gadget.bat b/win32/rpi-mass-storage-gadget.bat new file mode 100755 index 0000000..394c14f --- /dev/null +++ b/win32/rpi-mass-storage-gadget.bat @@ -0,0 +1,3 @@ +@echo off +@echo USB mass storage gadget for Compute Module 4 +rpiboot -d mass-storage-gadget \ No newline at end of file diff --git a/win32/rpiboot_setup.exe b/win32/rpiboot_setup.exe index bab7987..2728bfe 100755 Binary files a/win32/rpiboot_setup.exe and b/win32/rpiboot_setup.exe differ -- libgit2 0.21.4