0

msbuild を使用して、アプリケーションの前提条件をインストールする Setup.exe を作成しています。うまく機能しますが、前提条件で再起動が必要な場合、Windows がバックアップされると、MSI が見つからないというエラーが表示されます:「アプリケーション ファイル '[file].msi' が見つかりません。

これは私のmsbuild構成ファイルです:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <ItemGroup>
    <BootstrapperFile Include=".NETFramework,Version=v4.0">
        <Visible>False</Visible>
        <ProductName>Microsoft .NET Framework 4.0</ProductName>
        <Install>true</Install>
    </BootstrapperFile>
    <BootstrapperFile Include="Microsoft.Windows.Installer.4.5">
      <Visible>False</Visible>
      <ProductName>Windows Installer 4.5</ProductName>
      <Install>true</Install>
    </BootstrapperFile>
    <BootstrapperFile Include="Windows.Imaging.Component">
      <Visible>False</Visible>
      <ProductName>Windows Imaging Component</ProductName>
      <Install>true</Install>
    </BootstrapperFile>    
  </ItemGroup>

  <Target Name="Bootstrapper">
    <GenerateBootstrapper
      ApplicationFile="myAppInstaller.msi"
      ApplicationName="MyApp"
      BootstrapperItems="@(BootstrapperFile)"
      OutputPath=".\"
      ComponentsLocation="HomeSite"
      Culture="en"/>
  </Target>
</Project>

それを修正する理由と方法はありますか?

ありがとう!

4

1 に答える 1