Download

Android packaging exception, ue4 writing to c:program files ?

Hi

We are trying to package the Blueprint side scrolling template using UE4 4.17.1 on windows 7 and get this error which suggests that UE4 is trying to write to program files?
Has anyone come across this error before?

We know it works when running with local administrator privileges (to test), however that this is not actually a usable workaround, our IT department are very unhappy about changing permissions on the UE4 folders in case our students overwrite anything.

Many thanks in advance.

Simon

UATHelper: Packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: System.UnauthorizedAccessException: Access to the path ‘C:\Program Files\Epic Games\UE_4.17\Intermediate\UAT\Android_ASTC’ is denied.

UATHelper: Packaging (Android (ASTC)): Cook: LogInit: Display: NOTE: Only first 50 warnings displayed.
UATHelper: Packaging (Android (ASTC)): Cook: LogInit: Display:
UATHelper: Packaging (Android (ASTC)): Cook: LogInit: Display: Success - 0 error(s), 5483 warning(s)
UATHelper: Packaging (Android (ASTC)): Cook: LogInit: Display:
UATHelper: Packaging (Android (ASTC)): Cook:
UATHelper: Packaging (Android (ASTC)): Cook: Execution of commandlet took: 504.03 seconds
UATHelper: Packaging (Android (ASTC)): Cook: LogOnline: Display: Unloading online subsystem: NULL
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 518.1383658s to run UE4Editor-Cmd.exe, ExitCode=0
UATHelper: Packaging (Android (ASTC)): Project.Cook: ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Android (ASTC)): Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND STARTED **********
UATHelper: Packaging (Android (ASTC)): Project.WriteStageCommandline: Creating UE4CommandLine.txt
UATHelper: Packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: System.UnauthorizedAccessException: Access to the path ‘C:\Program Files\Epic Games\UE_4.17\Intermediate\UAT\Android_ASTC’ is denied.
UATHelper: Packaging (Android (ASTC)): at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Packaging (Android (ASTC)): at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
UATHelper: Packaging (Android (ASTC)): at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
UATHelper: Packaging (Android (ASTC)): at UnrealBuildTool.DirectoryReference.CreateDirectory(DirectoryReference Location)
UATHelper: Packaging (Android (ASTC)): at Project.WriteStageCommandline(FileReference IntermediateCmdLineFile, ProjectParams Params, DeploymentContext SC)
UATHelper: Packaging (Android (ASTC)): at Project.WriteStageCommandline(ProjectParams Params, DeploymentContext SC)
UATHelper: Packaging (Android (ASTC)): at Project.CopyBuildToStagingDirectory(ProjectParams Params)
UATHelper: Packaging (Android (ASTC)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Android (ASTC)): at BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Android (ASTC)): at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Process(String] Arguments)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.Main()
UATHelper: Packaging (Android (ASTC)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error

UE4 needs to write to Intermediate in the engine folder so it does need to be writable.

Hi Chris, many thanks for your reply.
Simon