I’m trying to make a shortcut that generates my project files. This was easy in 5.3, I just did what the Registry says the Generate Project Files right-click option did. But in 5.4, this does two things differently:
- Asks me to select a version
- After I hit ok, it tells me “Couldn’t set association for project. Check the file is writeable.”
It’s weird that this changed in 5.4. 5.3 projects continue to work, but everything I’ve tried has failed for the 5.4 project.
Looking at the registry, the Generate Project Files option runs this command:
“C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe” /projectfiles “%1”
Which is what I’ve been doing, replacing the %1 with the path to my uproject file. I’ve tried also setting the shortcut’s Start In to the project folder vs the launcher path, but that doesn’t change results.
I’ve also tried writing a batch file, but to the same end.
"C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe" /projectfiles "C:\dev\example-path-to-project.uproject"
I’m really not sure what to do here. This all continues to work for my 5.3 projects, but something is special with 5.4 that makes it weirdly hostile to my efforts. Somehow the right-click Generate Project Files is doing something subtly different that makes it work, and I’m not sure what that is.
Has anyone gotten this to work for a UE 5.4 project?