Archive: Does NSIS define $LOCALAPPDATA when running on XP?


Does NSIS define $LOCALAPPDATA when running on XP?
XP does not have the LOCALAPPDATA environment variable.

When running on XP I want to install in:
%USERPROFILE%\Local Settings\Application Data

When running on windows 7 and vista I want:
%USERPROFILE%\AppData\Local

Will
InstallDir "$LOCALAPPDATA\${app_name}"

use %USERPROFILE%\Local Settings\Application Data\${app_name} on Windows XP?

(Obviously I don't have access to an XP machine at the moment to test this)

Thanks


$LOCALAPPDATA is what you want for XP and for Vista/7 ($LOCALAPPDATA was added in 2005).

Stu


It is documented as Win2000+ (I don't remember if you can make it work with shfolder.dll on Win9x...)