Files
reactos/base
Whindmar Saksit 4c9a150083 [SETUPLIB] Search for unattend.inf on all drives (#9299)
This allows any ISO (nightly, etc.) to perform unattended installations
without having to manually rebuild the ISO with your modified unattend.inf
file. Instead, you simply need to place your custom unattend.inf file
at the root of any drive in the machine (and with a special value set
in this .inf to enable this feature).

Notes:
- It tries to use `QueryDosDeviceW` if kernel32.dll is loaded (GUI setup),
  so that the drive map matches the existing user logon session. If not
  available, it emulates a simplified version of `QueryDosDeviceW` which
  should be enough when booted directly into phase-1 setup.

- The unattend.inf file lookup algorithm goes as follows:

  Find first the default unattend.inf file on the installation media.
  If it specifies an unattended setup, we have found it.

  Otherwise, the default unattend.inf file does not exist, or does not
  enable an unattended setup. Check all DOS drives, removable first, then
  fixed, for an alternative unattend.inf that enables unattended setup.
  If we find one, use it; otherwise, return the default unattend.inf path.


Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2026-09-24 23:28:38 +02:00
..
…
2026-09-23 20:15:12 -04:00