The documentation states:

"The easiest way to create a new .wixproj for your installer is to WiX in 
Visual Studio because it automatically generates standard msbuild project files"

I have a project file that I have been using for a number of years with WiX 
2.0. I want to "convert" the project file to use WiX 3.0 libraries as well as 
the converted  .wxs file. My project currecntly looks like:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"; 
DefaultTargets="Build">
  <PropertyGroup>
    <Configuration Condition="$(Condition)==''">Release</Configuration>
    <PackageRoot Condition="$(PackageRoot)==''">..\PACKAGE\</PackageRoot>
    <IntermediateOutputPath 
Condition="$(IntermediateOutputPath)==''">$(PackageRoot)WiX_Temp\$(Configuration)\</IntermediateOutputPath>
    <OutputPath 
Condition="$(OutputPath)==''">$(PackageRoot)$(Configuration)\</OutputPath>
  </PropertyGroup>
       <!--
       -->
       <UsingTask 
TaskName="BuySeasons.WebServices.SqlBuildTasks.StoredProcedureScript"
                        
AssemblyFile="Source\Tools\SqlBuildTasks\bin\Debug\SqlBuildTasks.dll"/>
       <UsingTask TaskName="BuySeasons.WebServices.SqlBuildTasks.TableScript"
                        
AssemblyFile="Source\Tools\SqlBuildTasks\bin\Debug\SqlBuildTasks.dll"/>
       <UsingTask TaskName="BuySeasons.WebServices.SqlBuildTasks.TriggerScript"
                        
AssemblyFile="Source\Tools\SqlBuildTasks\bin\Debug\SqlBuildTasks.dll"/>
       <!--===============================================================
    These must be declared BEFORE the statement
    that imports the wix.targets file
   ==================================================================-->
  <PropertyGroup>
    <!-- The location pointing where WiX is installed -->
    <ToolPath>C:\Program Files\WiX\</ToolPath>
    <!-- Required Property by WiX -->
    <OutputName Condition="$(OutputName)==''" 
>$(Configuration)BsiServices</OutputName>
    <!-- Required property by WiX -->
    <OutputType Condition="$(OutputType)==''" >package</OutputType>
    <!-- Input path to source files  -->
    <BaseInputPath  
Condition="$(BaseInputPath)==''">$(PackageRoot)$(Configuration)</BaseInputPath>
    <DefineConstants>Configuration=$(Configuration)</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <!-- Required WiX item.
      Files in this item are sent to the Candle tool.
    -->
    <Compile Include="$(BaseInputPath)\BsiServices.wxs"/>
  </ItemGroup>
  <PropertyGroup>
    <!-- Required to display strings in proper localized form -->
    <LocalizedStringFile>$(ToolPath)WixUI_en-us.wxl</LocalizedStringFile>
  </PropertyGroup>
  <ItemGroup>
    <WixLibrary 
Include="$(ToolPath)wixui.wixlib;$(ToolPath)wixca.wixlib;$(ToolPath)sca.wixlib"/>
  </ItemGroup>

  <Import Project="$(ToolPath)wix.targets"/>
  
<!--================================================================================
       Call this target instead of the Build target because this will output 
the names
       Of the generated install files.
  
====================================================================================-->
       <Target Name="RunTests">
              <Exec Command='MSTest.exe /testmetadata:BuySeasonsServices.vsmdi 
/testlist:"Build Test List"' />
              <!--
           -->
       </Target>
       <Target Name="BuildStoredProcedures">
    <!--
              -->
    </Target>
    <Target Name="BuildTables">
      <!--
  </Target>
    <Target Name="BuildTriggers">
    </Target>
    <Target Name="Rebuild_EMPTY"/>
    <Target Name="InstallBuild" Outputs="@(GeneratedPackages)"
          DependsOnTargets="Rebuild">
          <!-- Build has already been called so we can create the item -->
         <CreateItem Include="$(OutputPath)**\*.msi"
                   AdditionalMetadata="Configuration=$(Configuration)">
                <Output ItemName="GeneratedPackages" TaskParameter="Include"/>
         </CreateItem>

          <Message Text="Generated Install Packages: @(GeneratedPackages)"
            Importance="low"/>
    </Target>
    <!-- Redefine the LinkDependsOn to inject our custom step -->
    <PropertyGroup>
         <LinkDependsOn>
              PrintLinkInfo;
              $(LinkDependsOn)
         </LinkDependsOn>
    </PropertyGroup>
    <Target Name="PrintLinkInfo">
         <Message 
