Yes, Add <BaseInputPaths> in a <PropertyGroup> in your wix project file and and SourceDir will look there! >From my project file:
<PropertyGroup> <WixToolPath>..\BuildTools\WiX\3.0.5419.0\</WixToolPath> <WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath> <WixTasksPath>wixtasks.dll</WixTasksPath> <DefineSolutionProperties>False</DefineSolutionProperties> <BaseInputPaths>..\Build\Release</BaseInputPaths> <DefineConstants>$(DefineConstants);BuildVersion=$(Version);ProductDescription=$(Description)</DefineConstants> </PropertyGroup> Regards, Asker -----Original Message----- From: Trevor [mailto:tre...@rottdog.com] Sent: den 7 december 2009 05:28 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Cabinet does not contain any files Is there any way to accomplish this via a Visual Studio build? -----Original Message----- From: Sascha Beaumont [mailto:sascha.beaum...@gmail.com] Sent: Sunday, December 06, 2009 7:03 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Cabinet does not contain any files Unfortunately the documentation is a bit vague on this particular subject. Basically you can use one or more "-b" parameter's with Light (http://wix.sourceforge.net/manual-wix3/light.htm) to indicate what directories should be searched when looking for files in 'SourceDir' Sascha On Mon, Dec 7, 2009 at 5:04 AM, Trevor <tre...@rottdog.com> wrote: > I'm using a fragment outputted from heat as my project includes a few > thousand files, so in VS I have a sourcefile.wxs: > > > > <?xml version="1.0" encoding="utf-8"?> > > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > > <Fragment> > > <DirectoryRef Id="TARGETDIR"> > > <Component Id="cmp1CBCC87C844A9EF6FA24D408C709AE73" > Guid="*"> > > <File Id="fil310E88E9B29A283EC44C6BB61C2F4128" > KeyPath="yes" Source="SourceDir\Default.aspx" /> > > </Component> > > > > What determines what the folder "SourceDir" is? Since this is an > ASP.NET project, it either needs to capture the output of the build > (how?) or capture the output of the Publish I've previously done to the > local machine. > > > Here is part of my Product.wxs: > > > > <Directory Id="TARGETDIR" Name="SourceDir"> > > <Directory Id="INSTALLDIR" Name="Setup"> > > <Component Id="PrimaryComponent" Guid=""> > > <CreateFolder /> > > > > </Component> > > </Directory> > > </Directory> > > > > <Feature Id="ProductFeature" Title="Setup" > ConfigurableDirectory="INSTALLDIR" Level="1"> > > <ComponentRef Id="PrimaryComponent"/> > > </Feature> > > </Product> > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users