PDA

View Full Version : Appdata


IB53
10th December 2009, 18:40
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
10th December 2009, 19:08
You can read the appdata path from the registry.

It's located under:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Anders
10th December 2009, 19:35
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