Hi, And with this :
*heat.exe dir "$(SolutionDir)MyProject" -ag -sfrag -srd -var "var.MyProject.ProjectDir" -out $(ProjectDir)HarvestedFiles.wxs"* Or you could add a subdir "Sources" in your SolutionDir : C:\....\SolutionDir\MyProject\Sources\MyDirectory *heat.exe dir "$(SolutionDir)MyProject\Sources" -ag -sfrag -srd -var "var.MyProject.ProjectDir" -out $(ProjectDir)HarvestedFiles.wxs"* Le %:Date:, Sam Boman <s...@samb.se> a écrit: > Hi, > > I have a project structure which is like this: > *C:\....\SolutionDir\MyProject\MyDirectory* > > In a pre-build event I use this: > *heat.exe dir "$(SolutionDir)MyProject\MyDirectory" -ag -sfrag -srd -var > "var.MyProject.ProjectDir" -out $(ProjectDir)HarvestedFiles.wxs"* > > The output in HarvestedFiles.wxs contains (id's removed...): > <Component Id="" Guid="*"> > > <File Id="" KeyPath="yes" > Source="$(var.MyProject.ProjectDir)\FileOne.txt" /></Component> > > But I expect it to be (with the MyDirectory folder included in Source): > > <Component Id="" Guid="*"> <File Id="" KeyPath="yes" > Source="$(var.MyProject.ProjectDir)\*MyDirectory\*FileOne.txt" > /></Component> > > How do I do this? I don't want to specify a fixed path, I prefer to > use dynamic var's. > > //Sam > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, Gabriel "I know no way of judging the future but by the past." Patrick Henry "You can never plan the future by the past." Edmund Burke ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users