2016-09-07 7 views
4

에 전제 조건을 추가하지만 솔루션을 찾을 수 없습니다 : enter image description here내가 비주얼 스튜디오 2015의 새로운 전제 조건을 추가 할 비주얼 스튜디오 2015

당신이 볼 수 있듯이, 전제 조건 비주얼 C++ 2010 런타임 라이브러리의 비주얼 스튜디오 2015 부족 (x86) 및 Windows Installer 3.1. 이전 버전의 Visual C++ 런타임 라이브러리 (x86) 및 Windows Installer를 설치할 수 없도록 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합니다.)
  • PackageFile 이름 = "vcredist_x86.exe"는 Microsoft 사이트에서 다운로드 한 실행 파일로 지정됩니다.
  • PublicKey는 exe 파일 중 하나에 따라 변경해야합니다. 그것을 발견하기 위해서는 다음과 같은 단계를 수행해야 : (내 경우 않음 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)을 볼 수 있어야합니다.

작업 할 모델이 필요할 경우를 대비하여 아래 두 파일을 게시하겠습니다.

있는 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> 

는 희망이 도움과이 긴 과정을 따라하기 쉽습니다.