PDA

View Full Version : Location of Folder "Documents and Settings\All Users\Documents"


ttaut
09-25-2008, 11:19 AM
What is the FolderID for following location:

"C:\Documents and Settings\All Users\Documents\" ?

I want to install some files there instead of the current user's "My Documents" folder.

I found an article about WixQueryOsDirs properties with the folder id WIX_DIR_COMMON_DOCUMENTS but do not know how to access this.

Thanks,

Thomas

jassing
09-25-2008, 11:30 AM
What is the FolderID for following location:

"C:\Documents and Settings\All Users\Documents\" ?

I want to install some files there instead of the current user's "My Documents" folder.

I found an article about WixQueryOsDirs properties with the folder id WIX_DIR_COMMON_DOCUMENTS but do not know how to access this.

Thanks,

Thomas


you can Shell.GetFolder(SHF_COMMON_DOCUMENTS); (which is 46)
Otherwise, you just reference the folder id if in wix...

JDog37
09-25-2008, 05:06 PM
This was help full for me: http://www.indigorose.com/forums/showthread.php?t=21463&highlight=folder+codes

Shows all the codes for different folders. :D

jassing
09-25-2008, 05:21 PM
This was help full for me: http://www.indigorose.com/forums/showthread.php?t=21463&highlight=folder+codes

Shows all the codes for different folders. :D

Most of the common ones are documented in the help file...

JDog37
09-25-2008, 09:22 PM
But sometimes it is confusing. I LOVE AMS but sometimes its confusing!! :rolleyes

ttaut
09-26-2008, 12:37 PM
you can Shell.GetFolder(SHF_COMMON_DOCUMENTS); (which is 46)
Otherwise, you just reference the folder id if in wix...

How do I use Shell.GetFolder to transfer the results into the folder list which I want to use as destination for my files?

Thomas