CopyFile can be used to copy existing files from a known location by referring to that location or files being installed by referring to the File Id's. It's right there in the first line of the description "Copy or move an existing file on the target machine, or copy a file that is being installed, to another destination". Just because it says "target machine" doesn't mean it has to refer to something on the actual machine, it can refer to your CD/DVD/SFX archive etc. if you write the code properly.
Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Sanjay Poria [mailto:sanjay.po...@xanalys.com] Sent: 22 March 2010 12:44 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Installing from embedded CAB file and Folder >From what I can tell CopyElement only copies files if they are already in the source CAB (or already installed from it). I don't think that gives me what I require. Bob's suggestion of removing the @Cabinet or @EmbedCab attributes to create "loose files" would work but then every installation file would have to be taken from this "loose file structure". However, I want a hybrid solution where some of source installation files are taken from a CAB file and others are taken from the source location as "loose files". Is that possible? Thanks sanjay > -----Original Message----- > From: Pally Sandher [mailto:pally.sand...@iesve.com] > Sent: 16 March 2010 14:01 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Installing from embedded CAB file and Folder > > See the CopyFile Element -> > http://wix.sourceforge.net/manual-wix3/wix_xsd_copyfile.htm > > > Palbinder Sandher > Software Deployment & IT Administrator > T: +44 (0) 141 945 8500 > F: +44 (0) 141 945 8501 > > http://www.iesve.com > **Design, Simulate + Innovate with the <Virtual Environment>** > Integrated Environmental Solutions Limited. Registered in Scotland No. > SC151456 > Registered Office - Helix Building, West Of Scotland Science Park, > Glasgow G20 0SP Email Disclaimer > > > -----Original Message----- > From: Sanjay Poria [mailto:sanjay.po...@xanalys.com] > Sent: 16 March 2010 12:16 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Installing from embedded CAB file and Folder > > Hi, > > I wish to create an msi installer using wix such that most of the > application files will be embedded into the msi (in the usual way ). > However, due to our build process, I wish certain parts of the > installation to be taken from a folder relative to the msi. So after > creation of the msi, I hope to create a distribution containing the > following: > > myproduct.msi > dir1/ > file1_1 > file1_2 > dirn/ > filen_1 > filen_2 > > most of the application will be embedded in the msi CAB file but I > also want to install files from (dir1...dirn). How do I specify this > using Wix because: > > <Media Id="1" Cabinet="Product.cab" EmbedCab="yes"/> > > Will mean that all the File elements will be embedded into the cab. > Basically I wish to have "special" file elements that are to be > installed but are not taken from the embedded CAB file. > > any help is appreciated > sanjay > > > ---------------------------------------------------------------------- > - > - > ------ > Download Intel® 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® 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® 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® 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