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

How to install vc++ redistributable without windows installer

在我们的产品中,我们必须禁用 "windows installer" 服务(安全方面)。 在 Windows 2012 中无法使用 sc.exe 这样做,因此我们不得不更改注册表中服务的值 (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver ---> 开始 = 4)

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

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

2) 或者,是否可以在不重启机器的情况下启动 "disabled" windows 安装程序服务?

非常感谢, 丹尼尔.

除了使用 Windows 安装程序安装 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

它对你有用吗?