Can't find a constant for %LOCALAPPDATA%

You have trouble using InstallForge? Then this is the right place for you.
Post Reply
Posts: 1
Joined: Wed Feb 08, 2017 1:13 pm

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

but it's not gonna work for winxp. any ideas?
Posts: 1
Joined: Wed Apr 03, 2019 7:43 pm

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?

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
Post Reply