ConsoleTUI.OpenFrame.WriteCentered("\r\nWindows Setup will display as 'Windows Server,' but it's not actually installing Windows Server and is only set as such to bypass hardware requirements.");
Console.WriteLine();
ConsoleTUI.OpenFrame.WriteCentered("\r\nWaiting 10 seconds and starting...");
ConsoleTUI.OpenFrame.Close("Security exception: "+e.Message,ConsoleColor.Red,Console.BackgroundColor,newChoicePrompt(){AnyKey=true,Text="Press any key to return to the Menu: "});
ConsoleTUI.OpenFrame.Close("Security exception: "+e.Message,ConsoleColor.Red,Console.BackgroundColor,newChoicePrompt{AnyKey=true,Text="Press any key to return to the Menu: "});
newChoicePrompt(){Text="To continue, Windows installation media is needed.\r\nDo you have a Windows USB instead of an ISO file? (Y/N): "}.Start();
newChoicePrompt{Text="To continue, Windows installation media is needed.\r\nDo you have a Windows USB instead of an ISO file? (Y/N): "}.Start();
if(!choice.HasValue)returnerror;
// Folder/drive chosen
@ -103,7 +103,7 @@ namespace amecs.Misc
{
Console.WriteLine();
ConsoleTUI.OpenFrame.Close("\r\nYou must select a folder or drive containing Windows installation media.",
newChoicePrompt(){AnyKey=true,Text="Press any key to return to the Menu: "});
newChoicePrompt{AnyKey=true,Text="Press any key to return to the Menu: "});
returnerror;
}
}
@ -128,7 +128,7 @@ namespace amecs.Misc
{
Console.WriteLine();
ConsoleTUI.OpenFrame.Close("\r\nYou must select an ISO.",
newChoicePrompt(){AnyKey=true,Text="Press any key to return to the Menu: "});
newChoicePrompt{AnyKey=true,Text="Press any key to return to the Menu: "});
returnerror;
}
@ -182,18 +182,18 @@ namespace amecs.Misc
{
casetruewhenisoBuildMustBeReturned:
ConsoleTUI.OpenFrame.Close(
$"Multiple Windows versions were found in the Windows image, can't determine which Windows build it is. Please use an unmodified Windows ISO.",
"Multiple Windows versions were found in the Windows image, can't determine which Windows build it is. Please use an unmodified Windows ISO.",
ConsoleColor.Red,Console.BackgroundColor,
newChoicePrompt(){AnyKey=true,Text="Press any key to return to the Menu: "});
newChoicePrompt{AnyKey=true,Text="Press any key to return to the Menu: "});
returnerror;
casetruewhenwinVersionsMustMatch:
ConsoleTUI.OpenFrame.Close(
$"Multiple Windows versions were found in the Windows image, can't determine which Windows build it is. If your Windows version doesn't match the ISO, there will be problems.",
"Multiple Windows versions were found in the Windows image, can't determine which Windows build it is. If your Windows version doesn't match the ISO, there will be problems.",
ConsoleColor.Red,Console.BackgroundColor,
newChoicePrompt(){AnyKey=true,Text="Press any key to continue anyways: "});
newChoicePrompt{AnyKey=true,Text="Press any key to continue anyways: "});
Program.Frame.Clear();
ConsoleTUI.OpenFrame.WriteCentered("\r\nContinuing without version check\r\n");
ConsoleTUI.OpenFrame.WriteCentered("\r\nContinuing without version check...\r\n");
break;
}
@ -207,7 +207,7 @@ namespace amecs.Misc
ConsoleTUI.OpenFrame.Close(
"Error checking ISO version: "+e.Message.TrimEnd('\n').TrimEnd('\r'),
ConsoleColor.Red,Console.BackgroundColor,
newChoicePrompt(){AnyKey=true,Text="Press any key to return to the Menu: "});
newChoicePrompt{AnyKey=true,Text="Press any key to return to the Menu: "});