Old 23rd November 2009, 13:18   #1
Sedmy
Junior Member
 
Join Date: Nov 2009
Posts: 2
Common application data folder

Hi,

Is there a way how to get system "Common app. data" folder? In .net framework it is Environment.GetFolderPath(SpecialFolder.CommonApplicationData).

Thanks

Sedmy
Sedmy is offline   Reply With Quote
Old 23rd November 2009, 15:13   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
http://nsis.sourceforge.net/Docs/Chapter4.html#4.2.3

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd November 2009, 15:21   #3
Sedmy
Junior Member
 
Join Date: Nov 2009
Posts: 2
So I think the correct way is:

SetShellVarContext all
StrCpy $0 $APPDATA

I hope that it will work on all win systems ;-)

Thanks,

Sedmy
Sedmy is offline   Reply With Quote
Old 23rd November 2009, 18:40   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
Originally posted by Sedmy
So I think the correct way is:

SetShellVarContext all
StrCpy $0 $APPDATA

I hope that it will work on all win systems ;-)

Thanks,

Sedmy
It will work on all Windows systems where a common Application Data folder exists. The manual explains the requisites.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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