You can install ReactOS on 'unpartitioned space' again. Usetup will create a primary partition that spans the whole unpartitioned space, format the partition and install ReactOS on that partition.

svn path=/trunk/; revision=65923
This commit is contained in:
Eric Kohl 2014-12-31 20:51:56 +00:00
parent c7e2c1e0f8
commit 8235a5df62

View file

@ -46,6 +46,7 @@ UNICODE_STRING SourceRootPath;
UNICODE_STRING SourceRootDir;
UNICODE_STRING SourcePath;
BOOLEAN IsUnattendedSetup = FALSE;
BOOLEAN InstallShortcut = FALSE;
LONG UnattendDestinationDiskNumber;
LONG UnattendDestinationPartitionNumber;
LONG UnattendMBRInstallType = -1;
@ -1601,19 +1602,22 @@ SelectPartitionPage(PINPUT_RECORD Ir)
if (IsContainerPartition(PartitionList->CurrentPartition->PartitionType))
continue; //return SELECT_PARTITION_PAGE;
if (!IsDiskSizeValid(PartitionList->CurrentPartition))
{
MUIDisplayError(ERROR_INSUFFICIENT_PARTITION_SIZE, Ir, POPUP_WAIT_ANY_KEY,
RequiredPartitionDiskSpace);
continue; //return SELECT_PARTITION_PAGE; /* let the user select another partition */
}
if (PartitionList->CurrentPartition == NULL ||
PartitionList->CurrentPartition->IsPartitioned == FALSE)
{
CreatePrimaryPartition(PartitionList,
0ULL,
TRUE);
}
InstallShortcut = TRUE;
if (!IsDiskSizeValid(PartitionList->CurrentPartition))
{
MUIDisplayError(ERROR_INSUFFICIENT_PARTITION_SIZE, Ir, POPUP_WAIT_ANY_KEY,
RequiredPartitionDiskSpace);
return SELECT_PARTITION_PAGE; /* let the user select another partition */
return SELECT_FILE_SYSTEM_PAGE;
}
DestinationDriveLetter = (WCHAR)PartitionList->CurrentPartition->DriveLetter;
@ -2875,7 +2879,7 @@ FormatPartitionPage(PINPUT_RECORD Ir)
DestroyFileSystemList(FileSystemList);
FileSystemList = NULL;
if (IsUnattendedSetup)
if (IsUnattendedSetup || InstallShortcut)
return INSTALL_DIRECTORY_PAGE;
else
return SELECT_PARTITION_PAGE;