[USETUP] Display some contents in the page whilst installing the bootloader (#3559)
authorGeorge Bișoc <george.bisoc@reactos.org>
Wed, 7 Apr 2021 08:11:07 +0000 (10:11 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 08:11:07 +0000 (10:11 +0200)
CORE-17523

31 files changed:
base/setup/usetup/lang/bg-BG.h
base/setup/usetup/lang/bn-BD.h
base/setup/usetup/lang/cs-CZ.h
base/setup/usetup/lang/da-DK.h
base/setup/usetup/lang/de-DE.h
base/setup/usetup/lang/el-GR.h
base/setup/usetup/lang/en-US.h
base/setup/usetup/lang/es-ES.h
base/setup/usetup/lang/et-EE.h
base/setup/usetup/lang/eu-ES.h
base/setup/usetup/lang/fr-FR.h
base/setup/usetup/lang/he-IL.h
base/setup/usetup/lang/hu-HU.h
base/setup/usetup/lang/id-ID.h
base/setup/usetup/lang/it-IT.h
base/setup/usetup/lang/ja-JP.h
base/setup/usetup/lang/lt-LT.h
base/setup/usetup/lang/ms-MY.h
base/setup/usetup/lang/nl-NL.h
base/setup/usetup/lang/pl-PL.h
base/setup/usetup/lang/pt-BR.h
base/setup/usetup/lang/pt-PT.h
base/setup/usetup/lang/ro-RO.h
base/setup/usetup/lang/ru-RU.h
base/setup/usetup/lang/sk-SK.h
base/setup/usetup/lang/sq-AL.h
base/setup/usetup/lang/sv-SE.h
base/setup/usetup/lang/tr-TR.h
base/setup/usetup/lang/uk-UA.h
base/setup/usetup/usetup.c
base/setup/usetup/usetup.h

index 010cbb7..184821b 100644 (file)
@@ -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
index 9c6ea7a..8ecec83 100644 (file)
@@ -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
index fc68039..7ee0878 100644 (file)
@@ -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
index aa29e1f..d953f6c 100644 (file)
@@ -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
index c595845..ad8544f 100644 (file)
@@ -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
index f626aa7..edb4965 100644 (file)
@@ -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
index e71eaa8..1c94ac6 100644 (file)
@@ -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
index 35d0cab..82182e3 100644 (file)
@@ -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
index 581ffe9..c29a79a 100644 (file)
@@ -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
index da8ffe3..4777c60 100644 (file)
@@ -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
index 17a3e90..b34852b 100644 (file)
@@ -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
index 2f8ea93..85751ce 100644 (file)
@@ -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
index 9d3d8b3..3289d59 100644 (file)
@@ -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
index 3a751b3..f6713b6 100644 (file)
@@ -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
index 8041b37..e5a6b81 100644 (file)
@@ -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
index dd0c235..a081705 100644 (file)
@@ -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
index 5bcd70c..9c59422 100644 (file)
@@ -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
index 7a04d9b..933e479 100644 (file)
@@ -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
index 8a3e1ad..3da7c99 100644 (file)
@@ -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
index 97e27d1..74f38ad 100644 (file)
@@ -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
index 50d59d8..e898699 100644 (file)
@@ -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
index bd5eaa9..b95b4d9 100644 (file)
@@ -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
index 8445549..5f2fe87 100644 (file)
@@ -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
index 65d55e5..08e0169 100644 (file)
@@ -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
index 7d37ba3..5ec671e 100644 (file)
@@ -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
index 7e0c1b7..584c30c 100644 (file)
@@ -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
index 3c87c29..b9f2b89 100644 (file)
@@ -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
index 229416e..bd02a96 100644 (file)
@@ -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
index d242e3d..ce68ce4 100644 (file)
@@ -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
index f1fc3a0..520b257 100644 (file)
@@ -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.
- *
- * Next pages:
- *  SuccessPage (At once)
- *  QuitPage
- *
- * SIDEEFFECTS
- *  Calls InstallVBRToPartition()
- *
- * 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.
+ * Displays the BootLoaderInstallationPage.
  *
  * Next pages:
  *  SuccessPage (At once)
  *  QuitPage
  *
  * SIDEEFFECTS
- *  Calls InstallVBRToPartition()
- *  Calls InstallMbrBootCodeToDisk()
- *
+ *  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
-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))
+    MUIDisplayPage(BOOT_LOADER_INSTALLATION_PAGE);
+
+    if (USetupData.MBRInstallType == 2)
     {
-        MUIDisplayError(ERROR_WRITE_BOOT, Ir, POPUP_WAIT_ENTER,
-                        SystemPartition->FileSystem);
-        return QUIT_PAGE;
-    }
+        /* 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;
+        }
 
-    /* Step 2: Write the MBR if the disk containing the system partition is not a super-floppy */
-    if (!IsSuperFloppy(SystemPartition->DiskEntry))
+        /* 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
     {
-        RtlStringCchPrintfW(DestinationDevicePathBuffer, ARRAYSIZE(DestinationDevicePathBuffer),
-                L"\\Device\\Harddisk%d\\Partition0",
-                SystemPartition->DiskEntry->DiskNumber);
-        Status = InstallMbrBootCodeToDisk(&USetupData.SystemRootPath,
-                                          &USetupData.SourceRootPath,
-                                          DestinationDevicePathBuffer);
+        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;
         }
     }
@@ -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 */
index cf31b92..a7dbb67 100644 (file)
@@ -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,