Ok I have made the changes (I think) ... but it's still not working:
<Directory Id="PublicPicturesDir" Name="PubPic" LongName="PublicPicturesDir" >
<CustomAction Id="PublicPicturesDir" Property="PublicPicturesDir"
Value="[%public]\Pictures" />
<Custom Action="PublicPicturesDir" After="CostFinalize" /> ß in
InstallUISequence Only
Also I looked in the wix help file and I don't see a "Formatted" as a topic ?
-Jeff
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 9:59 AM
To: Jeff MacDuff
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to specify a envirorment variable dir
Jeff MacDuff wrote:
For the custom action I am using this: <CustomAction
Id="GetPublicPicturesFolder" Property="PublicPicturesDir"
Value="[%public%]\Pictures" />
Leave off the trailing % sign. See "Formatted" in the SDK for the syntax
details. The property id also needs to match the directory id, not the name.
What I see, is the "property" is set to \pictures at install time.. the
[%public%] is lost completely. Also orca doesn't show the dir in the propertys
section at all.
It won't appear in the Property table; it's just a property that's created at
install time, overwriting a property that MSI creates from the Directory table.
See "Using a Directory Property in a Path" in the SDK.
--
sig://boB
http://bobs.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users