Text="ObjectFiles=$(CompileObjOutput);@(WixObject);@(WixLibrary)" />
         <Message Text="BaseInputPath=$(BaseInputPath)" />
         <Message Text="CabinetCache=$(CabinetCache)" />
         <Message Text="Extensions=@(LinkExtension) " />
         <Message 
Text="BaseUncompressedImagesOutputPath=$(BaseUncompressedImagesOutputPath)" />
         <Message Text="LocalizedStringFile=$(LocalizedStringFile)" />
         <Message Text="NoLogo=$(LinkerNoLogo)" />
         <Message Text="LeaveTemporaryFiles=$(LeaveTemporaryFiles)" />
         <Message Text="ReuseCabinetCache=$(ReuseCabinetCache)" />
         <Message Text="OutputFile=$(OutDir)$(TargetFileName)" />
         <Message Text="OutputAsXml=$(OutputAsXml)" />
         <Message 
Text="SuppressDefaultAdminSequenceActions=$(SuppressDefaultAdminSequenceActions)"
 />
         <Message 
Text="SuppressDefaultAdvSequenceActions=$(SuppressDefaultAdvSequenceActions)" />
         <Message Text="SuppressAssemblies=$(SuppressAssemblies)" />
         <Message Text="SuppressFiles=$(SuppressFiles)" />
         <Message Text="SuppressLayout=$(SuppressLayout)" />
         <Message 
Text="SuppressSchemaValidation=$(LinkerSuppressSchemaValidation)" />
         <Message 
Text="SuppressDefaultUISequenceActions=$(SuppressDefaultUISequenceActions)" />
         <Message 
Text="SuppressIntermediateFileVersionMatching=$(LinkerSuppressIntermediateFileVersionMatching)"
 />
         <Message Text="SuppressAllWarnings=$(LinkerSuppressAllWarnings)" />
         <Message 
Text="UseSmallTableDefinitions=$(LinkerUseSmallTableDefinitions)" />
         <Message Text="TreatWarningsAsErrors=$(LinkerTreatWarningsAsErrors)" />
         <Message Text="WarningLevel=$(LinkerWarningLevel)" />
         <Message Text="VerboseOutput=$(LinkerVerboseOutput)" />
         <Message Text="VerboseOutputLevel=$(LinkerVerboseOutputLevel)" />
         <Message Text="ToolPath=$(ToolPath)" />
    </Target>

    <PropertyGroup>
          <CompileDependsOn>
                       PrintCompileInfo;
                       $(CompileDependsOn)
                </CompileDependsOn>
    </PropertyGroup>
    <Target Name="PrintCompileInfo">
         <Message Text="SourceFiles=@(Compile)" />
         <Message Text="DefineConstants=$(DefineConstants)" />
         <Message Text="PreprocessToStdOut=$(PreprocessToStdOut) " />
         <Message Text="PreprocessToFile=$(PreprocessToFile) " />
         <Message Text="IncludeSearchPaths=@(IncludeSearchPath)    " />
         <Message Text="NoLogo=$(NoLogo)" />
         <Message Text="OutputFile=$(CompileObjOutput)" />
         <Message Text="SuppressSchemaValidation=$(SuppressSchemaValidation)" />
         <Message Text="UseSmallTableDefinitions=$(UseSmallTableDefinitions) " 
/>
         <Message Text="ShowSourceTrace=$(ShowSourceTrace) " />
         <Message Text="Extensions=@(CompileExtension) " />
         <Message Text="SuppressAllWarnings=$(SuppressAllWarnings) " />
         <Message Text="TreatWarningsAsErrors=$(TreatWarningsAsErrors) " />
         <Message Text="WarningLevel=$(WarningLevel) " />
         <Message Text="VerboseOutput=$(VerboseOutput) " />
         <Message Text="VerboseOutputLevel=$(VerboseOutputLevel) " />
         <Message Text="ToolPath=$(ToolPath)" />
    </Target>

</Project>


How would I convert this to use 3.0? What has changed with 3.0?
Kevin Burton
Senior Software Engineer
BUYSEASONS
262-901-2000 Office
262-901-2312 Fax
kev...@buyseasons.com<mailto:kev...@buyseasons.com>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to