The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Windows < 8: User variables are not resolved correctly in Windows if they contain %APPDATA% or %LOCALAPPDATA%.

Posted by jpluimers on 2015/07/13

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:

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.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.