Commit 7eaa1f3d863740c4b57b0ae5208dcffab8df3a6a
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.
Showing
3 changed files
with
6 additions
and
21 deletions
win32/install_script.nsi
| ... | ... | @@ -105,23 +105,7 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot |
| 105 | 105 | SetOutPath "$INSTDIR\mass-storage-gadget" |
| 106 | 106 | File /r /x bootcode4.bin ..\mass-storage-gadget\*.* |
| 107 | 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 | 109 | SetOutPath "$INSTDIR\tools" |
| 126 | 110 | File /r ..\tools\*.* |
| 127 | 111 | |
| ... | ... | @@ -142,9 +126,11 @@ Section "Raspberry Pi USB Boot" Sec_rpiboot |
| 142 | 126 | File cygusb-1.0.dll |
| 143 | 127 | File cygwin1.dll |
| 144 | 128 | File ..\rpiboot.exe |
| 129 | + File rpi-mass-storage-gadget.bat | |
| 145 | 130 | |
| 146 | 131 | CreateDirectory "$SMPROGRAMS\Raspberry Pi" |
| 147 | 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 | 134 | CreateShortcut "$SMPROGRAMS\Raspberry Pi\Uninstall rpiboot.lnk" "$INSTDIR\Uninstall.exe" |
| 149 | 135 | |
| 150 | 136 | ;Store installation folder |
| ... | ... | @@ -175,10 +161,6 @@ Section "Uninstall" |
| 175 | 161 | RmDir /r /REBOOTOK $INSTDIR\mass-storage-gadget |
| 176 | 162 | RmDir /r /REBOOTOK $INSTDIR\msd |
| 177 | 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 | 164 | RmDir /r /REBOOTOK $INSTDIR\tools |
| 183 | 165 | RmDir /r /REBOOTOK $INSTDIR\usb_driver |
| 184 | 166 | ... | ... |
win32/rpi-mass-storage-gadget.bat
0 → 100755
win32/rpiboot_setup.exe
No preview for this file type