Page 1 of 1

Can't find a constant for %LOCALAPPDATA%

Posted: Wed Feb 08, 2017 1:22 pm
by -johndoe
As the title says, i can't find a constant for %LOCALAPPDATA% (which is %username%/AppData/Local on Windows Vista and above and Documents and Settings/default user/Local Settings/ for Windows XP and below). I can easily make it install into appdata/local with a workaround like this;

Code: Select all

<appdata>\..\Local\desireddirectory
but it's not gonna work for winxp. any ideas?

Re: Can't find a constant for %LOCALAPPDATA%

Posted: Wed Apr 03, 2019 8:03 pm
by WahooDevColton
This is also important to us. Are there any plans to support a <LocalAppData> variable? Also, has anyone else found a different workaround for this?

edit:
I found another workaround of adding my own variable using the
HKEY_CURRENT_USER\Volatile Environment::LOCALAPPDATA registry
and using "<AppData>\..\Local" as the default value, but I still feel like a native <LocalAppData> variable would be warranted.

p.s. I also don't know if my new workaround would work for windows xp either