Old 19th September 2007, 02:17   #1
electronica
Junior Member
 
Join Date: Oct 2003
Posts: 5
SHGetFolderPath

The release notes of 2.29 say...

Use SHGetFolderPath where available to better support all users' folders.

How do I call this? I couldn't find anything in the documentation about this call.

Is this a System call?

Why am I able to call it now?

Any help would be greatly appreciated.
electronica is offline   Reply With Quote
Old 19th September 2007, 03:35   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
you don't need to call it, nsis does this for you when using the folder constants ($startmenu and friends) and SetShellVarContext is set to all

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th September 2007, 09:34   #3
electronica
Junior Member
 
Join Date: Oct 2003
Posts: 5
The nFolder I need to find is CSIDL_COMMON_APPDATA.

On Vista, this is typically...

c:\programdata

and on XP it is...

c:\documents and settings\All Users\Application Data

How can I find these folders?
electronica is offline   Reply With Quote
Old 19th September 2007, 10:01   #4
electronica
Junior Member
 
Join Date: Oct 2003
Posts: 5
Ahh... I got it...

SetShellVarContext all
Messagebox MB_OK $APPDATA

Thanks for your help!
electronica 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