Packaging error: Exception in Win.Automation: Couldn't update resource

Hey guys, I’m trying to package a game for win64, and have solved pretty much all of the issues so far but I keep getting stuck at this point now. What can I do? I’ve attached the log:

log file

Hello kolinsyc,

It seems like the error that sticks out here is:

ERROR: Exception in Win.Automation: Couldn’t update resource

Searching for this results in finding this post that may be able to help you with this problem: Packaging Error : Couldn't update resource - Platform & Builds - Epic Developer Community Forums

To summarize, it seems like there is a file that is set as read-only that the compiler or cooker is trying to update but can’t. I can’t tell what file it is from the log file, as the callstack it provides isn’t specific on what asset it was trying to update. I’ll look into how to find out what file it is.

Thank you. I’ve checked it out and it seems like I might be able to use that bit of code as a workaround, but I’m not sure how to find or access WinPlatform.Automation.cs (I have Visual Studio 2015 installed). Would you be able to give me some pointers as to what I should be looking for?

I really appreciate it!

Thanks! Will I have to reinstall UE4 to proceed with this? will I have to re-migrate everything?

excellent. Thank you. I’ll give it a shot!

The WinPlatform.Automation.cs file is only available if you’re using a version of the engine built from source code, which you can download from our Github repositories. You can find out more about that process here: Downloading Unreal Engine Source Code | Unreal Engine 5.1 Documentation

The installation will be separate from your Binary installs that you downloaded from the Launcher, as it doesn’t technically install itself. As for migrating, you shouldn’t have a problem as long as you download the 4.10 version of the source. After you have it all compiled, you can open the new editor once (just to the Unreal Project Browser is fine), create an entirely new copy of your project (Just so you have an unedited backup handy) and then right-click the .uproject file and use the “Switch Engine Version” feature to select the newly downloaded engine.

I migrated it once more and built it, it worked out great! thanks for all your help and bearing with me!

I’m glad to hear it worked!