Skip to content

Commit

Permalink
Minor thingies...
Browse files Browse the repository at this point in the history
  • Loading branch information
HBelusca committed Oct 14, 2023
1 parent 5c2ec83 commit 19b5e9c
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 12 deletions.
5 changes: 3 additions & 2 deletions base/setup/lib/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* PROJECT: ReactOS Setup Library
* FILE: base/setup/lib/install.c
* PURPOSE: Installation functions
* PROGRAMMERS: Hervé Poussineau ([email protected])
* PROGRAMMERS: Eric Kohl
* Hervé Poussineau ([email protected])
* Hermes Belusca-Maito ([email protected])
*/

Expand Down Expand Up @@ -539,7 +540,7 @@ PrepareCopyInfFile(

/* Add specific files depending of computer type */
if (!ProcessComputerFiles(InfFile, pSetupData->ComputerList, &AdditionalSectionName))
return FALSE;
return FALSE; // return ERROR_LOAD_COMPUTER;

if (AdditionalSectionName &&
!AddSectionToCopyQueue(pSetupData, InfFile,
Expand Down
2 changes: 1 addition & 1 deletion base/setup/lib/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* PROJECT: ReactOS Setup Library
* FILE: base/setup/lib/registry.c
* PURPOSE: Registry creation functions
* PROGRAMMERS: ...
* PROGRAMMERS: Eric Kohl
* Hermes Belusca-Maito ([email protected])
*/

Expand Down
2 changes: 1 addition & 1 deletion base/setup/lib/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* PROJECT: ReactOS Setup Library
* FILE: base/setup/lib/registry.h
* PURPOSE: Registry creation functions
* PROGRAMMERS: ...
* PROGRAMMERS: Eric Kohl
* Hermes Belusca-Maito ([email protected])
*/

Expand Down
3 changes: 2 additions & 1 deletion base/setup/lib/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* PROJECT: ReactOS text-mode setup
* FILE: base/setup/usetup/settings.c
* PURPOSE: Device settings support functions
* PROGRAMMERS: Colin Finck
* PROGRAMMERS: Eric Kohl
* Colin Finck
*/

/* INCLUDES *****************************************************************/
Expand Down
3 changes: 2 additions & 1 deletion base/setup/lib/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* PROJECT: ReactOS text-mode setup
* FILE: base/setup/usetup/settings.h
* PURPOSE: Device settings support functions
* PROGRAMMERS: Colin Finck
* PROGRAMMERS: Eric Kohl
* Colin Finck
*/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion base/setup/lib/spapisup/fileqsup.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* PROJECT: ReactOS Setup Library
* FILE: base/setup/lib/fileqsup.h
* PURPOSE: Interfacing with Setup* API File Queue support functions
* PROGRAMMERS: Casper S. Hornstrup ([email protected])
* PROGRAMMERS: Eric Kohl
* Casper S. Hornstrup ([email protected])
* Hermes Belusca-Maito ([email protected])
*/

Expand Down
3 changes: 2 additions & 1 deletion base/setup/lib/utils/filesup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* PROJECT: ReactOS Setup Library
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
* PURPOSE: File support functions.
* COPYRIGHT: Casper S. Hornstrup ([email protected])
* COPYRIGHT: Eric Kohl
* Casper S. Hornstrup ([email protected])
* Copyright 2017-2018 Hermes Belusca-Maito
*/

Expand Down
2 changes: 2 additions & 0 deletions base/setup/lib/utils/filesup.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
* PURPOSE: File support functions.
* COPYRIGHT: Casper S. Hornstrup ([email protected])
* COPYRIGHT: Eric Kohl
* Casper S. Hornstrup ([email protected])
* Copyright 2017-2018 Hermes Belusca-Maito
*/

Expand Down
53 changes: 53 additions & 0 deletions base/setup/reactos/reactos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,39 @@ FileCopyCallback(PVOID Context,
return FILEOP_DOIT;
}

#if 0
static VOID
__cdecl
RegistryStatus(IN REGISTRY_STATUS RegStatus, ...)
{
/* WARNING: Please keep this lookup table in sync with the resources! */
static const UINT StringIDs[] =
{
STRING_DONE, /* Success */
STRING_REGHIVEUPDATE, /* RegHiveUpdate */
STRING_IMPORTFILE, /* ImportRegHive */
STRING_DISPLAYSETTINGSUPDATE, /* DisplaySettingsUpdate */
STRING_LOCALESETTINGSUPDATE, /* LocaleSettingsUpdate */
STRING_ADDKBLAYOUTS, /* KeybLayouts */
STRING_KEYBOARDSETTINGSUPDATE, /* KeybSettingsUpdate */
STRING_CODEPAGEINFOUPDATE, /* CodePageInfoUpdate */
};

va_list args;

if (RegStatus < ARRAYSIZE(StringIDs))
{
va_start(args, RegStatus);
CONSOLE_SetStatusTextV(MUIGetString(StringIDs[RegStatus]), args);
va_end(args);
}
else
{
CONSOLE_SetStatusText("Unknown status %d", RegStatus);
}
}
#endif

static DWORD
WINAPI
PrepareAndDoCopyThread(
Expand Down Expand Up @@ -1191,6 +1224,26 @@ PrepareAndDoCopyThread(
/* Create the $winnt$.inf file */
InstallSetupInfFile(&pSetupData->USetupData);


/*
* Create or update the registry hives
*/

/* Set status text */
SetDlgItemTextW(hwndDlg, IDC_ACTIVITY,
pSetupData->RepairUpdateFlag
? L"Updating the registry..."
: L"Creating the registry...");
SetDlgItemTextW(hwndDlg, IDC_ITEM, L"");

ErrorNumber = UpdateRegistry(&pSetupData->USetupData,
pSetupData->RepairUpdateFlag,
pSetupData->PartitionList,
L'D', // DestinationDriveLetter, // FIXME!!
pSetupData->SelectedLanguageId,
NULL /*RegistryStatus*/);


/* We are done! Switch to the Terminate page */
PropSheet_SetCurSelByID(GetParent(hwndDlg), IDD_RESTARTPAGE);
return 0;
Expand Down
3 changes: 2 additions & 1 deletion base/setup/usetup/spapisup/fileqsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* PROJECT: ReactOS text-mode setup
* FILE: base/setup/lib/fileqsup.c
* PURPOSE: Interfacing with Setup* API File Queue support functions
* PROGRAMMERS: Casper S. Hornstrup ([email protected])
* PROGRAMMERS: Eric Kohl
* Casper S. Hornstrup ([email protected])
* Hermes Belusca-Maito ([email protected])
*/

Expand Down
3 changes: 2 additions & 1 deletion base/setup/usetup/usetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* PROJECT: ReactOS text-mode setup
* FILE: base/setup/usetup/usetup.c
* PURPOSE: Text-mode setup
* PROGRAMMERS: Casper S. Hornstrup ([email protected])
* PROGRAMMERS: Eric Kohl
* Casper S. Hornstrup ([email protected])
* Hervé Poussineau ([email protected])
*/

Expand Down
3 changes: 1 addition & 2 deletions boot/bootdata/txtsetup.sif
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Signature = "$Windows NT$"
_1 = %cdname%,%cdtagfile%,,""

[SourceDisksNames.x86]
;1 = %cdname%,%cdtagfilei%,,\i386
1 = %cdname%,%cdtagfilei%,,\reactos
1 = %cdname%,%cdtagfilei%,,\i386

[SourceDisksNames.amd64]
;1 = %cdname%,%cdtagfilea%,,\amd64
Expand Down

0 comments on commit 19b5e9c

Please sign in to comment.