Older Windows versions than 8.x will not correctly expand %APPDATA% or %LOCALAPPDATA% in environment variables: User variables are not resolved correctly in Windows..
This even happens when the registry storage of the environment variables are marked as REG_EXPAND_SZ under these keys:
- Global:
- Local:
Basically there are four categories of Windows versions:
- For Windows 10.x this is fixed.
- For Windows 8.x and Windows Server 2012 R2, there are updates in KB2919355.
- For Windows 7.x and Windows Server 2008 R2, there is a hotfix.
- For older Windows versions, there is no solution.
–jeroen
via: User variables are not resolved correctly in Windows.
Filed under: Development, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista
