문제

ClickOnce 응용 프로그램은 시각적 C ++ 2005 재분배 가능 해야하는 타사 도구를 사용합니다. VC ++ 2008 재배포 가능 만 설치 한 경우 타사 도구가 작동하지 않습니다. 그러나 Visual Studio 2008에서 Clickonce 전제 조건은 VC ++ 재분배 가능에 대해 버전을 지정할 수 없습니다. VC ++ 2008 전제 조건을 추가 할 것입니다. 그러나이 상황에서는 이전 버전이 필요합니다. ClickOnce가 필요하므로 병합 모듈이 문제가되지 않습니다. 버전을 지정하는 방법에 대한 아이디어가 있습니까?

도움이 되었습니까?

해결책

VS 2005가 설치된 기계를 찾을 수 있다면 솔루션이 너무 어렵지 않아야합니다. 프로젝트 게시 탭에서 전제 조건 대화 상자에 나타나는 것을 사용자 정의 할 수 있습니다.

  1. VS 2005가 설치된 기계에서 Program Files Microsoft Visual Studio 8 SDK v2.0 bootstrapper 패키지 그리고 복사 vsredist_x86 게시중인 컴퓨터에 대한 폴더.
  2. 폴더의 이름을 바꾸고 호출하십시오 vsredist_x86_2005 또는 비슷한 것.
  3. 폴더 내부에서 편집하십시오 en package.xml 파일. 변경 <String Name="DisplayName"> 의미가있는 무언가에 태그시각적 C ++ 2005 런타임 라이브러리 (x86)) 기존 2008 패키지와 차별화하려면.
  4. 폴더를 복사하십시오 C : Program Files Microsoft SDKS Windows V6.0A Bootstrapper 패키지.
  5. Visual Studio가 열려있는 경우 다시 시작하십시오.

이제 전제 조건 대화 상자를 열면 2005 년 패키지의 새로운 항목이 표시됩니다. 나는이 솔루션을 완전히 테스트하지 않았으므로 몇 가지 세부 정보를 놓쳤을 수도 있지만 이것이 당신이 시작하게되기를 바랍니다.

다른 팁

앱의 매니페스트 파일을 열고 앱이 링크 해야하는 레저스 버전을 수정할 수 있다고 생각합니다. 매니페스트의 목록은 C : Windows Winsxs Dirs에있는 것과 일치해야합니다. 이있다 CodeProject 페이지 그것은 다른 재분배 가능성을 사용하는 것에 대한 좋은 설명을 제공합니다.

방금 Visual Studio 2005를 설치했습니다. 여기에 오리지널 부트 스트랩이 있습니다.

C : Program Files Microsoft Visual Studio 8 SDK v2.0 bootstrapper 패키지 vcredist_x86

en package.xml

<?xml version="1.0" encoding="utf-8" ?>

<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">Visual C++ Runtime Libraries (x86)</String>
        <String Name="Culture">en</String>
        <String Name="AdminRequired">You do not have the permissions required to install Visual C++ Runtime Libraries (x86). Please contact your administrator.</String>
        <String Name="InvalidPlatformWin9x">Installation of Visual C++ Runtime Libraries (x86) is not supported on Windows 95. Contact your application vendor.</String>
        <String Name="InvalidPlatformWinNT">Installation of Visual C++ Runtime Libraries (x86) is not supported on Windows NT 4.0. Contact your application vendor.</String>
        <String Name="GeneralFailure">A failure occurred attempting to install Visual C++ Runtime Libraries (x86).</String>
    </Strings>

</Package>

product.xml

<?xml version="1.0" encoding="utf-8" ?> 

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

  <!-- Defines list of files to be copied on build -->
  <PackageFiles>
    <PackageFile Name="vcredist_x86.exe"/>
  </PackageFiles>

  <InstallChecks>
    <MsiProductCheck Property="VCRedistInstalled" Product="{A49F249F-0C91-497F-86DF-B2585E8E76B7}"/>
  </InstallChecks>

  <!-- Defines how to invoke the setup for the Visual C++ 8.0 redist -->
  <!-- TODO: Needs EstrimatedTempSpace, LogFile, and an update of EstimatedDiskSpace -->
  <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 NT 4 or less -->
        <FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.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>

vcredist_x86.exe

SHA1: 95040f80b0d203e1abaec4e06e0ec0e01c507d03
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top