Hey Nick,

Have you looked into a custom heat.exe extension? You would only have to
create a mutator that added the disk Id of your choice. It would also give
you the ablitity to do some more advanced manipulation.

http://blogs.msdn.com/icumove/archive/2009/07/02/WiX-Heat-Extension_3A00_-Setting-Up-a-Custom-Extension-Project.aspx

Thanks,

Brian Rogers
"Intelligence removes complexity." - Me
http://blogs.msdn.com/icumove <-- NEW


On Mon, Jul 6, 2009 at 10:38 AM, Rob Mensching <r...@wixtoolset.org> wrote:

> What about using an XSL transform to modify the heat output?
>
> Nick Ball wrote:
> > Hi,
> >
> >
> >
> > I'm creating a wixlib, and then using it in my main setup program, but
> > I'd like the lib to go into a separate cab file. Because the contents of
> > the lib have been generated by heat, I've put the disk ID on the
> > directory, rather than each component. This code, understandably, does
> > not work:
> >
> >
> >
> >     <Fragment>
> >
> >         <Media Id="2" Cabinet="file.cab" EmbedCab="no"/>
> >
> >
> >
> >         <DirectoryRef Id="INSTALLFOLDER">
> >
> >             <Directory Id="Test" Name="Test" DiskId="2">
> >
> >             </Directory>
> >
> >         </DirectoryRef>
> >
> >     </Fragment>
> >
> >
> >
> > Heat output:
> >
> >
> >
> >     <Fragment>
> >
> >         <DirectoryRef Id="Test">
> >
> >             <Component Id="File" Guid="*">
> >
> >                 <File Id="File" KeyPath="yes"
> > Source="$(var.Folder)\file" />
> >
> >             </Component>
> >
> >         </DirectoryRef>
> >
> >     </Fragment>
> >
> >
> >
> > If I edit the heat output directly and specify the diskid, it does work.
> >
> >     <Fragment>
> >
> >         <DirectoryRef Id="Test" DiskId="2">
> >
> >             <Component Id="File" Guid="*">
> >
> >                 <File Id="File" KeyPath="yes"
> > Source="$(var.Folder)\file" />
> >
> >             </Component>
> >
> >         </DirectoryRef>
> >
> >     </Fragment>
> >
> >
> >
> > But I really want to be able to regenerate the file that heat produces
> > without any subsequent editing. Is there a way of doing this? One
> > solution that I keep wondering about is changing the output of heat to
> > an include file. This would get round a bunch of problems I've been
> > having. Could that be added as a feature request?
> >
> >
> >
> > Regards
> >
> >
> >
> > Nick
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to