visual-c++ - 如何在没有 Windows 安装程序的情况下安装 vc++ 可再发行组件

标签 visual-c++ windows-installer windows-server-2012 redistributable

在我们的产品中,我们必须禁用“Windows 安装程序”服务(安全方面)。 在 Windows 2012 中,无法使用 sc.exe 执行此操作,因此我们必须更改注册表中服务的值 (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver ---> 开始 = 4)

现在,作为我们产品的升级过程,我们需要安装 “VC++ 2013 Redist”

  1. 是否可以在不使用 Windows 安装程序的情况下安装此软件包?

  2. 或者,是否可以在不重新启动计算机的情况下启动“已禁用”的 Windows 安装程序服务?

最佳答案

您可以将所需的文件放入可执行文件的目录中,而不是使用 Windows Installer 安装 VC++2013 运行时:

you can directly install redistributable Visual C++ DLLs in the application local folder, which is the folder that contains the executable application file.

(来自 Redistributing Visual C++ Files )

关于visual-c++ - 如何在没有 Windows 安装程序的情况下安装 vc++ 可再发行组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33875910/

相关文章:

php - 警告 : exec(): Unable to fork

c++ - 当 "required"运行时库不存在时显示(自定义)错误?

installation - 如何安排使用MSI在下次重新启动时进行安装?

c++ - 手动设置 Visual Studio 2012 的 C++ 语言版本

windows-7 - OCX 文件不会从 Windows 7 上使用 Visual Studio 2003 生成的 MSI 部署

Powershell - 如何使用 "WindowsInstaller.Installer"在 MSI 中插入属性值 - REBOOT = Force

Powershell 无法打开 - 错误 "Path cannot be the empty string or all whitespace"

c++ - 什么是 Microsoft Visual Studio 等效于 GCC ld 选项 --whole-archive

web-services - 使用 Microsoft WebServices 解析 wchar_t xml