Skip to content
⌘ NSIS Forum Archive

SHGetFolderPath

4 posts

electronica#

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#
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#
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#
Ahh... I got it...

SetShellVarContext all
Messagebox MB_OK $APPDATA

Thanks for your help!