Commit 7eaa1f3d863740c4b57b0ae5208dcffab8df3a6a

Authored by Tim Gover
1 parent 623cd67d

win32: Update windows installer and make it smaller

Reduce the size of the windows installer by removing the
optional components. It will now just contain the MSD
firmware drive, the new mass-storage gadget (for writing
NVMe) and the recovery.

The optional components including secure-boot-example and
the Raspberry Pi Image can be downloaded from Github
without rebuilding this installer.

Add a helper batch file and shortcut for launching
the mass-storage-gadget.
win32/install_script.nsi
@@ -105,23 +105,7 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot @@ -105,23 +105,7 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot
105 SetOutPath "$INSTDIR\mass-storage-gadget" 105 SetOutPath "$INSTDIR\mass-storage-gadget"
106 File /r /x bootcode4.bin ..\mass-storage-gadget\*.* 106 File /r /x bootcode4.bin ..\mass-storage-gadget\*.*
107 File ..\bootcode4.bin 107 File ..\bootcode4.bin
108 -  
109 - SetOutPath "$INSTDIR\rpi-imager-embedded"  
110 - File /r /x bootcode4.bin ..\rpi-imager-embedded\*.*  
111 - File ..\bootcode4.bin  
112 -  
113 - SetOutPath "$INSTDIR\secure-boot-example"  
114 - File /r /x bootcode4.bin ..\secure-boot-example\*.*  
115 - File ..\bootcode4.bin  
116 -  
117 - SetOutPath "$INSTDIR\secure-boot-msd"  
118 - File /r /x bootcode4.bin ..\secure-boot-msd\*.*  
119 - File ..\bootcode4.bin  
120 -  
121 - SetOutPath "$INSTDIR\secure-boot-recovery"  
122 - File /r /x bootcode4.bin ..\secure-boot-recovery\*.*  
123 - File /oname=bootcode4.bin ..\recovery.bin  
124 - 108 +
125 SetOutPath "$INSTDIR\tools" 109 SetOutPath "$INSTDIR\tools"
126 File /r ..\tools\*.* 110 File /r ..\tools\*.*
127 111
@@ -142,9 +126,11 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot @@ -142,9 +126,11 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot
142 File cygusb-1.0.dll 126 File cygusb-1.0.dll
143 File cygwin1.dll 127 File cygwin1.dll
144 File ..\rpiboot.exe 128 File ..\rpiboot.exe
  129 + File rpi-mass-storage-gadget.bat
145 130
146 CreateDirectory "$SMPROGRAMS\Raspberry Pi" 131 CreateDirectory "$SMPROGRAMS\Raspberry Pi"
147 CreateShortcut "$SMPROGRAMS\Raspberry Pi\rpiboot.lnk" "$INSTDIR\rpiboot.exe" 132 CreateShortcut "$SMPROGRAMS\Raspberry Pi\rpiboot.lnk" "$INSTDIR\rpiboot.exe"
  133 + CreateShortcut "$SMPROGRAMS\Raspberry Pi\Raspberry Pi - Mass Storage Gadget.lnk" "$INSTDIR\rpi-mass-storage-gadget.bat"
148 CreateShortcut "$SMPROGRAMS\Raspberry Pi\Uninstall rpiboot.lnk" "$INSTDIR\Uninstall.exe" 134 CreateShortcut "$SMPROGRAMS\Raspberry Pi\Uninstall rpiboot.lnk" "$INSTDIR\Uninstall.exe"
149 135
150 ;Store installation folder 136 ;Store installation folder
@@ -175,10 +161,6 @@ Section "Uninstall" @@ -175,10 +161,6 @@ Section "Uninstall"
175 RmDir /r /REBOOTOK $INSTDIR\mass-storage-gadget 161 RmDir /r /REBOOTOK $INSTDIR\mass-storage-gadget
176 RmDir /r /REBOOTOK $INSTDIR\msd 162 RmDir /r /REBOOTOK $INSTDIR\msd
177 RmDir /r /REBOOTOK $INSTDIR\recovery 163 RmDir /r /REBOOTOK $INSTDIR\recovery
178 - RmDir /r /REBOOTOK $INSTDIR\rpi-imager-embedded  
179 - RmDir /r /REBOOTOK $INSTDIR\secure-boot-example  
180 - RmDir /r /REBOOTOK $INSTDIR\secure-boot-msd  
181 - RmDir /r /REBOOTOK $INSTDIR\secure-boot-recovery  
182 RmDir /r /REBOOTOK $INSTDIR\tools 164 RmDir /r /REBOOTOK $INSTDIR\tools
183 RmDir /r /REBOOTOK $INSTDIR\usb_driver 165 RmDir /r /REBOOTOK $INSTDIR\usb_driver
184 166
win32/rpi-mass-storage-gadget.bat 0 → 100755
  1 +@echo off
  2 +@echo USB mass storage gadget for Compute Module 4
  3 +rpiboot -d mass-storage-gadget
0 \ No newline at end of file 4 \ No newline at end of file
win32/rpiboot_setup.exe
No preview for this file type