# Setup Media Template This folder is the base for the bootable ISO structure when using `-UseSetupTemplate`. The maker scripts will: 1. Copy `install.wim` from the source ISO into `sources/` 2. Copy everything from this folder on top (merging into the scratch directory) 3. Mount and modify `install.wim` (bloat removal, registry tweaks, etc.) 4. Mount and modify `sources/boot.wim` (LabConfig bypasses, branding) 5. Run `oscdimg` on the scratch directory to produce the final ISO ## Populate from a Windows ISO Mount a Windows ISO and copy these files/folders here: ``` boot/ efi/ sources/boot.wim bootmgr bootmgr.efi setup.exe autorun.inf etfsboot.com (from sources/ or root) efisys.bin (from efi/microsoft/boot/) ``` Do NOT place `install.wim` or `install.esd` here — those always come from the source ISO. ## Customisation Files in this folder will overwrite the matching file from the source ISO. Typical customisations: - `sources/boot.wim` — replace with a pre-themed WinPE (still gets LabConfig registry tweaks applied by the script) - `sources/background.bmp` — custom setup background (also patched by branding-resources) - `boot/` / `efi/` — custom bootloader files ## Usage ```powershell .\tiny11maker.ps1 -UseSetupTemplate .\tiny10maker.ps1 -UseSetupTemplate -windowsisopath D: .\TinyWindowsMaker.ps1 -UseSetupTemplate -windowsisopath "C:\path\to\windows.iso" ```