インストールの前提条件を持つアプリケーションの .msi パッケージを作成しています。このタスクには Visual Studio 2005 Bootstrapper を使用しています。この目的のために、私は次のことを行いました: フォルダー C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ を見つけ、前提条件用のフォルダーを作成しました (「dotnetfx」と同じ構造にしました)。 ; 「product.xml」と「package.xml」を作成し、適切に配置しました。インストールをテストするために、これまでxmlファイルを非常に単純に保ちました。
product.xml
<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="MyPrereq.exe" />
</PackageFiles>
<InstallChecks>
</InstallChecks>
<Commands Reboot="None">
<Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90">
<InstallConditions>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
</ExitCodes>
</Command>
</Commands>
</Product>
package.xml
<?xml version="1.0" encoding="utf-8"?>
<Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<Strings>
<String Name="Culture">en</String>
<String Name="DisplayName">MyPrereq</String>
<String Name="GeneralFailure">A fatal error occurred. The installation failed.</String>
</Strings>
</Package>
これで、リストから前提条件を追加して、セットアップ プロジェクトをビルドできます。
問題:
ビルド出力は、「setup.exe」、「MyApp.msi」パッケージ、および「MyPrereq.exe」を含む「MyPrereq」というサブフォルダーです。
ビルドで 'setup.exe' と 1 つの 'MyApp.msi' を作成したいと思います。この中に 'MyPrereq' が含まれ、追加のファイル/ディレクトリはありません。
.NET フレームワークが私のアプリのもう 1 つの前提条件であり、同じ .msi に含まれていることはわかっています。
どうすればこれを達成できますか?