mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[SETUPLIB] Add a workaround for installing from USB drives
This commit is contained in:
parent
798fc13b48
commit
6f389a35db
1 changed files with 5 additions and 2 deletions
|
@ -410,6 +410,8 @@ GetSourcePaths(
|
||||||
ULONG BufferSize;
|
ULONG BufferSize;
|
||||||
PWCHAR Ptr;
|
PWCHAR Ptr;
|
||||||
|
|
||||||
|
// FIXME: commented out to allow installation from USB
|
||||||
|
#if 0
|
||||||
/* Determine the installation source path via the full path of the installer */
|
/* Determine the installation source path via the full path of the installer */
|
||||||
RtlInitEmptyUnicodeString(InstallSourcePath,
|
RtlInitEmptyUnicodeString(InstallSourcePath,
|
||||||
(PWSTR)((ULONG_PTR)ImageFileBuffer + sizeof(UNICODE_STRING)),
|
(PWSTR)((ULONG_PTR)ImageFileBuffer + sizeof(UNICODE_STRING)),
|
||||||
|
@ -433,7 +435,7 @@ GetSourcePaths(
|
||||||
if (Ptr)
|
if (Ptr)
|
||||||
*Ptr = UNICODE_NULL;
|
*Ptr = UNICODE_NULL;
|
||||||
InstallSourcePath->Length = wcslen(InstallSourcePath->Buffer) * sizeof(WCHAR);
|
InstallSourcePath->Length = wcslen(InstallSourcePath->Buffer) * sizeof(WCHAR);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now resolve the full path to \SystemRoot. In case it prefixes
|
* Now resolve the full path to \SystemRoot. In case it prefixes
|
||||||
|
@ -478,7 +480,8 @@ GetSourcePaths(
|
||||||
return Status; // Unexpected error
|
return Status; // Unexpected error
|
||||||
|
|
||||||
/* Check whether the resolved \SystemRoot is a prefix of the image file path */
|
/* Check whether the resolved \SystemRoot is a prefix of the image file path */
|
||||||
if (RtlPrefixUnicodeString(&SystemRootPath, InstallSourcePath, TRUE))
|
// FIXME: commented out to allow installation from USB
|
||||||
|
// if (RtlPrefixUnicodeString(&SystemRootPath, InstallSourcePath, TRUE))
|
||||||
{
|
{
|
||||||
/* Yes it is, so we use instead SystemRoot as the installation source path */
|
/* Yes it is, so we use instead SystemRoot as the installation source path */
|
||||||
InstallSourcePath = &SystemRootPath;
|
InstallSourcePath = &SystemRootPath;
|
||||||
|
|
Loading…
Reference in a new issue