MySql Workbench 安装程序需要安装 Visual C++ 2015 Redistributable Package,但它已经安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43172345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 22:17:23  来源:igfitidea点击:

MySql Workbench installer requires Visual C++ 2015 Redistributable Package to be installed, but it already is installed

mysqlmysql-workbench

提问by DaveCat

I've looked everywhere online, but it doesn't look like anyone has been able to resolve this issue.

我在网上到处找,但似乎没有人能够解决这个问题。

When I download and try to install MySql Workbench, I get prompted to install Visual C++ Redistributable package (2015) to be installed. The wizard then takes me directly to this websitein order to install it.

当我下载并尝试安装 MySql Workbench 时,系统提示我安装要安装的 Visual C++ Redistributable package (2015)。然后向导会将我直接带到该网站以进行安装。

However, whenever I try to install either, it just tells me they're already installed.

但是,每当我尝试安装它们时,它只会告诉我它们已经安装。

After googling this for about an hour, I found some other people had this problem which apparently was resolved by following the instructions from this website. I downloaded instaedit and followed the instructions, but I continue to get the same error.

在谷歌搜索了大约一个小时后,我发现其他一些人遇到了这个问题,显然是按照本网站的说明解决的。我下载了 instaedit 并按照说明操作,但我仍然遇到相同的错误。

I've been at this for two days now and am going to go crazy. If someone can help me with this I'd be very grateful. I'm using Windows 10,

我已经在这里呆了两天了,快要疯了。如果有人能帮助我解决这个问题,我将不胜感激。我使用的是 Windows 10,

回答by Miha Markic

It turns out that VC++ 2017 redistributables are the culprit because they delete the registry keys used by VC++ 2015 redistributables. See this Microsoft Developer Community pagefor solution (TL;DR; you have to repairVC++ 2017redistributables as this will restore missing 2015 registry keys).

事实证明,VC++ 2017 可再发行组件是罪魁祸首,因为它们删除了 VC++ 2015 可再发行组件使用的注册表项。请参阅此 Microsoft 开发人员社区页面以获取解决方案(TL;DR;您必须修复VC++ 2017 可再发行组件,因为这将恢复丢失的 2015 注册表项)。

This process is as Eric describes:

这个过程就像埃里克描述的那样

