Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th August 2012, 18:51   #1
hiigara
Junior Member
 
Join Date: Aug 2012
Posts: 1
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
hiigara is offline   Reply With Quote
Old 6th August 2012, 19:06   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
$LOCALAPPDATA is what you want for XP and for Vista/7 ($LOCALAPPDATA was added in 2005).

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 6th August 2012, 22:45   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,814
It is documented as Win2000+ (I don't remember if you can make it work with shfolder.dll on Win9x...)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump