Joined: Nov 02, 2005
Sun Jan 03, 2016 6:24 pm
I was having trouble getting my settings (graphics, sound, and controls) to save. After some troubleshooting, I found the issue so I figured I'd post it here in case anyone else runs into it.
My issue was caused by User Account Control (UAC) in Windows 7. I imagine this would also occur on Vista, 8, or 10. I thought it was odd that running COD elevated as an administrator didn't seem to help.
In any case, the issue I noticed was that COD was reading its configuration from the default C:\Program Files (x86)\Activision\Call Of Duty 2\ folder but was writing the changes to: %LOCALAPPDATA%\VirtualStore\Program Files (x86)\Activision\Call Of Duty 2\
(The %LOCALAPPDATA% folder is typically C:\Users\<username>\AppData\Local\ )
(I'm writing these paths based on memory from my laptop. I'll try to correct any mistakes once I get back on my desktop)
Since it was reading from one location, and writing to another, the new modifications were never found (causing me to reconfigure all settings each time I started up the game). The reason it was writing to the Virtual Store path instead of the default path is intended by UAC from what I read. Since a typical user does not have access to write to the Program Files directories, the results are automatically redirected to a user's personal folder by Windows for (seemingly half baked) backward compatibility.
My temporary solution was to adjust all my settings, then copy the files from the Virtual Store to the Program Files directory. I will attempt to make a command that will copy all the files and post it once I do.
I've read (but haven't attempted) that disabling UAC would also avoid this side effect. I have attempted to give myself access to the directory while UAC is enabled, but I haven't confirmed whether it helps or not just yet.