electronica
19th September 2007 03:17 UTC
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.
Anders
19th September 2007 04:35 UTC
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
electronica
19th September 2007 10:34 UTC
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
19th September 2007 11:01 UTC
Ahh... I got it...
SetShellVarContext all
Messagebox MB_OK $APPDATA
Thanks for your help!