2016-09-07 19 views
4

に前提条件を追加しますが、解決策を見つけることができません。 enter image description hereは、私は、Visual Studio 2015に新しい前提条件を追加したいのVisual Studio 2015

は、あなたが見ることができるように、前提条件のVisual C++ 2010ランタイムライブラリのVisual Studioの2015欠如を(x86)およびWindowsインストーラー3.1。私は古いバージョンのVisual C++ランタイムライブラリ(x86)とWindowsインストーラをインストールできないので、Windows 8.1を使用しています。

答えて

4

同じ問題が発生しました。 Visual Studio 2015フォルダにBootstrapper packagesを追加する手順に従ってください。

Microsoft C++ 2013 x86を追加する際の手順を説明します(あなたの場合の手順は同様です)。

最初にC:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages\フォルダに移動します(以前のバージョンのVisual Studioまたはカスタムパスは異なる場合があります)。

Packagesフォルダが見つかると、vc_redist_2013_x86という新しいフォルダ(あなたの場合はvc_redist_2010_x86)を作成することから始められます。 MicrosoftサイトからRedistributionパッケージをダウンロードし、このフォルダに置きます。 hereと2010 x86の2013年版をhereからダウンロードできます。

vcredist_x86のファイルを自分のフォルダにコピーします(これは、product.xmlファイルとpackage.xmlファイルのenフォルダである必要があります)。読み込み専用フラグを削除して、テキストエディタで開きます。

  • 製品コード:product.xml次を交換する必要がある場合には

    "Microsoft.Visual.C++ 12.0.x86を"(あなたがC++を持っています10.0.x86。)

  • パッケージファイル名= "vcredist_x86.exe"は、Microsoftサイトからダウンロードした実行可能ファイルとして指定されます。
  • PublicKeyは、exeファイルの1つに従って変更する必要があります。
    • 右(私のケースのvcredist.exe中)のexeファイルをクリックし
    • 「プロパティ」
    • を選択する「デジタル署名」
    • を選択します。それはあなたが次の手順を実行する必要が見つけるために
    • '証明書の表示'
    • は '詳細タブ' を選択トップ署名(SHA1)
    • 押して '詳細'
    • プレスを選択する」を選択します公開鍵」
    • コピー値
  • 下から、スペースを削除した後、あなたが検索値を持つMsiProductCheck製品は、お使いのバージョンのものに変更する必要があります。私は希望値で this答えを見つけることができました。 2013 x86の場合、製品は {f65db027-aff3-4070-886a-0d87064aabb1}、2010 x86の場合は {1D5E3C0FEDA1E123187686FED06E995A}です。

ファイルを保存してpackage.xmlファイルに移動します。ここでは、 'Visual C++' 14 ''を使用しているバージョンに置き換える必要があります。私はそれを 'Microsoft Visual C++ 2013 Redistributable(x86)'に置き換えました。

この手順が完了したら、 Visual Studio 2015の[前提条件]リストでMicrosoft Visual C++ 2013 Redistributable (x86)が表示されます。

作業するモデルが必要な場合は、以下の2つのファイルを投稿します。

のProduct.xml

<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="Microsoft.Visual.C++.12.0.x86"> 

    <!-- Defines list of files to be copied on build --> 
    <PackageFiles CopyAllPackageFiles="false"> 
    <PackageFile Name="vcredist_x86.exe" HomeSite="VCRedistExe" PublicKey="3082010a028201010096715ded0646fa84cb9d5bb746c7b0e1b4113903adb11573609ceba7b66e1a3c3fff65e334f1a6a5215e56996c58e492a10a5cc2d3dc522f0c659a20614053319c6c8f217dbaf9fe13505260953a5bb958a5746141a994e0ad264e4ca1977049275e7c67ca4f1e718446bc1d4bb6e20fc5c627c907e67a0aa51700194c7045382d81b450aac567d1fa79bcc5cca1729bf4253498f854df123938122fa46ba59a7ec762d1dccfed3d34f8b9df3530baec7932a9e1a9ac554d4c7f4c56c3130b76f107f9cc47acfb88d552a51e28fa3d2dcfcf849886716511cf85c9094486e16fe7b1fcac4044a5a98b233f82499dd596595013591873ff430cad2bd47f3040670203010001" /> 
    </PackageFiles> 

    <InstallChecks> 
    <MsiProductCheck Property="VCRedistInstalled" Product="{f65db027-aff3-4070-886a-0d87064aabb1}"/> 
    </InstallChecks> 

    <!-- Defines how to invoke the setup for the Visual C++ 14.0 redist --> 
    <Commands Reboot="Defer"> 
    <Command PackageFile="vcredist_x86.exe" Arguments=' /q:a '> 

     <!-- These checks determine whether the package is to be installed --> 
     <InstallConditions> 
     <BypassIf Property="VCRedistInstalled" Compare="ValueGreaterThanOrEqualTo" Value="3"/> 
     <!-- Block install if user does not have admin privileges --> 
     <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/> 
     <!-- Block install on Win95 --> 
     <FailIf Property="Version9X" Compare="VersionLessThan" Value="4.10" String="InvalidPlatformWin9x"/> 
     <!-- Block install on Vista or below --> 
     <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.00" String="InvalidPlatformWinNT"/> 
     </InstallConditions> 

     <ExitCodes> 
     <ExitCode Value="0" Result="Success"/> 
     <ExitCode Value="3010" Result="SuccessReboot"/> 
     <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" /> 
     </ExitCodes> 

    </Command> 
    </Commands> 
</Product> 

のpackage.xmlは

<Package 
    xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" 
    Name="DisplayName" 
    Culture="Culture" 
    > 

    <!-- Defines a localizable string table for error messages--> 
    <Strings> 
     <String Name="DisplayName">Microsoft Visual C++ 2013 Redistributable (x86)</String> 
     <String Name="Culture">en</String> 
     <String Name="AdminRequired">You do not have the permissions required to install Microsoft Visual C++ 2013 Redistributable (x86). Please contact your administrator.</String> 
     <String Name="InvalidPlatformWin9x">Installation of Microsoft Visual C++ 2013 Redistributable (x86) is not supported on Windows 95. Contact your application vendor.</String> 
     <String Name="InvalidPlatformWinNT">Installation of Microsoft Visual C++ 2013 Redistributable (x86) is not supported on Windows NT 4.0. Contact your application vendor.</String> 
     <String Name="GeneralFailure">A failure occurred attempting to install Microsoft Visual C++ 2013 Redistributable (x86).</String> 
     <String Name="VCRedistExe">http://go.microsoft.com/fwlink/?LinkID=800028&amp;clcid=0x409</String> 
    </Strings> 

</Package> 

はそれが役に立てば幸い、この長いプロセスに従うことは簡単です。

関連する問題