[USETUP] Introduce an NT OS installation detector: a functionality that attempts...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 13 May 2017 16:13:19 +0000 (16:13 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 31 May 2018 16:00:44 +0000 (18:00 +0200)
commitb76fa3412122ade2b95f8b05b7110f84db6d65bd
tree49af3c15b72f5793ecfe17a488cca4ab8ad50164
parent491138291348dbc72f0be52cecb1459d0281d332
[USETUP] Introduce an NT OS installation detector: a functionality that attempts to detect installations of NT 5.x operating systems (MS Windows <= 2k3, ReactOS).

The aim is to use this detector to be able to detect and select an existing installation of ReactOS for upgrading.
The user then could either select one, or skip this step and perform a regular ReactOS installation.

What remains to be done, is to parse the NTOS loader configuration files (freeldr.ini in ReactOS' case, or boot.ini in Win2k3's case, etc...)
to retrieve the actual installation paths. So far these are currently hardcoded for testing purposes only.

The detector attempts to distinguish between ReactOS and Windows installations by checking at the company name vendor of the ntoskrnl.exe & ntdll.dll files,
so that only ReactOS installations are allowed to be upgraded.

svn path=/branches/setup_improvements/; revision=74527
svn path=/branches/setup_improvements/; revision=74550
base/setup/usetup/CMakeLists.txt
base/setup/usetup/osdetect.c [new file with mode: 0644]
base/setup/usetup/osdetect.h [new file with mode: 0644]
base/setup/usetup/usetup.h