mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
[USETUP] Massage the USETUP interface code.
- The "intro" page is renamed into the "Welcome" page, because its corresponding resource indeed is the welcome screen; - Because the "setup start" page can only be displayed once, move it out of the while-loop, and use its result as the initial value of the 'Page' variable. - Remove unneeded _PAGE_NUMBER_DEFINED guards; - Add a DPRINT in the RepairUpdateFlag case of RegistryPage() (because we don't implement yet a correct upgrading or repairing of the registry). - In InstallIntroPage(), display the page itself only if needed (i.e. after all the validation checks & repair/update or unattended checks are done). Similar modifications are done also in DeviceSettingsPage(), SelectPartitionPage() - Turn both CheckUnattendedSetup() and UpdateKBLayout() into static functions. - Fix the code of ScsiControllerPage() so that it can be compiled if needed, and add a dummy OemDriverPage(). svn path=/branches/setup_improvements/; revision=74575
This commit is contained in:
parent
7886ad46db
commit
38e20b638f
27 changed files with 113 additions and 86 deletions
|
@ -1629,7 +1629,7 @@ MUI_PAGE bgBGPages[] =
|
||||||
bgBGLanguagePageEntries
|
bgBGLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
bgBGWelcomePageEntries
|
bgBGWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1616,7 +1616,7 @@ MUI_PAGE bnBDPages[] =
|
||||||
bnBDLanguagePageEntries
|
bnBDLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
bnBDWelcomePageEntries
|
bnBDWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1624,7 +1624,7 @@ MUI_PAGE csCZPages[] =
|
||||||
csCZLanguagePageEntries
|
csCZLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
csCZWelcomePageEntries
|
csCZWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1630,7 +1630,7 @@ MUI_PAGE daDKPages[] =
|
||||||
daDKLanguagePageEntries
|
daDKLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
daDKWelcomePageEntries
|
daDKWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1620,7 +1620,7 @@ MUI_PAGE deDEPages[] =
|
||||||
deDELanguagePageEntries
|
deDELanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
deDEWelcomePageEntries
|
deDEWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1633,7 +1633,7 @@ MUI_PAGE elGRPages[] =
|
||||||
elGRLanguagePageEntries
|
elGRLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
elGRWelcomePageEntries
|
elGRWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1616,7 +1616,7 @@ MUI_PAGE enUSPages[] =
|
||||||
enUSLanguagePageEntries
|
enUSLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
enUSWelcomePageEntries
|
enUSWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1620,7 +1620,7 @@ MUI_PAGE esESPages[] =
|
||||||
esESLanguagePageEntries
|
esESLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
esESWelcomePageEntries
|
esESWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1614,7 +1614,7 @@ MUI_PAGE etEEPages[] =
|
||||||
etEELanguagePageEntries
|
etEELanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
etEEWelcomePageEntries
|
etEEWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1635,7 +1635,7 @@ MUI_PAGE frFRPages[] =
|
||||||
frFRLanguagePageEntries
|
frFRLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
frFRWelcomePageEntries
|
frFRWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1617,7 +1617,7 @@ MUI_PAGE heILPages[] =
|
||||||
heILLanguagePageEntries
|
heILLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
heILWelcomePageEntries
|
heILWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1623,7 +1623,7 @@ MUI_PAGE itITPages[] =
|
||||||
itITLanguagePageEntries
|
itITLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
itITWelcomePageEntries
|
itITWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1618,7 +1618,7 @@ MUI_PAGE jaJPPages[] =
|
||||||
jaJPLanguagePageEntries
|
jaJPLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
jaJPWelcomePageEntries
|
jaJPWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1626,7 +1626,7 @@ MUI_PAGE ltLTPages[] =
|
||||||
ltLTLanguagePageEntries
|
ltLTLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
ltLTWelcomePageEntries
|
ltLTWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ MUI_PAGE msMYPages[] =
|
||||||
msMYLanguagePageEntries
|
msMYLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
msMYWelcomePageEntries
|
msMYWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1644,7 +1644,7 @@ MUI_PAGE nlNLPages[] =
|
||||||
nlNLLanguagePageEntries
|
nlNLLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
nlNLWelcomePageEntries
|
nlNLWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1627,7 +1627,7 @@ MUI_PAGE plPLPages[] =
|
||||||
plPLLanguagePageEntries
|
plPLLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
plPLWelcomePageEntries
|
plPLWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1648,7 +1648,7 @@ MUI_PAGE ptBRPages[] =
|
||||||
ptBRLanguagePageEntries
|
ptBRLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
ptBRWelcomePageEntries
|
ptBRWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1670,7 +1670,7 @@ MUI_PAGE roROPages[] =
|
||||||
roROLanguagePageEntries
|
roROLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
roROWelcomePageEntries
|
roROWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1617,7 +1617,7 @@ MUI_PAGE ruRUPages[] =
|
||||||
ruRULanguagePageEntries
|
ruRULanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
ruRUWelcomePageEntries
|
ruRUWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ MUI_PAGE skSKPages[] =
|
||||||
skSKLanguagePageEntries
|
skSKLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
skSKWelcomePageEntries
|
skSKWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1621,7 +1621,7 @@ MUI_PAGE sqALPages[] =
|
||||||
sqALLanguagePageEntries
|
sqALLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
sqALWelcomePageEntries
|
sqALWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1624,7 +1624,7 @@ MUI_PAGE svSEPages[] =
|
||||||
svSELanguagePageEntries
|
svSELanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
svSEWelcomePageEntries
|
svSEWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1597,7 +1597,7 @@ MUI_PAGE trTRPages[] =
|
||||||
trTRLanguagePageEntries
|
trTRLanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
trTRWelcomePageEntries
|
trTRWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1624,7 +1624,7 @@ MUI_PAGE ukUAPages[] =
|
||||||
ukUALanguagePageEntries
|
ukUALanguagePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
START_PAGE,
|
WELCOME_PAGE,
|
||||||
ukUAWelcomePageEntries
|
ukUAWelcomePageEntries
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -420,7 +420,7 @@ ConfirmQuit(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
static VOID
|
||||||
CheckUnattendedSetup(VOID)
|
CheckUnattendedSetup(VOID)
|
||||||
{
|
{
|
||||||
WCHAR UnattendInfPath[MAX_PATH];
|
WCHAR UnattendInfPath[MAX_PATH];
|
||||||
|
@ -593,7 +593,7 @@ CheckUnattendedSetup(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
static VOID
|
||||||
UpdateKBLayout(VOID)
|
UpdateKBLayout(VOID)
|
||||||
{
|
{
|
||||||
PGENERIC_LIST_ENTRY ListEntry;
|
PGENERIC_LIST_ENTRY ListEntry;
|
||||||
|
@ -633,7 +633,7 @@ UpdateKBLayout(VOID)
|
||||||
/*
|
/*
|
||||||
* Displays the LanguagePage.
|
* Displays the LanguagePage.
|
||||||
*
|
*
|
||||||
* Next pages: IntroPage, QuitPage
|
* Next pages: WelcomePage, QuitPage
|
||||||
*
|
*
|
||||||
* SIDEEFFECTS
|
* SIDEEFFECTS
|
||||||
* Init SelectedLanguageId
|
* Init SelectedLanguageId
|
||||||
|
@ -656,7 +656,7 @@ LanguagePage(PINPUT_RECORD Ir)
|
||||||
if (LanguageList == NULL)
|
if (LanguageList == NULL)
|
||||||
{
|
{
|
||||||
PopupError("Setup failed to initialize available translations", NULL, NULL, POPUP_WAIT_NONE);
|
PopupError("Setup failed to initialize available translations", NULL, NULL, POPUP_WAIT_NONE);
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -670,7 +670,7 @@ LanguagePage(PINPUT_RECORD Ir)
|
||||||
if (GenericListHasSingleEntry(LanguageList))
|
if (GenericListHasSingleEntry(LanguageList))
|
||||||
{
|
{
|
||||||
LanguageId = (LANGID)(wcstol(SelectedLanguageId, NULL, 16) & 0xFFFF);
|
LanguageId = (LANGID)(wcstol(SelectedLanguageId, NULL, 16) & 0xFFFF);
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
InitGenericListUi(&ListUi, LanguageList);
|
InitGenericListUi(&ListUi, LanguageList);
|
||||||
|
@ -734,7 +734,7 @@ LanguagePage(PINPUT_RECORD Ir)
|
||||||
/* Load the font */
|
/* Load the font */
|
||||||
SetConsoleCodePage();
|
SetConsoleCodePage();
|
||||||
|
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
else if ((Ir->Event.KeyEvent.uChar.AsciiChar > 0x60) && (Ir->Event.KeyEvent.uChar.AsciiChar < 0x7b))
|
else if ((Ir->Event.KeyEvent.uChar.AsciiChar > 0x60) && (Ir->Event.KeyEvent.uChar.AsciiChar < 0x7b))
|
||||||
{
|
{
|
||||||
|
@ -765,7 +765,7 @@ LanguagePage(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -930,7 +930,7 @@ SetupStartPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Displays the IntroPage.
|
* Displays the WelcomePage.
|
||||||
*
|
*
|
||||||
* Next pages:
|
* Next pages:
|
||||||
* InstallIntroPage (default)
|
* InstallIntroPage (default)
|
||||||
|
@ -942,9 +942,9 @@ SetupStartPage(PINPUT_RECORD Ir)
|
||||||
* Number of the next page.
|
* Number of the next page.
|
||||||
*/
|
*/
|
||||||
static PAGE_NUMBER
|
static PAGE_NUMBER
|
||||||
IntroPage(PINPUT_RECORD Ir)
|
WelcomePage(PINPUT_RECORD Ir)
|
||||||
{
|
{
|
||||||
MUIDisplayPage(START_PAGE);
|
MUIDisplayPage(WELCOME_PAGE);
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
|
@ -972,7 +972,7 @@ IntroPage(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -980,7 +980,7 @@ IntroPage(PINPUT_RECORD Ir)
|
||||||
* Displays the License page.
|
* Displays the License page.
|
||||||
*
|
*
|
||||||
* Next page:
|
* Next page:
|
||||||
* IntroPage (default)
|
* WelcomePage (default)
|
||||||
*
|
*
|
||||||
* RETURNS
|
* RETURNS
|
||||||
* Number of the next page.
|
* Number of the next page.
|
||||||
|
@ -996,7 +996,7 @@ LicensePage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
|
if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
|
||||||
{
|
{
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1041,7 +1041,7 @@ RepairIntroPage(PINPUT_RECORD Ir)
|
||||||
else if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
else if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
||||||
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)) /* ESC */
|
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)) /* ESC */
|
||||||
{
|
{
|
||||||
return INTRO_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1063,8 +1063,6 @@ RepairIntroPage(PINPUT_RECORD Ir)
|
||||||
static PAGE_NUMBER
|
static PAGE_NUMBER
|
||||||
InstallIntroPage(PINPUT_RECORD Ir)
|
InstallIntroPage(PINPUT_RECORD Ir)
|
||||||
{
|
{
|
||||||
MUIDisplayPage(INSTALL_INTRO_PAGE);
|
|
||||||
|
|
||||||
if (RepairUpdateFlag)
|
if (RepairUpdateFlag)
|
||||||
{
|
{
|
||||||
//return SELECT_PARTITION_PAGE;
|
//return SELECT_PARTITION_PAGE;
|
||||||
|
@ -1072,9 +1070,9 @@ InstallIntroPage(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsUnattendedSetup)
|
if (IsUnattendedSetup)
|
||||||
{
|
|
||||||
return SELECT_PARTITION_PAGE;
|
return SELECT_PARTITION_PAGE;
|
||||||
}
|
|
||||||
|
MUIDisplayPage(INSTALL_INTRO_PAGE);
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
|
@ -1103,19 +1101,20 @@ InstallIntroPage(PINPUT_RECORD Ir)
|
||||||
static PAGE_NUMBER
|
static PAGE_NUMBER
|
||||||
ScsiControllerPage(PINPUT_RECORD Ir)
|
ScsiControllerPage(PINPUT_RECORD Ir)
|
||||||
{
|
{
|
||||||
SetTextXY(6, 8, "Setup detected the following mass storage devices:");
|
// MUIDisplayPage(SCSI_CONTROLLER_PAGE);
|
||||||
|
|
||||||
|
CONSOLE_SetTextXY(6, 8, "Setup detected the following mass storage devices:");
|
||||||
|
|
||||||
/* FIXME: print loaded mass storage driver descriptions */
|
/* FIXME: print loaded mass storage driver descriptions */
|
||||||
#if 0
|
#if 0
|
||||||
SetTextXY(8, 10, "TEST device");
|
CONSOLE_SetTextXY(8, 10, "TEST device");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CONSOLE_SetStatusText(" ENTER = Continue F3 = Quit");
|
||||||
SetStatusText(" ENTER = Continue F3 = Quit");
|
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
ConInKey(Ir);
|
CONSOLE_ConInKey(Ir);
|
||||||
|
|
||||||
if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
||||||
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_F3)) /* F3 */
|
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_F3)) /* F3 */
|
||||||
|
@ -1133,6 +1132,38 @@ ScsiControllerPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
return SCSI_CONTROLLER_PAGE;
|
return SCSI_CONTROLLER_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PAGE_NUMBER
|
||||||
|
OemDriverPage(PINPUT_RECORD Ir)
|
||||||
|
{
|
||||||
|
// MUIDisplayPage(OEM_DRIVER_PAGE);
|
||||||
|
|
||||||
|
CONSOLE_SetTextXY(6, 8, "This is the OEM driver page!");
|
||||||
|
|
||||||
|
/* FIXME: Implement!! */
|
||||||
|
|
||||||
|
CONSOLE_SetStatusText(" ENTER = Continue F3 = Quit");
|
||||||
|
|
||||||
|
while (TRUE)
|
||||||
|
{
|
||||||
|
CONSOLE_ConInKey(Ir);
|
||||||
|
|
||||||
|
if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
||||||
|
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_F3)) /* F3 */
|
||||||
|
{
|
||||||
|
if (ConfirmQuit(Ir) == TRUE)
|
||||||
|
return QUIT_PAGE;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
|
||||||
|
{
|
||||||
|
return DEVICE_SETTINGS_PAGE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return OEM_DRIVER_PAGE;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1161,7 +1192,6 @@ static PAGE_NUMBER
|
||||||
DeviceSettingsPage(PINPUT_RECORD Ir)
|
DeviceSettingsPage(PINPUT_RECORD Ir)
|
||||||
{
|
{
|
||||||
static ULONG Line = 16;
|
static ULONG Line = 16;
|
||||||
MUIDisplayPage(DEVICE_SETTINGS_PAGE);
|
|
||||||
|
|
||||||
/* Initialize the computer settings list */
|
/* Initialize the computer settings list */
|
||||||
if (ComputerList == NULL)
|
if (ComputerList == NULL)
|
||||||
|
@ -1208,21 +1238,21 @@ DeviceSettingsPage(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (RepairUpdateFlag)
|
||||||
|
return SELECT_PARTITION_PAGE;
|
||||||
|
|
||||||
|
// if (IsUnattendedSetup)
|
||||||
|
// return SELECT_PARTITION_PAGE;
|
||||||
|
|
||||||
MUIDisplayPage(DEVICE_SETTINGS_PAGE);
|
MUIDisplayPage(DEVICE_SETTINGS_PAGE);
|
||||||
|
|
||||||
|
CONSOLE_SetTextXY(25, 11, GetListEntryText(GetCurrentListEntry(ComputerList)));
|
||||||
CONSOLE_SetTextXY(25, 11, GetListEntryText(GetCurrentListEntry((ComputerList))));
|
CONSOLE_SetTextXY(25, 12, GetListEntryText(GetCurrentListEntry(DisplayList)));
|
||||||
CONSOLE_SetTextXY(25, 12, GetListEntryText(GetCurrentListEntry((DisplayList))));
|
CONSOLE_SetTextXY(25, 13, GetListEntryText(GetCurrentListEntry(KeyboardList)));
|
||||||
CONSOLE_SetTextXY(25, 13, GetListEntryText(GetCurrentListEntry((KeyboardList))));
|
CONSOLE_SetTextXY(25, 14, GetListEntryText(GetCurrentListEntry(LayoutList)));
|
||||||
CONSOLE_SetTextXY(25, 14, GetListEntryText(GetCurrentListEntry((LayoutList))));
|
|
||||||
|
|
||||||
CONSOLE_InvertTextXY(24, Line, 48, 1);
|
CONSOLE_InvertTextXY(24, Line, 48, 1);
|
||||||
|
|
||||||
if (RepairUpdateFlag)
|
|
||||||
{
|
|
||||||
return SELECT_PARTITION_PAGE;
|
|
||||||
}
|
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
CONSOLE_ConInKey(Ir);
|
CONSOLE_ConInKey(Ir);
|
||||||
|
@ -1509,8 +1539,6 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
||||||
PARTLIST_UI ListUi;
|
PARTLIST_UI ListUi;
|
||||||
ULONG Error;
|
ULONG Error;
|
||||||
|
|
||||||
MUIDisplayPage(SELECT_PARTITION_PAGE);
|
|
||||||
|
|
||||||
if (PartitionList == NULL)
|
if (PartitionList == NULL)
|
||||||
{
|
{
|
||||||
PartitionList = CreatePartitionList();
|
PartitionList = CreatePartitionList();
|
||||||
|
@ -1530,6 +1558,8 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
||||||
FormatState = Start;
|
FormatState = Start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MUIDisplayPage(SELECT_PARTITION_PAGE);
|
||||||
|
|
||||||
InitPartitionListUi(&ListUi, PartitionList,
|
InitPartitionListUi(&ListUi, PartitionList,
|
||||||
2,
|
2,
|
||||||
23,
|
23,
|
||||||
|
@ -3180,9 +3210,8 @@ CheckFileSystemPage(PINPUT_RECORD Ir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static
|
static VOID
|
||||||
VOID
|
BuildInstallPaths(PWSTR InstallDir,
|
||||||
BuildInstallPaths(PWCHAR InstallDir,
|
|
||||||
PDISKENTRY DiskEntry,
|
PDISKENTRY DiskEntry,
|
||||||
PPARTENTRY PartEntry)
|
PPARTENTRY PartEntry)
|
||||||
{
|
{
|
||||||
|
@ -4033,6 +4062,8 @@ RegistryPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
if (RepairUpdateFlag)
|
if (RepairUpdateFlag)
|
||||||
{
|
{
|
||||||
|
// FIXME!
|
||||||
|
DPRINT1("FIXME: Updating / repairing the registry is NOT implemented yet!\n");
|
||||||
return SUCCESS_PAGE;
|
return SUCCESS_PAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4872,37 +4903,36 @@ RunUSetup(VOID)
|
||||||
/* Hide the cursor */
|
/* Hide the cursor */
|
||||||
CONSOLE_SetCursorType(TRUE, FALSE);
|
CONSOLE_SetCursorType(TRUE, FALSE);
|
||||||
|
|
||||||
Page = START_PAGE;
|
/* Global Initialization page */
|
||||||
|
CONSOLE_ClearScreen();
|
||||||
|
CONSOLE_Flush();
|
||||||
|
Page = SetupStartPage(&Ir);
|
||||||
|
|
||||||
while (Page != REBOOT_PAGE && Page != RECOVERY_PAGE)
|
while (Page != REBOOT_PAGE && Page != RECOVERY_PAGE)
|
||||||
{
|
{
|
||||||
CONSOLE_ClearScreen();
|
CONSOLE_ClearScreen();
|
||||||
CONSOLE_Flush();
|
CONSOLE_Flush();
|
||||||
|
|
||||||
//CONSOLE_SetUnderlinedTextXY(4, 3, " ReactOS " KERNEL_VERSION_STR " Setup ");
|
// CONSOLE_SetUnderlinedTextXY(4, 3, " ReactOS " KERNEL_VERSION_STR " Setup ");
|
||||||
//CONSOLE_Flush();
|
// CONSOLE_Flush();
|
||||||
|
|
||||||
switch (Page)
|
switch (Page)
|
||||||
{
|
{
|
||||||
/* Start page */
|
|
||||||
case START_PAGE:
|
|
||||||
Page = SetupStartPage(&Ir);
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Language page */
|
/* Language page */
|
||||||
case LANGUAGE_PAGE:
|
case LANGUAGE_PAGE:
|
||||||
Page = LanguagePage(&Ir);
|
Page = LanguagePage(&Ir);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* Welcome page */
|
||||||
|
case WELCOME_PAGE:
|
||||||
|
Page = WelcomePage(&Ir);
|
||||||
|
break;
|
||||||
|
|
||||||
/* License page */
|
/* License page */
|
||||||
case LICENSE_PAGE:
|
case LICENSE_PAGE:
|
||||||
Page = LicensePage(&Ir);
|
Page = LicensePage(&Ir);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Intro page */
|
|
||||||
case INTRO_PAGE:
|
|
||||||
Page = IntroPage(&Ir);
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Install pages */
|
/* Install pages */
|
||||||
case INSTALL_INTRO_PAGE:
|
case INSTALL_INTRO_PAGE:
|
||||||
Page = InstallIntroPage(&Ir);
|
Page = InstallIntroPage(&Ir);
|
||||||
|
|
|
@ -102,17 +102,17 @@ extern BOOLEAN InfGetStringField(PINFCONTEXT Context,
|
||||||
#define SetupGetMultiSzFieldW InfGetMultiSzField
|
#define SetupGetMultiSzFieldW InfGetMultiSzField
|
||||||
#define SetupGetStringFieldW InfGetStringField
|
#define SetupGetStringFieldW InfGetStringField
|
||||||
|
|
||||||
#ifndef _PAGE_NUMBER_DEFINED
|
|
||||||
#define _PAGE_NUMBER_DEFINED
|
|
||||||
typedef enum _PAGE_NUMBER
|
typedef enum _PAGE_NUMBER
|
||||||
{
|
{
|
||||||
START_PAGE,
|
|
||||||
LANGUAGE_PAGE,
|
LANGUAGE_PAGE,
|
||||||
INTRO_PAGE,
|
WELCOME_PAGE,
|
||||||
LICENSE_PAGE,
|
LICENSE_PAGE,
|
||||||
INSTALL_INTRO_PAGE,
|
INSTALL_INTRO_PAGE,
|
||||||
|
|
||||||
// SCSI_CONTROLLER_PAGE,
|
// SCSI_CONTROLLER_PAGE,
|
||||||
|
// OEM_DRIVER_PAGE,
|
||||||
|
|
||||||
|
REPAIR_INTRO_PAGE,
|
||||||
|
|
||||||
DEVICE_SETTINGS_PAGE,
|
DEVICE_SETTINGS_PAGE,
|
||||||
COMPUTER_SETTINGS_PAGE,
|
COMPUTER_SETTINGS_PAGE,
|
||||||
|
@ -140,15 +140,12 @@ typedef enum _PAGE_NUMBER
|
||||||
BOOT_LOADER_HARDDISK_MBR_PAGE,
|
BOOT_LOADER_HARDDISK_MBR_PAGE,
|
||||||
BOOT_LOADER_HARDDISK_VBR_PAGE,
|
BOOT_LOADER_HARDDISK_VBR_PAGE,
|
||||||
|
|
||||||
REPAIR_INTRO_PAGE,
|
|
||||||
|
|
||||||
SUCCESS_PAGE,
|
SUCCESS_PAGE,
|
||||||
QUIT_PAGE,
|
QUIT_PAGE,
|
||||||
FLUSH_PAGE,
|
FLUSH_PAGE,
|
||||||
REBOOT_PAGE, /* virtual page */
|
REBOOT_PAGE, /* Virtual page */
|
||||||
RECOVERY_PAGE, /* virtual page */
|
RECOVERY_PAGE, /* Virtual page */
|
||||||
} PAGE_NUMBER, *PPAGE_NUMBER;
|
} PAGE_NUMBER, *PPAGE_NUMBER;
|
||||||
#endif
|
|
||||||
|
|
||||||
#define POPUP_WAIT_NONE 0
|
#define POPUP_WAIT_NONE 0
|
||||||
#define POPUP_WAIT_ANY_KEY 1
|
#define POPUP_WAIT_ANY_KEY 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue