Bump since this is a top google hit for the error "Couldn’t set association for project. Check the file is writeable”. Spaces in the top level directory name can cause this misleading error message.
For example:
“E:\Projects\MyGame” - generate project files works, no errors
“E:\Projects\My Game” - generate project files fails, with above error message