Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to retrieve some user folders on windows 7


1 reply to this topic

thanatos83

thanatos83
  • Full Members
  • 40 posts

Posted 04 November 2011 - 18:24

Hi all.

I Walked on installshield forum site but not luck. I know that you can use FOLDER_DESTOP to retrieve the full qualified path of that directory.

But I can't find, who is the variable to obtain the full qualified path of personal folder. I see in documentation that you can use FOLDER_PERSONAL, but the final directory is "Documents".

I only need to delete a subfolder in "donwload" on windows 7.

The function "GetFolderNameList" maybe help me.

-----------------------------------------------------------
PD. Finally I do it with "GetEnvVar", I don't know if there's another variable that can I use it.

Edited by thanatos83, 06 November 2011 - 09:36.


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 07 November 2011 - 16:25

I haven't yet had to deal with managing the new Downloads folder from one of my installs, but based on my research, you need to call shell32.dll's SHGetKnownFolderPath function and pass it the desiganted KNOWNFOLDERID value of "FOLDERID_Downloads".
user posted image