Microsoft Visual C++ 在哪里? 2015-2022 是否安装了可再发行 (x64) 软件包?

发布于 2025-01-16 21:27:15 字数 505 浏览 1 评论 0原文

我知道安装了 Visual C++ 2015-2022,因为:

A. 我在 Apps & 中看到它;功能(Microsoft Visual C++ 2015-2022 可再发行组件 (x64) - 14.31.31103 B. 我在注册表 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64 中看到它

,但 %VCINSTALLDIR% 未在我的路径上设置,并且我无法在任何地方找到该 dll。

我需要向 IT 部门明确具体情况才能解决此问题。我想将 dll 添加到系统路径,但我必须先找到它们!

我设法在 C:\ProgramData\Package Cache\{2aaf1df0-eb13-4099-9992-962bb4e596d1} 中找到 VC_redist.x64.exe 但我认为这很奇怪...这可能与安装无关。

任何帮助表示赞赏!

I know visual C++ 2015-2022 is installed because:

A. I see it in Apps & Features (Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.31.31103
B. I see it in registry HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64

but %VCINSTALLDIR% is not set on my path, and I cant find the dll's anywhere.

I need to be really specific with my IT dept to get this fixed. I want to add the dll to the system path but I have to find them first!

I managed to find VC_redist.x64.exe in C:\ProgramData\Package Cache\{2aaf1df0-eb13-4099-9992-962bb4e596d1} but I think that is pretty strange... it may be unrelated to the install.

Any help appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心碎无痕… 2025-01-23 21:27:15

对我来说,它们位于

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC

请注意 %VCINSTALLDIR% 仅适用于 Visual Studio 开发人员命令提示符。它应该位于开始菜单中的 Visual Studio XXXX 文件夹下,或者可以直接从 Visual Studio 内部启动。然后,您可以

cd %VCINSTALLDIR%

在终端中输入以获取该目录在您计算机上的位置。

For me they are at

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC

Do note that %VCINSTALLDIR% only works in the Visual Studio Developer Command Prompt. That should be located under the Visual Studio XXXX folder in your start menu or it can be launched directly from inside visual studio. You can then enter

cd %VCINSTALLDIR%

in the terminal to get where the directory is located on your machine.

无声静候 2025-01-23 21:27:15

根据 Github/Microsoft< /a> Visual C++ 文件位于 %VCINSTALLDIR%Redist\MSVC\v143 文件夹中。

查找可再发行文件的最简单方法是使用开发人员命令提示符中设置的环境变量。在 Visual Studio 2022 中,可再发行文件位于 %VCINSTALLDIR%Redist\MSVC\v143 文件夹中。在最新版本的 Visual Studio 2019 中,您将在 %VCINSTALLDIR%Redist\MSVC\v142 文件夹中找到可再发行文件。在 Visual Studio 2017 和 Visual Studio 2019 中,它们也可以在 %VCToolsRedistDir% 中找到。在 Visual Studio 2015 中,可以在 %VCINSTALLDIR%redist中找到这些文件,其中是可再发行包的区域设置。

According to Github/Microsoft Visual C++ Files are in %VCINSTALLDIR%Redist\MSVC\v143 folder.

The easiest way to locate the redistributable files is by using environment variables set in a developer command prompt. In Visual Studio 2022, the redistributable files are in the %VCINSTALLDIR%Redist\MSVC\v143 folder. In the latest version of Visual Studio 2019, you'll find the redistributable files in the %VCINSTALLDIR%Redist\MSVC\v142 folder. In both Visual Studio 2017 and Visual Studio 2019, they're also found in %VCToolsRedistDir%. In Visual Studio 2015, these files can be found in %VCINSTALLDIR%redist<locale>, where is the locale of the redistributable packages.

小忆控 2025-01-23 21:27:15

我知道已安装 Visual C++ 2015-2022,因为:

A.我在应用程序和应用程序中看到它功能(Microsoft Visual C++ 2015-2022
可再发行 (x64) - 14.31.31103
...

您将 Visual Studio(开发环境)与 Microsoft Visual C++ Redistributable(运行时支持库)混淆了。甚至没有“Visual C++ 2015-2022”这样的东西。 Visual Studio 的每个版本都有一个特定的年份,例如 Visual Studio 2017 (VS2017)。该可再发行版本适用于 VS2015 和 VS2022 之间的所有 Visual Studio 版本。

%VCINSTALLDIR%所有 Visual Studio 版本的命令提示符设置,但该值 Visual Studio 变体之间会有所不同。您可以在同一台计算机上并排安装多个版本的 Visual Studio。

I know visual C++ 2015-2022 is installed because:

A. I see it in Apps & Features (Microsoft Visual C++ 2015-2022
Redistributable (x64) - 14.31.31103
...

You're confusing Visual Studio (the development environment) with Microsoft Visual C++ Redistributable (a runtime support library). There isn't even such a thing as "visual C++ 2015-2022". Each version of Visual Studio has one specific year, such as Visual Studio 2017 (VS2017). The redistributable works for all Visual Studio versions between VS2015 and VS2022.

%VCINSTALLDIR% is set by the command prompts of all Visual Studio version, but the value will differ between Visual Studio variants. You can install multiple versions of Visual Studio side by side on the same computer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文