The steps are essentially: go to Programs in Control Panel (or "Add or Remove Programs" in Windows 10's "Settings"), find the Microsoft Visual C++ 2017 Redistributable, click it and choose Change/Modify, then choose "Repair

步骤基本上是:转到控制面板中的程序(或 Windows 10 的“设置”中的“添加或删除程序”),找到 Microsoft Visual C++ 2017 Redistributable,单击它并选择“更改/修改”,然后选择“修复”

回答by zposloncec

I got it working running latest mysql-workbench.msi from cmd.exe with escalated permissions:

我让它从 cmd.exe 运行最新的 mysql-workbench.msi 并具有升级的权限:

  1. run cmd.exe as Administrator
  2. cd to folder where msi resides
  3. run it
  1. 以管理员身份运行 cmd.exe
  2. cd 到 msi 所在的文件夹
  3. 运行

回答by Sunding Wei

None of the solutions work for me until I install the old version: mysql-workbench-community-6.3.8-winx64.msi

在我安装旧版本之前,没有任何解决方案对我有用:mysql-workbench-community-6.3.8-winx64.msi

回答by DaveCat

I tried the solutions posted here, but continued to run into the same errors. Oddly enough, installing an older version of Workbench actually resolved the problem. I wasn't exactly happy about this because I went to school and they showed us the most recent one, but this is the easiest and most direct solution.

我尝试了此处发布的解决方案,但继续遇到相同的错误。奇怪的是,安装旧版本的 Workbench 实际上解决了这个问题。我对此并不完全满意,因为我去学校了,他们向我们展示了最新的一个,但这是最简单、最直接的解决方案。

回答by slmglr

If you have Microsoft Visual C++ 2017 Redistributable (x64) or (x86), please uninstallthem both and run again the MySql Workbench installer.

如果您有 Microsoft Visual C++ 2017 Redistributable (x64) 或 (x86),请卸载它们并再次运行 MySql Workbench 安装程序

After the installation is done, installback Microsoft Visual C++ 2017Redistributable packages.

安装完成后,重新安装Microsoft Visual C++ 2017Redistributable 包。

Here is the link to download MS V C++ 2017 Redist. : https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

这是下载 MS V C++ 2017 Redist 的链接。: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

回答by Marcin Marek

First try to uninstall completely Visual C++ Redistributable package (2015) and install it again. If that does not help please try something else:

首先尝试完全卸载 Visual C++ Redistributable package (2015) 并重新安装。如果这没有帮助,请尝试其他方法:

Open regedit and try to find key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 if you see that keys check value Installed=1 (DWORD)

打开 regedit 并尝试找到键 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 或 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 如果您看到该键检查值 Installed=1 (双字)

If you found these keys and you got message about not installed c-runtime try to use processmonitor from sysinternals https://technet.microsoft.com/en-us/sysinternals/processmonitorand check if you have access to registry.

如果您找到了这些键并且收到了关于未安装 c-runtime 的消息,请尝试使用来自 sysinternals https://technet.microsoft.com/en-us/sysinternals/processmonitor 的processmonitor并检查您是否有权访问注册表。

If you don't have these keys in your registry you can try to create it manually and see if that helps.

如果您的注册表中没有这些键,您可以尝试手动创建它,看看是否有帮助。

回答by user3793783

  • Uninstall VC Redistributable 2017 x64 x86 from your computer.
  • Install VC Redistributable 2015 x64 x86 to your computer.
  • Install MySQL Workbench 8.0 to your computer.
  • Run MySQL Workbench 8.0 and close it.
  • Install VC Redistributable 2017 x86 x64 to your computer.
  • Run MySQL Workbench 8.0
  • 从您的计算机上卸载 VC Redistributable 2017 x64 x86。
  • 将 VC Redistributable 2015 x64 x86 安装到您的计算机上。
  • 将 MySQL Workbench 8.0 安装到您的计算机上。
  • 运行 MySQL Workbench 8.0 并关闭它。
  • 将 VC Redistributable 2017 x86 x64 安装到您的计算机上。
  • 运行 MySQL 工作台 8.0

回答by cgage1

I ran into this same problem and wanted to avoid installing an old version. I got success downloading the 32 bit visual studio version from:

我遇到了同样的问题,想避免安装旧版本。我从以下位置成功下载了 32 位 Visual Studio 版本:

https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145

https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145

I suspect it has something to do with the pathing in the installer which only identifies the 32 bit version of the visual studio library.

我怀疑它与安装程序中的路径有关,该路径仅标识 32 位版本的 Visual Studio 库。

回答by Toshi

In my environment, I was able to fix this issue by repairing "Microsoft Visual C++ 2017 Redistributable" both (x64) and (x86). Yes, it sounds funny that the version I repaired was 2017 instead of 2005, but it worked for me. Here's the steps:

在我的环境中,我能够通过修复 (x64) 和 (x86) 的“Microsoft Visual C++ 2017 Redistributable”来解决此问题。是的,我修复的版本是 2017 年而不是 2005 年,这听起来很有趣,但它对我有用。以下是步骤:

  • Go to Control Panel> Uninstall a program
  • Highlight Microsoft Visual C++ 2017 Redistributable (x64)and/or Microsoft Visual C++ 2017 Redistributable (x86)
  • Click Changebutton
  • Click Repair
  • The installer may prompt you to reboot your machine
  • Repeat the steps above if both x64 and x86 versions are installed.
  • 前往Control Panel>Uninstall a program
  • 突出显示Microsoft Visual C++ 2017 Redistributable (x64)和/或Microsoft Visual C++ 2017 Redistributable (x86)
  • 单击Change按钮
  • 点击 Repair
  • 安装程序可能会提示您重新启动机器
  • 如果同时安装了 x64 和 x86 版本,请重复上述步骤。

After rebooting machine, I was able to install MySQL Workbench.

重新启动机器后,我能够安装 MySQL Workbench。

回答by Vexer

I had the same experience, it simply needed Administrative rights; launch with admin or launch command prompt as an admin (administrative privileges) and then launch the latest installer (I installed 8.0 successfully this way).

我有同样的经历,它只需要管理权限;以管理员身份启动或以管理员身份启动命令提示符(管理员权限),然后启动最新的安装程序(我以这种方式成功安装了 8.0)。

See below image of command prompt (must show "Administrator:" in title) and successful installation from this window

请参阅下面的命令提示符图像(必须在标题中显示“管理员:”)并从此窗口成功安装

image

图片