I use the following command to auto create list of files for setup.

heat.exe dir C:\TEMP\Release\ -var var.DropPathRS -dr Test -gg -g1 -ke -cg
ComponentGroupName -nologo -srd -sfrag -template fragment -out
C:\TEMP\Out.wxs

It will create file like(see below). Then I just build project.

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <Fragment>
        <DirectoryRef Id="Test">
            <Component Id="cmpB7B..." Guid="...">
                <File Id="fil16..." KeyPath="yes"
Source="$(var.DropPath)\Filename1.ext" />
            </Component>
            <Component Id="cmpD1F..." Guid="...">
                <File Id="fil00..." KeyPath="yes"
Source="$(var.DropPath)\Filename2.ext" />
            </Component>..........

-----Original Message-----
From: Kristoffer Danielsson [mailto:kristoffer.daniels...@live.se] 
Sent: Tuesday, March 16, 2010 6:47 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Adding multiple files to component


Heat is described here: http://www.tramontana.co.hu/wix/lesson6.php

 

heat dir folder -cg SampleGroup -out SampleGroup.wxs

 
> From: cameron.ker...@philips.com
> To: wix-users@lists.sourceforge.net
> Date: Tue, 16 Mar 2010 16:43:52 +0100
> Subject: Re: [WiX-users] Adding multiple files to component
> 
> Yes, I understand that you can put multiple files in a component, but that
means I have to write the Source for each of the files, and spell out each
file xml element. I basically just want to set the Source to a directory and
include all files under that directory. Or some process that converts a
directory to <File Id="A" Source="A.txt"> <File Id="B" Source="B.txt"> 
> 
> I can't be typing this each and everytime.
> 
> Heat tool. I'll look into it. 
> 
> Do you know of any websites with tutorial on it? Any way to integrate into
MSBuild?
> 
> -----Original Message-----
> From: Kristoffer Danielsson [mailto:kristoffer.daniels...@live.se] 
> Sent: Tuesday, March 16, 2010 11:36 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Adding multiple files to component
> 
> 
> I'm also a newbie, so my solution below could be "wrong". However, it
works:
> 
> 
> 
> <Directory Id="SourceDirectoryDir" Name="Source">
> 
> <Component Id="BunchOfFiles" Guid="YOURGUID">
> 
> <File Id="FileX" Source="1.htm">
> 
> <File Id="FileY" Source="2.htm">
> 
> <File Id="FileZ" Source="3.htm">
> 
> </Component>
> 
> </Directory>
> 
> 
> Something like that. However, I do remember that this technique is not
recommended - for some reason I don't know...
> 
> 
> > From: cameron.ker...@philips.com
> > To: WiX-users@lists.sourceforge.net
> > Date: Tue, 16 Mar 2010 16:27:31 +0100
> > Subject: [WiX-users] Adding multiple files to component
> > 
> > I'm sure this question has been asked before in some variety but
searching the mail archives on SourceForge is awful. I am also new to WIX
> > 
> > Anyways, in my build process I am outputting a bunch of files to a
directory. I want all those files added to a component in my WIX project. To
build my WIX project, during my build process I just build my WIX installer
solution and it creates the setup package. So besides manually adding all
these files (~50) to my component by hand, I don't understand how to
accomplish this. All the tutorials just use one file in there examples. No
one uses adding files from a source directory.
> > 
> > Thanks!
> > 
> > ________________________________
> > The information contained in this message may be confidential and
legally protected under applicable law. The message is intended solely for
the addressee(s). If you are not the intended recipient, you are hereby
notified that any use, forwarding, dissemination, or reproduction of this
message is strictly prohibited and may be unlawful. If you are not the
intended recipient, please contact the sender by return e-mail and destroy
all copies of the original message.
> >
----------------------------------------------------------------------------
--
> > Download Intel&#174; Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> _________________________________________________________________
> Mejla i busskön! Hotmail i mobilen
>
http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
>
----------------------------------------------------------------------------
--
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
>
----------------------------------------------------------------------------
--
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
_________________________________________________________________
Hotmail i mobilen!
http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
----------------------------------------------------------------------------
--
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to