0

次の WIX XML を適応させて、Web サイトをインストールするための MSI を作成しようとしています。

私はこれにかなり慣れていませんが、WIX にはかなりの段階の学習曲線があるため、以下のコード スニペットが示すところまで到達しました。

次のエラーが発生するため、現時点ではコンパイルされません。

セクション「Product:*」のシンボル「WixComponentGroup:C_WebAppContent」への未解決の参照

私がやりたいのは次のことだけです。

Web サイトを D:\websites\website にインストールします 仮想ディレクトリをセットアップします アプリケーション プールをセットアップします

それだけです...以下のどこが間違っていますか?

製品.wxs

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
     xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" 
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">

  <!--NEVER EVER EVER EVER CHANGE THE UPGRADE CODE!!!!!!!!!!!!!!! -->
  <?define UpgradeCode="176df50b-d3aa-4f25-ae7b-2098a6b881b2" ?>

  <Product Id="*" 
           Name="MdxWebsite" 
           Language="1033" Version="1.0.0.0" 
           Manufacturer="RBS" 
           UpgradeCode="$(var.UpgradeCode)">
    <Package InstallerVersion="200" Compressed="yes" />

    <!-- This includes our properties that implement the "Remember Property" pattern -->
    <?include Configuration.wxi ?>

    <Media Id="1" Cabinet="media.cab" EmbedCab="yes" />

    <MajorUpgrade AllowDowngrades="no" 
                  AllowSameVersionUpgrades="yes" 
                  Schedule="afterInstallInitialize"
                  DowngradeErrorMessage="A later version of this product is already installed. Setup will now exit."/>

    <!-- Creating default directory structure (INSTALLLOCATION be override by user, but it starts in Program Files) -->
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id='ProgramFilesFolder' Name='PFiles'>
        <Directory Id="INSTALLLOCATION" Name="TheDefaultInstallFolderName">
        </Directory>
      </Directory>
    </Directory>

    <Feature Id="F_Content" 
             Title="Content" 
             Level="1" 
             Description="The website content" 
             ConfigurableDirectory="INSTALLLOCATION">
      <ComponentRef Id="C_RegistryEntries"/>
      <!-- The C_WebAppContent can either be generated by the WiX tool "heat", or a hand-crafted set of content, this component is not included in this example -->
      <ComponentGroupRef Id="C_WebAppContent" />
    </Feature>

    <Feature Id="F_IISWebsite" Title="IIS Website" Description="The IIS website and application pool" Level="1">
      <ComponentRef Id="C_IISWebsite" />
    </Feature>

    <InstallExecuteSequence>
    </InstallExecuteSequence>

    <!-- Specify UI -->
    <UIRef Id="UIFlow" />
  </Product>
</Wix>
4

1 に答える 1

0

したがって、..\obj\Debug フォルダー内の Visual Studio ヘルプの出力用に HEAT によって作成された ID を使用して、これを修正できました。

于 2012-11-16T15:35:45.163 に答える