https://bugs.winehq.org/show_bug.cgi?id=43423
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #5 from Stefan Dösinger stefan@codeweavers.com --- So I looked into what the correct way might be to set this. From searching the Windows registry it seems that HKLM/Software/Microsoft/Windows NT/CurrentVersion/ProfileList, value name ProgramData contains the value that gets assigned to %ProgramData%. set_additional_environment in kernel32/process.c already handles other values in this registry key.
Finally https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457(v=vs.85).a... suggest that FOLDERID_ProgramData now points to %ProgramData% instead of %ALLUSERSPROFILE%\Application Data
What I am not sure about is how the existing values in the above mentioned registry key are created. I can create the ProgramData value via loader/wine.inf, but I am not convinced this is the correct way. shell32/shellpath does not expand environment variables, so changing the existing "Application Data" string does not do the right thing, and having the string redundantly doesn't seem to be the correct approach either.