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

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

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

Postby Leigh10 » Fri Dec 06, 2013 2:25 pm

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

Postby FrancescoT » Mon Dec 09, 2013 11:56 am

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

Postby Leigh10 » Tue Dec 10, 2013 2:38 am

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

Postby FrancescoT » Tue Dec 10, 2013 11:28 am

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

Postby Leigh10 » Wed Dec 11, 2013 7:20 am

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

Thanks for your help.


Return to “Technical Support”

Who is online

Users browsing this forum: JohnGaver and 73 guests