Skip to content
⌘ NSIS Forum Archive

Appdata

3 posts

IB53#

Appdata

I need to build an installer where the default folder is created under $APPDATA. I see tho from the docs that this variable is only set if IE4 or better is installed. I assume that if this is not installed that $APPDATA will be empty(?) so is there a way to locate that folder (that works in at least XP, Vista, WIN7, pref any version of Windows) without IE?? I guess I really just need any folder to which the user has full access rights which will always exist.

Thanks
Ian
Koopa#
You can read the appdata path from the registry.

It's located under:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Anders#
You have nothing to worry about, the IE4 part only applies to Win95 and NT4 (IE4 actually also updates system dlls) Win98/2000 and later have the support built-in