WixStandardBootstrapperApplication を使用してブートストラップ アプリケーションを作成しようとしています。再起動の処理を除いて、本当にうまくいくために必要なことはすべて実行します。
EXE ファイルのグループをインストールする必要があります。最初のものだけが .NET 4.5 であり、再起動が必要です。再起動を遅らせたいのですが、他のプログラムの 1 つがそれに依存しているため、できません。終了コードを使用して再起動を強制しようとしましたが、コンピューターが再起動するたびにブートストラップがその終了コードでスタックし、他に何もインストールできません。プログラムがまだ再起動されていない場合 (または他の論理的な方法) にのみ終了コードを適用する方法はありますか?
これが私がやっていることです...
<ExePackage
Id = "NetFx45Redist"
Cache = "no"
Compressed = "yes"
PerMachine = "yes"
Permanent = "yes"
Vital = "yes"
InstallCommand = "/quiet /norestart"
SourceFile = "C:\Users\visibleEP\Documents\Visual Studio 2012\Projects\Bootstrapper1\VEP Deploy\Setup Files\dotNetFx45_Full_setup.exe"
DetectCondition = "(Netfx4FullVersion="4.5.50709") AND (NOT VersionNT64 OR (Netfx4x64FullVersion="4.5.50709"))"
InstallCondition = "(VersionNT >= v6.0 OR VersionNT64 >= v6.0) AND (NOT (Netfx4FullVersion="4.5.50709" OR Netfx4x64FullVersion="4.5.50709"))">
<ExitCode Behavior = "forceReboot"/>
</ExePackage>
<ExePackage
SourceFile = "...\...\Setup Files\Encoder_en.exe"
InstallCommand = "/q"/>
<ExePackage
SourceFile = "...\...\Setup Files\vcredist_x86.exe"
InstallCommand = "/q /ACTION=Install"
RepairCommand = "/q ACTION=Repair /hideconsole" />
<ExePackage
SourceFile = "...\...\Setup Files\vcredist_x64.exe"
InstallCommand = "/q /ACTION=Install"
RepairCommand = "/q ACTION=Repair /hideconsole" />