Hi, I am also is the Same exact Situation in which you are, I am using Heat to generate the Fragment file to be able to include in my Build which has to be dynamic , so i foudnt eh best way to do it by using heat, but , i manually had to update the file and add directoryref tag and Also change the Componentgroup name as per the directoryname. Here is wht i am doing.
I run heat on 4 different directory locations, because of this I run into the following situation. 1) Mannually adding Directoryref tag between <Fragment>.......</Fragment> 2) because i am running heat on 4 diffrent directory, the name of the Component Group is always coming same like <ComponentGroup Id="ComponentGroup1">, so name of the component group also i have to mannally updated so it can be used in the featuretree. My msi package needs to have 4 features based on the directories, that is why i am using heat 4 diffrent times on these folders to generate .wxs file , But because of this limitation m not able to make is a part pf build. M sure there has to be some way people are doing it. pls anybody share some ideas? Is there a way we could use heat to make components groups as per the directory it harvests. and Dfox let me point you to another future problem which i found after getting through this , If there is a file having same name in two diffrent Fragment files that is going to break the build as well in future. Let me know peple thanks. dfox wrote: > > Hi, > > I am new to WiX and Heat, I need to make a dynamic linking of files (I > think the best solution as mallow, but i guess this can also be done using > Heat). My problem is how to use the output of Heat without modifying the > file. > > I need to use heat in our build system, i just need to harvest directories > for the project. > The output of the Heat looks like this: > <?xml version="1.0" encoding="utf-8"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > <Fragment> > <Directory Id="dir1" Name="test"> > <Component Id=... > <File Id=... > </Component> > ... > ... > </Directory> > </Directory> > </Fragment> > <Fragment> > <ComponentGroup Id="ComponentGroup1"> > <ComponentRef Id=... > <ComponentRef Id=... > ... > </ComponentGroup> > </Fragment> > </Wix> > > Is it possible not to modify this file? We need to update this file every > time we build, meaning we need to run Heat every time we build, so all > changes made will be lost. > > My question is how to use this file 'coz i'm getting: > error CNDL0205: The Directory with Id 'dir1' is not a valid root > directory. Blah blah blah > > I fixed this by change <Directory Id="dir1" name="test> to <DirectoryRef > Id="INSTALLDIR"> > > INSTALLDIR is inside the Directory with Id = TargetDir > What we want is to use this file without having to change/modify 'coz when > we run Heat again, the changes will be lost. BTW, we use msbuild for this. > > Any help or idea is highly appreaciated. Thanks in advance! More Power! > > Best Regards, > dfox > -- View this message in context: http://n2.nabble.com/Help-using-Heat-of-WiX-v3-tp711926p1082769.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users