WiXツール3.10を使用して、単純なC#アプリケーションのインストーラを作成しています。私は公式ドキュメントのチュートリアルに従ってきましたが、次の問題があります。アプリケーションディレクトリに.txtファイルを追加する必要がありますが、インストーラはアプリケーションの実行可能ファイルのみを追加します。WiXツール - インストーラはインストールディレクトリにファイルを追加しません
ディレクトリ構造:
<Fragment>
<!-- Step 1: Define the directory structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="Controllore">
</Directory>
</Directory>
</Directory>
</Fragment>
追加ファイル:
<Fragment>
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="Controllore.exe" Guid="ce2f6f3f-73b4-4fa9-9c3f-76685d520fdb">
<File Id="Controllore.exe" Source="MyPath\Controllore.exe" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="param.txt" Guid="5ffe84e4-5893-48be-af86-1731bcd176ca">
<File Id="param.txt" Source="MyPath\param.txt" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<!-- Step 3: Tell WiX to install the files -->
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="Controllore.exe" />
<ComponentRef Id="param.txt" />
</Feature>
</Fragment>
と終わりに、私はこれらの行を追加する必要があり、そうでない場合は、インストーラここで.wxsファイルのXMLは、何もインストールされません:
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="APPLICATIONROOTDIRECTORY">
<Component Id="CMP_Controllore">
<File Source="$(var.Controllore.TargetPath)" KeyPath="yes" />
</Component>
</ComponentGroup>
</Fragment>
WIX?逃げる。遠く離れて走りなさい。 –
私はWIXが好きです、あなたはそれのために設定された正しい心に入る必要があります。 – Polyfun
少なくともそれはinstallshieldではありません –