Community Forums
Results 1 to 4 of 4

Thread: Predefined folder for PUBLIC Documents?

  1. #1
    Join Date
    Jul 2009
    Posts
    12

    Predefined folder for PUBLIC Documents?

    I'm working on a project that requires the installation of files to the (My) Documents folder. Obviously on Windows 7 this is a library that actually consists of two folders - C:\Users\Public\Documents and C:\Users\Username\Documents

    I tried using [PersonalFolder], but that puts files into Username\Documents but my program can not detect them there - it requires them to be installed in the Public\Documents folder.

    How can I achieve this? Is there a predefined folder for this? If not, can I create one?

  2. #2
    Join Date
    Jul 2009
    Posts
    12
    Just answered my own question -

    Use the predefined folder [ALLUSERSPROFILE], with a subfolder inside called 'Documents'.

    That equates to C:\Users\Public\Documents

  3. #3
    Join Date
    Dec 2012
    Posts
    1
    Quote Originally Posted by reddragon105 View Post
    Just answered my own question -

    Use the predefined folder [ALLUSERSPROFILE], with a subfolder inside called 'Documents'.

    That equates to C:\Users\Public\Documents
    I know this is an old post but I hope this response will help someone else.

    [ALLUSERSPROFILE] doesn't seem to always equate to "C:\Users\Public". Microsoft states that in post-XP versions of Windows (Vista, 7, 8.1, 10), %ALLUSERSPROFILE% refers to %ProgramData% -- "C:\ProgramData". (https://www.microsoft.com/security/p....aspx#allusers)

    Even though on some machines [ALLUSERSPROFILE] refers to "C:\Users\Public", it's not always the case.

  4. #4
    Join Date
    Apr 2008
    Posts
    125

    [ALLUSERSPROFILE] and %ALLUSERSPROFILE%

    I thought %ALLUSERSPROFILE% was a Windows environment variable and [ALLUSERSPROFILE] was a predefined folder custom to InstallShield. The latter is working for me. Are you able to use the [ALLUSERSPROFILE] predefined folder?

    Going back to look at this in my install, I have a question of why certain predefined folders are greyed out. Is it because they are no longer supported in version 2015? If that is the case, then I have the same issue with copying/installing files to C:\Users\Public\Public Documents.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •