# ages2001/universal-windows-installer architecture

> Architecture diagram of the GitHub repository ages2001/universal-windows-installer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ages2001/universal-windows-installer
- Repository: https://github.com/ages2001/universal-windows-installer

## Overview

Universal Windows Installer is a bootable utility for installing Windows NT-family systems across legacy and modern hardware. The documented workflow starts from boot media, offers boot-mode and installation choices, then installs a selected OS and configures its bootloader. It also provides disk conversion and repair tools, and includes OS configuration, patched drivers, and filesystem utilities. No source excerpts were provided, so relationships below rely on README statements; paths identify relevant files or directories from the tree, not inspected implementations.

Main entry points: [`scripts/startins.sh`](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh) (Installer setup), [`boot/isolinux/isolinux.cfg`](https://github.com/ages2001/universal-windows-installer/blob/main/boot/isolinux/isolinux.cfg) (Boot media), [`scripts/mbrgpt.sh`](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/mbrgpt.sh) (Disk conversion), [`scripts/chslba.sh`](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/chslba.sh) (CHS/LBA conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_boot["Boot and selection"]
  node_bootmedia["Boot media<br/>[isolinux.cfg]"]
  node_bootchoice["Mode selection<br/>[isolinux.cfg]"]
  node_bootmgr["BOOTMGR"]
  node_ntldr["NTLDR"]
  node_freeldr["FreeLdr<br/>[freeldr.sys]"]
end

subgraph group_install["OS deployment"]
  node_setup["Installer setup<br/>[startins.sh]"]
  node_regular["Regular install<br/>[startins.sh]"]
  node_custom["Custom install<br/>[startins.sh]"]
  node_osarchives["OS archives"]
end

subgraph group_disk["Disk utilities"]
  node_diskconvert["Disk conversion<br/>[mbrgpt.sh]"]
  node_addressconvert["CHS/LBA conversion<br/>[chslba.sh]"]
  node_mbrtools["MBR inspect/repair<br/>[fixmbr.sh]"]
  node_partitiontools["Partition tools<br/>[partedit.sh]"]
end

subgraph group_support["Installation support"]
  node_drivers["Patched drivers"]
  node_packages["Filesystem utilities"]
  node_osconfig["OS configuration"]
end

node_operator(("Installer user"))
node_targetdisk[("Target disk")]

node_operator -->|"boots from"| node_bootmedia
node_bootmedia -->|"offers modes"| node_bootchoice
node_bootchoice -->|"starts setup"| node_setup
node_setup -->|"supports through 8.0"| node_regular
node_setup -->|"supports newer Windows"| node_custom
node_regular -->|"uses OS archives"| node_osarchives
node_custom -->|"uses OS archives"| node_osarchives
node_setup -->|"deploys to"| node_targetdisk
node_setup -->|"selects for Vista/7"| node_bootmgr
node_setup -->|"selects for 2000/XP"| node_ntldr
node_setup -->|"selects for other OS"| node_freeldr
node_operator -->|"converts scheme"| node_diskconvert
node_diskconvert -->|"changes partitioning"| node_targetdisk
node_operator -->|"converts addressing"| node_addressconvert
node_addressconvert -->|"changes addressing"| node_targetdisk
node_operator -->|"inspects or repairs"| node_mbrtools
node_mbrtools -->|"reads or repairs"| node_targetdisk
node_operator -->|"manages partitions"| node_partitiontools
node_setup -->|"supports patched hardware"| node_drivers
node_setup -->|"supports filesystems"| node_packages
node_setup -->|"supports OS variants"| node_osconfig

click node_bootmedia "https://github.com/ages2001/universal-windows-installer/blob/main/boot/isolinux/isolinux.cfg"
click node_bootchoice "https://github.com/ages2001/universal-windows-installer/blob/main/boot/isolinux/isolinux.cfg"
click node_setup "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh"
click node_regular "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh"
click node_custom "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh"
click node_osarchives "https://github.com/ages2001/universal-windows-installer/tree/main/osfiles"
click node_bootmgr "https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/bootmgr/BOOTMGR"
click node_ntldr "https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/ntldr/2KLDR"
click node_freeldr "https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/freeldr/freeldr.sys"
click node_diskconvert "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/mbrgpt.sh"
click node_addressconvert "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/chslba.sh"
click node_mbrtools "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/fixmbr.sh"
click node_partitiontools "https://github.com/ages2001/universal-windows-installer/blob/main/scripts/partedit.sh"
click node_drivers "https://github.com/ages2001/universal-windows-installer/tree/main/drivers/patched"
click node_packages "https://github.com/ages2001/universal-windows-installer/tree/main/packages"
click node_osconfig "https://github.com/ages2001/universal-windows-installer/tree/main/configs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootmedia,node_bootchoice,node_bootmgr,node_ntldr,node_freeldr,node_operator toneBlue
class node_setup,node_regular,node_custom,node_osarchives,node_targetdisk toneAmber
class node_diskconvert,node_addressconvert,node_mbrtools,node_partitiontools toneMint
class node_drivers,node_packages,node_osconfig toneRose
```

## Components

### Boot and selection

- [Boot media](https://github.com/ages2001/universal-windows-installer/blob/main/boot/isolinux/isolinux.cfg): `boot/isolinux/isolinux.cfg`
- [Mode selection](https://github.com/ages2001/universal-windows-installer/blob/main/boot/isolinux/isolinux.cfg): `boot/isolinux/isolinux.cfg`
- [BOOTMGR](https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/bootmgr/BOOTMGR): `bootldr/bootmgr/BOOTMGR`
- [NTLDR](https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/ntldr/2KLDR): `bootldr/ntldr/2KLDR`
- [FreeLdr](https://github.com/ages2001/universal-windows-installer/blob/main/bootldr/freeldr/freeldr.sys): `bootldr/freeldr/freeldr.sys`

### OS deployment

- [Installer setup](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh): `scripts/startins.sh`
- [Regular install](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh): `scripts/startins.sh`
- [Custom install](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/startins.sh): `scripts/startins.sh`
- [OS archives](https://github.com/ages2001/universal-windows-installer/tree/main/osfiles): `osfiles`

### Disk utilities

- [Disk conversion](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/mbrgpt.sh): `scripts/mbrgpt.sh`
- [CHS/LBA conversion](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/chslba.sh): `scripts/chslba.sh`
- [MBR inspect/repair](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/fixmbr.sh): `scripts/fixmbr.sh`
- [Partition tools](https://github.com/ages2001/universal-windows-installer/blob/main/scripts/partedit.sh): `scripts/partedit.sh`

### Installation support

- [Patched drivers](https://github.com/ages2001/universal-windows-installer/tree/main/drivers/patched): `drivers/patched`
- [Filesystem utilities](https://github.com/ages2001/universal-windows-installer/tree/main/packages): `packages`
- [OS configuration](https://github.com/ages2001/universal-windows-installer/tree/main/configs): `configs`

### Other components

- **Installer user**
- **Target disk**

## Connections

- Installer user → Boot media: boots from (evidence: `README.md`)
- Boot media → Mode selection: offers modes (evidence: `README.md`)
- Mode selection → Installer setup: starts setup (evidence: `README.md`)
- Installer setup → Regular install: supports through 8.0 (evidence: `README.md`)
- Installer setup → Custom install: supports newer Windows (evidence: `README.md`)
- Regular install → OS archives: uses OS archives (evidence: `README.md`)
- Custom install → OS archives: uses OS archives (evidence: `README.md`)
- Installer setup → Target disk: deploys to (evidence: `README.md`)
- Installer setup → BOOTMGR: selects for Vista/7 (evidence: `README.md`)
- Installer setup → NTLDR: selects for 2000/XP (evidence: `README.md`)
- Installer setup → FreeLdr: selects for other OS (evidence: `README.md`)
- Installer user → Disk conversion: converts scheme (evidence: `README.md`)
- Disk conversion → Target disk: changes partitioning (evidence: `README.md`)
- Installer user → CHS/LBA conversion: converts addressing (evidence: `README.md`)
- CHS/LBA conversion → Target disk: changes addressing (evidence: `README.md`)
- Installer user → MBR inspect/repair: inspects or repairs (evidence: `README.md`)
- MBR inspect/repair → Target disk: reads or repairs (evidence: `README.md`)
- Installer user → Partition tools: manages partitions (evidence: `README.md`)
- Installer setup → Patched drivers: supports patched hardware (evidence: `README.md`)
- Installer setup → Filesystem utilities: supports filesystems (evidence: `README.md`)
- Installer setup → OS configuration: supports OS variants (evidence: `README.md`)
