Try this, I have able to get it working for SQLExpress 2008 with VS2008. It copies to local folder.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <BootstrapperFile Include="Microsoft.Net.Framework.3.5.SP1"> <ProductName>.NET Framework 3.5</ProductName> </BootstrapperFile> <BootstrapperFile Include="Microsoft.Windows.Installer.4.5"> <ProductName>Windows Installer 4.5</ProductName> </BootstrapperFile> <BootstrapperFile Include="Microsoft.Sql.Server.Express.10.0"> <ProductName>Microsoft SQL Server 2008 Express Edition</ProductName> </BootstrapperFile> </ItemGroup> And <Target Name="AfterBuild"> <GenerateBootstrapper ApplicationFile="TestAppWixSetup.Msi" ApplicationName="TestApp 1.0" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Relative" CopyComponents="true" OutputPath="$(OutputPath)" Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\" /> </Target> Arun Perregattur -----Original Message----- From: Andreas Owen [mailto:ao...@1eeurope.ch] Sent: Monday, January 19, 2009 8:55 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] (no subject) I'm trying to ship sql express with my setup but it always wants to download the package instead. The options ComponentsLocation="Realtive" and CopyComponents="True" should do the trick but sqlepr32.exe isn't being copied anywhere. I'm using the latest wix 3 build and studio 2005. Below is my wix-project-file. Thanks for help. <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> <ProductVersion>3.0</ProductVersion> <ProjectGuid>{b4f200bb-bb08-4422-9f12-b73c06f2733f}</ProjectGuid> <SchemaVersion>2.0</SchemaVersion> <OutputName>EPCV2Mod.SCE.Setup</OutputName> <OutputType>Package</OutputType> <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets</WixTargetsPath> <SccProjectName>SAK</SccProjectName> <SccProvider>SAK</SccProvider> <SccAuxPath>SAK</SccAuxPath> <SccLocalPath>SAK</SccLocalPath> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <OutputPath>bin\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> <DefineConstants>Debug;BUILD=Debug</DefineConstants> <Cultures>en-US</Cultures> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>bin\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> </PropertyGroup> <ItemGroup> <Compile Include="Product.wxs" /> </ItemGroup> <ItemGroup> <BootstrapperFile Include="SCE.Microsoft.Sql.Server.Express.1.0"> <ProductName>SCE SQL Express</ProductName> </BootstrapperFile> </ItemGroup> <ItemGroup> <WixExtension Include="WixUIExtension"> <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath> </WixExtension> </ItemGroup> <ItemGroup> <Content Include="Bootstrapper\Packages\SceSqlExpress\en\package.xml" /> <Content Include="Bootstrapper\Packages\SceSqlExpress\product.xml" /> <Content Include="License.rtf" /> </ItemGroup> <ItemGroup> <Folder Include="Bootstrapper" /> <Folder Include="Bootstrapper\Packages" /> <Folder Include="Bootstrapper\Packages\SceSqlExpress" /> <Folder Include="Bootstrapper\Packages\SceSqlExpress\en" /> </ItemGroup> <Target Name="Bootstrapper"> <GenerateBootstrapper ApplicationName="PTS Supplier Document Exchange" ApplicationFile="$(TargetFileName)" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Realtive" CopyComponents="True" <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> <ProductVersion>3.0</ProductVersion> <ProjectGuid>{b4f200bb-bb08-4422-9f12-b73c06f2733f}</ProjectGuid> <SchemaVersion>2.0</SchemaVersion> <OutputName>EPCV2Mod.SCE.Setup</OutputName> <OutputType>Package</OutputType> <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets</WixTargetsPath> <SccProjectName>SAK</SccProjectName> <SccProvider>SAK</SccProvider> <SccAuxPath>SAK</SccAuxPath> <SccLocalPath>SAK</SccLocalPath> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <OutputPath>bin\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> <DefineConstants>Debug;BUILD=Debug</DefineConstants> <Cultures>en-US</Cultures> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>bin\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> </PropertyGroup> <ItemGroup> <Compile Include="Product.wxs" /> </ItemGroup> <ItemGroup> <BootstrapperFile Include="SCE.Microsoft.Sql.Server.Express.1.0"> <ProductName>SCE SQL Express</ProductName> </BootstrapperFile> </ItemGroup> <ItemGroup> <WixExtension Include="WixUIExtension"> <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath> </WixExtension> </ItemGroup> <ItemGroup> <Content Include="Bootstrapper\Packages\SceSqlExpress\en\package.xml" /> <Content Include="Bootstrapper\Packages\SceSqlExpress\product.xml" /> <Content Include="License.rtf" /> </ItemGroup> <ItemGroup> <Folder Include="Bootstrapper" /> <Folder Include="Bootstrapper\Packages" /> <Folder Include="Bootstrapper\Packages\SceSqlExpress" /> <Folder Include="Bootstrapper\Packages\SceSqlExpress\en" /> </ItemGroup> <Target Name="Bootstrapper"> <!-- Inputs="$(OutDir)$(TargetFileName)" Outputs="$(OutDir)\Setup.exe" Condition=" '$(OutputType)'=='package' " --> <GenerateBootstrapper ApplicationName="PTS Supplier Document Exchange" ApplicationFile="$(TargetFileName)" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Realtive" CopyComponents="True" Culture="en-US" OutputPath="$(OutputPath)" /> </Target> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets" /> <PropertyGroup> <BuildDependsOn>$(BuildDependsOn);Bootstrapper</BuildDependsOn> </PropertyGroup> </Project> Culture="en-US" OutputPath="$(OutputPath)" /> </Target> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets" /> <PropertyGroup> <BuildDependsOn>$(BuildDependsOn);Bootstrapper</BuildDependsOn> </PropertyGroup> </Project> ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users