Compatibility with 64 bits registry access
https://support.microsoft.com/en-us/help/948698/you-cannot-use-the-reg-exe-utility-to-access-64-bit-registry-keys-on-a
This commit is contained in:
parent
e412bb93ec
commit
5df4bb920c
|
@ -63,7 +63,7 @@ rem
|
|||
set KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\EpicGames\Unreal Engine\%UE_VERSION%"
|
||||
set VALUE_NAME=InstalledDirectory
|
||||
|
||||
for /f "usebackq tokens=3*" %%A in (`reg query %KEY_NAME% /v %VALUE_NAME%`) do set UE4_ROOT=%%A%%B
|
||||
for /f "usebackq tokens=3*" %%A in (`reg query %KEY_NAME% /v %VALUE_NAME% /reg:64`) do set UE4_ROOT=%%A %%B
|
||||
if not defined UE4_ROOT goto error_unreal_no_found
|
||||
|
||||
rem Set packaging paths
|
||||
|
|
|
@ -62,7 +62,7 @@ echo %FILE_N% Install directory: "%INSTALLATION_DIR%"
|
|||
|
||||
if not exist "%CONTENT_DIR%" (
|
||||
echo %FILE_N% Creating "%CONTENT_DIR%" folder...
|
||||
mkdir "%CONTENT_DIR%""
|
||||
mkdir "%CONTENT_DIR%"
|
||||
)
|
||||
|
||||
if not exist "%INSTALLATION_DIR%" (
|
||||
|
|
Loading…
Reference in New Issue