Something I've never had to use before but looking at my own machine (XP64) there's a directory at C:\Documents and Settings\All Users\Documents\ & on my Vista64 VM (potentially Windows 7 too but I don't have a machine here to check it) there exists a directory at C:\Users\Public\Documents\ which is what I'm guessing you're trying to use. However as you say, there appears to be no pre-defined Property to access these directories in the Property Reference -> http://msdn.microsoft.com/en-us/library/aa370905.aspx
You could use a couple of type 51 custom actions to set your own Property depending on what VersionNT is set to e.g. <CustomAction Id="SetPublicFolderXP" Property="PublicFolder" Value="C:\Documents and Settings\All Users\Documents\" /> <CustomAction Id="SetPublicFolderVista" Property="PublicFolder" Value="C:\Users\Public\Documents\" /> <Custom Action="SetPublicFolderXP" Before="CostInitialize" ><![CDATA[VersionNT<600]]></Custom> <Custom Action="SetPublicFolderVista" Before="CostInitialize" ><![CDATA[VersionNT>=600]]></Custom> You should then be able to use the PublicFolder Property as a Directory Id as you would like. There may be a more elegant solution to this such as an undocumented Property which references this location but that's how I would attempt to solve this. The only problem is that if a user doesn't have their profiles in the default location, it will fall down. In which case you could try using CommonAppDataFolder and extrapolating the directory from there e.g. [CommonAppDataFolder]..\Documents\ but I'm not sure if you are allowed to use things like .. in a Property. If that isn't possible you could try using WindowsVolume & adding the rest of the path e.g. [WindowsVolume]Documents and Settings\All Users\Documents\ but again I'm not sure if profiles & operating system necessarily need to be on the same volume. Good luck. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: 21 July 2009 14:54 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Install files to Public documents folder I dont know if this would help but Ive found it best to install sample files along with the application and have the application make copies of them into a folder of the user's choice, or to their my documents folder, when the application runs for the first time, or when they select some kind of "start tutorial" function. This has the advantage that a repair or upgrade or patch wont overwrite the users changes; multiple users can use unmodified versions of the samples and you dont need to work out how to find the public documents folder :) -----Original Message----- From: Ondrej Zarevucky [mailto:ondrej.zarevu...@fine.cz] Sent: 21 July 2009 14:44 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Install files to Public documents folder Hi, I'm trying to install a per-machine application and the best location for the sample documents seems to be the Public Documents folder (or All Users' Documents on Windows XP), but I'm not able to find out, how to reference Public Documents folder in WiX/MSI. According to: http://msdn.microsoft.com/en-us/library/aa370806(VS.85).aspx <http://msdn.microsoft.com/en-us/library/aa370806%28VS.85%29.aspx> the PersonalFolder property points to the Documents folder of current user even when ALLUSERS is set to 1 :-( I coudn't find any other property which will resolve to Public Documents folder. Can someone hint me, how to install these public/shared samples there? Thank you Ondrej Zarevucky ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users