Can't find a constant for %LOCALAPPDATA%

You have trouble using InstallForge? Then this is the right place for you.

-johndoe
Posts: 1
Joined: Wed Feb 08, 2017 1:13 pm

Can't find a constant for %LOCALAPPDATA%

Postby -johndoe » Wed Feb 08, 2017 1:22 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

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

WahooDevColton
Posts: 1
Joined: Wed Apr 03, 2019 7:43 pm

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

Postby WahooDevColton » Wed Apr 03, 2019 8:03 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?

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

Who is online

Users browsing this forum: No registered users and 1 guest