In visual studio under build you need to define a preprocessor variable that points to the location of the root directory. Example: DatabaseDir=..\Folder. Then under build events you need to write a Pre-build Event command line to have heat generate the wxs file every time you make a build. Example: "$(WIX)bin\heat.exe" dir "$(ProjectDir)..\Folder" -dr INSTALLLOCATION -cg NameofyourGroup -gg -sf -srd -var "var.DatabaseDir" -out "$(ProjectDir)..\wxsfolder\NameofyourGroup .wxs".
Hope this is what you were looking for. J On Fri, May 3, 2013 at 6:03 AM, Victor Mukherjee <victo...@insync.co.in>wrote: > Hi, > > I was looking for a way to add files from multiple directories with > HeatDirectory element. > Also, I would like to know if there is a way to append the fragment > generated by HeatDirectory to an existing .wxs file. > > Regards, > Victor Mukherjee > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users