visual-studio - VC++ 2013 运行时 ClickOnce Bootstrap 包

标签 visual-studio visual-c++ visual-studio-2013 clickonce visual-studio-2017

运行 visual studio 2017,我需要在 ClickOnce 项目中使用 VC++ 2013 作为先决条件。但是我无法在任何地方在线找到该软件包,也无法安装 visual studio 2013。

VC++ 2013 Bootstrap 包的 product.xml 和 package.xml 文件是什么样的? (有人可能仍然安装了 2013)。

(在问题结束之前,对于任何其他正在寻找它的人来说,这将是一个非常有用的资源......因为它在任何地方都不在线)

最佳答案

我终于找到了文件 - 在这里张贴以供引用:

Visual C++ 2013 运行时库 (x86)

product.xml

  <!-- 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>

package.xml

<!-- Defines a localizable string table for error messages-->
<Strings>
    <String Name="DisplayName">Visual C++ 2013 Runtime Libraries (x86)</String>
    <String Name="Culture">en</String>
    <String Name="AdminRequired">You do not have the permissions required to install Visual C++ 2013 Runtime Libraries (x86). Please contact your administrator.</String>
    <String Name="InvalidPlatformWin9x">Installation of Visual C++ 2013 Runtime Libraries (x86) is not supported on Windows 95. Contact your application vendor.</String>
    <String Name="InvalidPlatformWinNT">Installation of Visual C++ 2013 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++ 2013 Runtime Libraries (x86).</String>
    <String Name="VCRedistExe">http://go.microsoft.com/fwlink/?LinkID=320712&amp;clcid=0x409</String>
</Strings>

关于visual-studio - VC++ 2013 运行时 ClickOnce Bootstrap 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44506174/

相关文章:

.net - 在 Visual Studio 中查看存储过程

c - 在 c 中使用 '"#include"和此链接错误?

c# - 检查对象是否实现接口(interface)

performance - 云性能与桌面性能

c++ - 在 Visual Studio '13 项目中设置 ZeroMQ

visual-studio - Element Silverlight 不是已知元素

visual-studio - 如何在Visual Studio中添加运行时断点?

c++ - VS2015如何将静态库链接到其他库和可执行文件?

c++ - 为什么可以在没有定义的情况下使用枚举类型

C++ 简单字符检查