Help with export error when embedding PCK

Godot Version

Version 4.2.2

Question

I hope this is the right subcategory. I’m brand new to both development and Godot. I finished a small, one-level game and want to learn how to properly export it, but keep running into the same error message.

The game exports successfully to Windows, but only if I don’t embed the PCK. But I want to be able to do so! When I try to export while embedding the PCK, I get an error that says:

[Save PCK]: Can’t open file for reading-writing at path…

and then the path I used, followed by a .tmp file extension. This happens no matter where I try to export the game. Then, at that path, a .tmp and a .console.exe file are created. The latter does not run when opened.

I don’t know what a .tmp, .console.exe, or even a .pck file really is. I’m just following tutorials and have not found one covering this error.

Any ideas?