Locate "c:\\Users\\Public" folder

Got a problem you cannot solve? Try here.
Post Reply
Leigh10
Posts: 3
Joined: Fri Dec 06, 2013 2:05 pm

Locate "c:\\Users\\Public" folder

Post by Leigh10 »

I am using IA Developer 8. Could someone please advise how to locate "c:\\Users\\Public" folder? I understand that I can use System->Profile to extract “c\\Users” but not the public part. The installation will have to be applied on German/French/Spanish etc OS, so I can’t just add “Public” to “c\\Users” considering that it will be OS dependent.

Thanks in advance.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Locate "c:\\Users\\Public" folder

Post by FrancescoT »

Dear Leigh10,

try with acquiring the path to "document folder" for all users and then split the returned string.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Leigh10
Posts: 3
Joined: Fri Dec 06, 2013 2:05 pm

Re: Locate "c:\\Users\\Public" folder

Post by Leigh10 »

Dear Francesco

Thanks for your reply.

The predefined system locations doesn’t include "document folder". Could you please advise how to get the "document folder"?

Regards
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Locate "c:\\Users\\Public" folder

Post by FrancescoT »

Dear Leigh10,

I am referring to "My->My Folder location" available with "Get Common Folder Location" command with having "Get for All Users" flag checked.

Honestly, I don't remember if the same was already available with IA 8.

Otherwise, you could create a custom DLL or an EXE that uses the "SHGetKnownFolderPath" WIN API to return that path.

hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Leigh10
Posts: 3
Joined: Fri Dec 06, 2013 2:05 pm

Re: Locate "c:\\Users\\Public" folder

Post by Leigh10 »

The “Get Common Folder Location” is not available in IA8 unfortunately. Will look into alternatives.

Thanks for your help.
Post Reply