mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[USETUP] Display some contents in the page whilst installing the bootloader (#3559)
CORE-17523
This commit is contained in:
parent
f511258ee5
commit
3ee9535e05
31 changed files with 862 additions and 72 deletions
|
@ -1533,6 +1533,30 @@ static MUI_ENTRY bgBGBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY bgBGBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY bgBGKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2183,6 +2207,10 @@ MUI_PAGE bgBGPages[] =
|
|||
SUCCESS_PAGE,
|
||||
bgBGSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
bgBGBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
bgBGBootPageEntries
|
||||
|
|
|
@ -981,6 +981,30 @@ static MUI_ENTRY bnBDBootPageEntries[] =
|
|||
|
||||
};
|
||||
|
||||
static MUI_ENTRY bnBDBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY bnBDSelectPartitionEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2171,6 +2195,10 @@ MUI_PAGE bnBDPages[] =
|
|||
SUCCESS_PAGE,
|
||||
bnBDSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
bnBDBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
bnBDBootPageEntries
|
||||
|
|
|
@ -1531,6 +1531,30 @@ static MUI_ENTRY csCZBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY csCZBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY csCZKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2179,6 +2203,10 @@ MUI_PAGE csCZPages[] =
|
|||
SUCCESS_PAGE,
|
||||
csCZSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
csCZBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
csCZBootPageEntries
|
||||
|
|
|
@ -1525,6 +1525,30 @@ static MUI_ENTRY daDKBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY daDKBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY daDKKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2174,6 +2198,10 @@ MUI_PAGE daDKPages[] =
|
|||
SUCCESS_PAGE,
|
||||
daDKSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
daDKBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
daDKBootPageEntries
|
||||
|
|
|
@ -1525,6 +1525,30 @@ static MUI_ENTRY deDEBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY deDEBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY deDEKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2176,6 +2200,10 @@ MUI_PAGE deDEPages[] =
|
|||
SUCCESS_PAGE,
|
||||
deDESuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
deDEBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
deDEBootPageEntries
|
||||
|
|
|
@ -1540,6 +1540,30 @@ static MUI_ENTRY elGRBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY elGRBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY elGRKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2187,6 +2211,10 @@ MUI_PAGE elGRPages[] =
|
|||
SUCCESS_PAGE,
|
||||
elGRSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
elGRBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
elGRBootPageEntries
|
||||
|
|
|
@ -1523,6 +1523,30 @@ static MUI_ENTRY enUSBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY enUSBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY enUSKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2171,6 +2195,10 @@ MUI_PAGE enUSPages[] =
|
|||
SUCCESS_PAGE,
|
||||
enUSSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
enUSBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
enUSBootPageEntries
|
||||
|
|
|
@ -1529,6 +1529,30 @@ static MUI_ENTRY esESBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY etESBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY esESKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2177,6 +2201,10 @@ MUI_PAGE esESPages[] =
|
|||
SUCCESS_PAGE,
|
||||
esESSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
etESBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
esESBootPageEntries
|
||||
|
|
|
@ -1526,6 +1526,30 @@ static MUI_ENTRY etEEBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY etEEBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY etEEKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2172,6 +2196,10 @@ MUI_PAGE etEEPages[] =
|
|||
SUCCESS_PAGE,
|
||||
etEESuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
etEEBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
etEEBootPageEntries
|
||||
|
|
|
@ -1524,6 +1524,30 @@ static MUI_ENTRY euESBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY euESBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY euESKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2172,6 +2196,10 @@ MUI_PAGE euESPages[] =
|
|||
SUCCESS_PAGE,
|
||||
euESSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
euESBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
euESBootPageEntries
|
||||
|
|
|
@ -1560,6 +1560,30 @@ static MUI_ENTRY frFRBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY frFRBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY frFRKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2208,6 +2232,10 @@ MUI_PAGE frFRPages[] =
|
|||
SUCCESS_PAGE,
|
||||
frFRSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
frFRBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
frFRBootPageEntries
|
||||
|
|
|
@ -1527,6 +1527,30 @@ static MUI_ENTRY heILBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY heILBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY heILKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2173,6 +2197,10 @@ MUI_PAGE heILPages[] =
|
|||
SUCCESS_PAGE,
|
||||
heILSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
heILBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
heILBootPageEntries
|
||||
|
|
|
@ -1417,6 +1417,30 @@ static MUI_ENTRY huHUBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY huHUBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY huHUKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2062,6 +2086,10 @@ MUI_PAGE huHUPages[] =
|
|||
SUCCESS_PAGE,
|
||||
huHUSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
huHUBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
huHUBootPageEntries
|
||||
|
|
|
@ -1523,6 +1523,30 @@ static MUI_ENTRY idIDBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY idIDBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY idIDKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2171,6 +2195,10 @@ MUI_PAGE idIDPages[] =
|
|||
SUCCESS_PAGE,
|
||||
idIDSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
idIDBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
idIDBootPageEntries
|
||||
|
|
|
@ -980,6 +980,30 @@ static MUI_ENTRY itITBootPageEntries[] =
|
|||
|
||||
};
|
||||
|
||||
static MUI_ENTRY itITBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY itITSelectPartitionEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2177,6 +2201,10 @@ MUI_PAGE itITPages[] =
|
|||
SUCCESS_PAGE,
|
||||
itITSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
itITBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
itITBootPageEntries
|
||||
|
|
|
@ -1526,6 +1526,30 @@ static MUI_ENTRY jaJPBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY jaJPBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY jaJPKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2174,6 +2198,10 @@ MUI_PAGE jaJPPages[] =
|
|||
SUCCESS_PAGE,
|
||||
jaJPSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
jaJPBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
jaJPBootPageEntries
|
||||
|
|
|
@ -1534,6 +1534,30 @@ static MUI_ENTRY ltLTBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ltLTBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ltLTKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2182,6 +2206,10 @@ MUI_PAGE ltLTPages[] =
|
|||
SUCCESS_PAGE,
|
||||
ltLTSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
ltLTBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
ltLTBootPageEntries
|
||||
|
|
|
@ -1515,6 +1515,30 @@ static MUI_ENTRY msMYBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY msMYBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY msMYKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2156,6 +2180,10 @@ MUI_PAGE msMYPages[] =
|
|||
SUCCESS_PAGE,
|
||||
msMYSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
msMYBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
msMYBootPageEntries
|
||||
|
|
|
@ -1538,6 +1538,30 @@ static MUI_ENTRY nlNLBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY nlNLBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY nlNLkeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2196,6 +2220,10 @@ MUI_PAGE nlNLPages[] =
|
|||
SUCCESS_PAGE,
|
||||
nlNLSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
nlNLBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
nlNLBootPageEntries
|
||||
|
|
|
@ -1534,6 +1534,30 @@ static MUI_ENTRY plPLBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY plPLBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY plPLKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2179,6 +2203,10 @@ MUI_PAGE plPLPages[] =
|
|||
SUCCESS_PAGE,
|
||||
plPLSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
plPLBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
plPLBootPageEntries
|
||||
|
|
|
@ -1540,6 +1540,30 @@ static MUI_ENTRY ptBRBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ptBRBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ptBRKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2209,6 +2233,10 @@ MUI_PAGE ptBRPages[] =
|
|||
SUCCESS_PAGE,
|
||||
ptBRSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
ptBRBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
ptBRBootPageEntries
|
||||
|
|
|
@ -1540,6 +1540,30 @@ static MUI_ENTRY ptPTBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ptPTBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ptPTKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2194,6 +2218,10 @@ MUI_PAGE ptPTPages[] =
|
|||
SUCCESS_PAGE,
|
||||
ptPTSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
ptPTBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
ptPTBootPageEntries
|
||||
|
|
|
@ -1548,6 +1548,30 @@ static MUI_ENTRY roROBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY roROBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY roROKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2217,6 +2241,10 @@ MUI_PAGE roROPages[] =
|
|||
SUCCESS_PAGE,
|
||||
roROSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
roROBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
roROBootPageEntries
|
||||
|
|
|
@ -1546,6 +1546,30 @@ static MUI_ENTRY ruRUBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ruRUBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ruRUKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2194,6 +2218,10 @@ MUI_PAGE ruRUPages[] =
|
|||
SUCCESS_PAGE,
|
||||
ruRUSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
ruRUBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
ruRUBootPageEntries
|
||||
|
|
|
@ -1532,6 +1532,30 @@ static MUI_ENTRY skSKBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY skSKBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY skSKKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2183,6 +2207,10 @@ MUI_PAGE skSKPages[] =
|
|||
SUCCESS_PAGE,
|
||||
skSKSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
skSKBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
skSKBootPageEntries
|
||||
|
|
|
@ -1530,6 +1530,30 @@ static MUI_ENTRY sqALBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY sqALBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY sqALKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2184,6 +2208,10 @@ MUI_PAGE sqALPages[] =
|
|||
SUCCESS_PAGE,
|
||||
sqALSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
sqALBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
sqALBootPageEntries
|
||||
|
|
|
@ -1532,6 +1532,30 @@ static MUI_ENTRY svSEBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY svSEBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY svSEKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2180,6 +2204,10 @@ MUI_PAGE svSEPages[] =
|
|||
SUCCESS_PAGE,
|
||||
svSESuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
svSEBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
svSEBootPageEntries
|
||||
|
|
|
@ -1500,6 +1500,30 @@ static MUI_ENTRY trTRBootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY trTRBootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY trTRKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2148,6 +2172,10 @@ MUI_PAGE trTRPages[] =
|
|||
SUCCESS_PAGE,
|
||||
trTRSuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
trTRBootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
trTRBootPageEntries
|
||||
|
|
|
@ -1531,6 +1531,30 @@ static MUI_ENTRY ukUABootLoaderEntries[] =
|
|||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ukUABootLoaderInstallPageEntries[] =
|
||||
{
|
||||
{
|
||||
4,
|
||||
3,
|
||||
" ReactOS " KERNEL_VERSION_STR " Setup ",
|
||||
TEXT_STYLE_UNDERLINE,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
"Installing the bootloader onto the media, please wait...",
|
||||
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
|
||||
TEXT_ID_STATIC
|
||||
},
|
||||
{
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
}
|
||||
};
|
||||
|
||||
static MUI_ENTRY ukUAKeyboardSettingsEntries[] =
|
||||
{
|
||||
{
|
||||
|
@ -2180,6 +2204,10 @@ MUI_PAGE ukUAPages[] =
|
|||
SUCCESS_PAGE,
|
||||
ukUASuccessPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
ukUABootLoaderInstallPageEntries
|
||||
},
|
||||
{
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
ukUABootPageEntries
|
||||
|
|
|
@ -4023,13 +4023,10 @@ Quit:
|
|||
case 1:
|
||||
return BOOT_LOADER_FLOPPY_PAGE;
|
||||
|
||||
/* Install on both MBR and VBR */
|
||||
/* Install on both MBR and VBR or VBR only */
|
||||
case 2:
|
||||
return BOOT_LOADER_HARDDISK_MBR_PAGE;
|
||||
|
||||
/* Install on VBR only */
|
||||
case 3:
|
||||
return BOOT_LOADER_HARDDISK_VBR_PAGE;
|
||||
return BOOT_LOADER_INSTALLATION_PAGE;
|
||||
}
|
||||
|
||||
return BOOT_LOADER_PAGE;
|
||||
|
@ -4092,83 +4089,69 @@ BootLoaderFloppyPage(PINPUT_RECORD Ir)
|
|||
|
||||
|
||||
/*
|
||||
* Displays the BootLoaderHarddiskVbrPage.
|
||||
* Displays the BootLoaderInstallationPage.
|
||||
*
|
||||
* Next pages:
|
||||
* SuccessPage (At once)
|
||||
* QuitPage
|
||||
*
|
||||
* SIDEEFFECTS
|
||||
* Calls InstallVBRToPartition()
|
||||
*
|
||||
* Calls InstallVBRToPartition() if VBR installation is chosen.
|
||||
* Otherwise both InstallVBRToPartition() and InstallMbrBootCodeToDisk()
|
||||
* are called if both MBR and VBR installation is chosen.
|
||||
*
|
||||
* RETURNS
|
||||
* Number of the next page.
|
||||
*/
|
||||
static PAGE_NUMBER
|
||||
BootLoaderHarddiskVbrPage(PINPUT_RECORD Ir)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = InstallVBRToPartition(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
&USetupData.DestinationArcPath,
|
||||
SystemPartition->FileSystem);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
MUIDisplayError(ERROR_WRITE_BOOT, Ir, POPUP_WAIT_ENTER,
|
||||
SystemPartition->FileSystem);
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
|
||||
return SUCCESS_PAGE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Displays the BootLoaderHarddiskMbrPage.
|
||||
*
|
||||
* Next pages:
|
||||
* SuccessPage (At once)
|
||||
* QuitPage
|
||||
*
|
||||
* SIDEEFFECTS
|
||||
* Calls InstallVBRToPartition()
|
||||
* Calls InstallMbrBootCodeToDisk()
|
||||
*
|
||||
* RETURNS
|
||||
* Number of the next page.
|
||||
*/
|
||||
static PAGE_NUMBER
|
||||
BootLoaderHarddiskMbrPage(PINPUT_RECORD Ir)
|
||||
BootLoaderInstallationPage(PINPUT_RECORD Ir)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
WCHAR DestinationDevicePathBuffer[MAX_PATH];
|
||||
|
||||
/* Step 1: Write the VBR */
|
||||
Status = InstallVBRToPartition(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
&USetupData.DestinationArcPath,
|
||||
SystemPartition->FileSystem);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
MUIDisplayError(ERROR_WRITE_BOOT, Ir, POPUP_WAIT_ENTER,
|
||||
SystemPartition->FileSystem);
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
MUIDisplayPage(BOOT_LOADER_INSTALLATION_PAGE);
|
||||
|
||||
/* Step 2: Write the MBR if the disk containing the system partition is not a super-floppy */
|
||||
if (!IsSuperFloppy(SystemPartition->DiskEntry))
|
||||
if (USetupData.MBRInstallType == 2)
|
||||
{
|
||||
RtlStringCchPrintfW(DestinationDevicePathBuffer, ARRAYSIZE(DestinationDevicePathBuffer),
|
||||
L"\\Device\\Harddisk%d\\Partition0",
|
||||
SystemPartition->DiskEntry->DiskNumber);
|
||||
Status = InstallMbrBootCodeToDisk(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
DestinationDevicePathBuffer);
|
||||
/* Step 1: Write the VBR */
|
||||
Status = InstallVBRToPartition(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
&USetupData.DestinationArcPath,
|
||||
SystemPartition->FileSystem);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("InstallMbrBootCodeToDisk() failed (Status %lx)\n", Status);
|
||||
MUIDisplayError(ERROR_INSTALL_BOOTCODE, Ir, POPUP_WAIT_ENTER, L"MBR");
|
||||
MUIDisplayError(ERROR_WRITE_BOOT, Ir, POPUP_WAIT_ENTER,
|
||||
SystemPartition->FileSystem);
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
|
||||
/* Step 2: Write the MBR if the disk containing the system partition is not a super-floppy */
|
||||
if (!IsSuperFloppy(SystemPartition->DiskEntry))
|
||||
{
|
||||
RtlStringCchPrintfW(DestinationDevicePathBuffer, ARRAYSIZE(DestinationDevicePathBuffer),
|
||||
L"\\Device\\Harddisk%d\\Partition0",
|
||||
SystemPartition->DiskEntry->DiskNumber);
|
||||
Status = InstallMbrBootCodeToDisk(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
DestinationDevicePathBuffer);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("InstallMbrBootCodeToDisk() failed (Status %lx)\n", Status);
|
||||
MUIDisplayError(ERROR_INSTALL_BOOTCODE, Ir, POPUP_WAIT_ENTER, L"MBR");
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Status = InstallVBRToPartition(&USetupData.SystemRootPath,
|
||||
&USetupData.SourceRootPath,
|
||||
&USetupData.DestinationArcPath,
|
||||
SystemPartition->FileSystem);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
MUIDisplayError(ERROR_WRITE_BOOT, Ir, POPUP_WAIT_ENTER,
|
||||
SystemPartition->FileSystem);
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
}
|
||||
|
@ -4632,12 +4615,8 @@ RunUSetup(VOID)
|
|||
Page = BootLoaderFloppyPage(&Ir);
|
||||
break;
|
||||
|
||||
case BOOT_LOADER_HARDDISK_MBR_PAGE:
|
||||
Page = BootLoaderHarddiskMbrPage(&Ir);
|
||||
break;
|
||||
|
||||
case BOOT_LOADER_HARDDISK_VBR_PAGE:
|
||||
Page = BootLoaderHarddiskVbrPage(&Ir);
|
||||
case BOOT_LOADER_INSTALLATION_PAGE:
|
||||
Page = BootLoaderInstallationPage(&Ir);
|
||||
break;
|
||||
|
||||
/* Repair pages */
|
||||
|
|
|
@ -111,8 +111,7 @@ typedef enum _PAGE_NUMBER
|
|||
REGISTRY_PAGE,
|
||||
BOOT_LOADER_PAGE,
|
||||
BOOT_LOADER_FLOPPY_PAGE,
|
||||
BOOT_LOADER_HARDDISK_MBR_PAGE,
|
||||
BOOT_LOADER_HARDDISK_VBR_PAGE,
|
||||
BOOT_LOADER_INSTALLATION_PAGE,
|
||||
|
||||
SUCCESS_PAGE,
|
||||
QUIT_PAGE,
|
||||
|
|
Loading…
Reference in a new issue