本文介绍了MySQL for Visual Studio 1.2.7安装向导过早终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从VS2013创建了一个项目,安装了mysql插件1.1.1,可以更新.但是在我转移到VS2017之后,它不会从edmx文件上的数据库中更新模型.因此,我正在安装mysql插件1.2.7,但出现此错误.

Created a proj from VS2013 installed mysql plugin 1.1.1, can update. But after I transferred to VS2017, it wont update Model from Database on edmx file. So I am installing mysql plugin 1.2.7 but i get this error..

推荐答案

我从MySQL Windows Experience Team找到了该解决方案

I found this solution from the MySQL Windows Experience Team

我已经确定,只要尝试执行命令"devenv/updateconfiguration/log",安装就会回滚,这是安装的最后一步.该命令向Visual Studio发送信号以重新加载扩展,包括用于Visual Studio插件的MySQL,但是由于某些奇怪的原因(可能由于最近的VS更新之一),该命令的执行失败.

I've identified that the installation is rolling back whenever it tries to execute the command "devenv /updateconfiguration /log", which is the last step of the installation. This command signals Visual Studio to reload the extensions, including the MySQL for Visual Studio plugin, however for some strange reason (probably due to one of the recent VS updates) execution of said command is failing.

当前的解决方法是从MSI中删除失败命令的执行,并且在安装插件后继续手动执行命令.实现步骤如下:

The current workaround is to remove the execution of the failing command from the MSI and after installation of the plugin proceed to execute the command manually. Steps to achieve that are as follows:

  1. 下载并安装Orca.Orca是一款轻巧的Windows Installer开发工具,可用于编辑MSI.
  2. 在Windows资源管理器中,右键单击MySQL for Visual Studio MSI文件,然后选择使用Orca编辑".
  3. 单击窗口左侧表"部分下的"InstallExecuteSequence"项.
  4. 如果要在VS Community中安装,请右键单击"SetVS15Setup_Custom"操作,然后选择拖放行"选项.对"VS15Setup_Custom"执行相同的操作.VS Professional/Enterprise也存在类似的元素.
  5. 保存更改并重试安装MySQL for Visual Studio.
  6. 安装完成后,打开"VS 2017开发人员命令提示符".可以在VS 2017的开始菜单文件夹中找到.
  7. 在命令提示符下,执行命令"devenv/updateconfiguration/log",然后等待其完成.

我希望所提供的步骤对您有所帮助.

I hope that the steps provided are of help.

贷方转到:MarcoBarnabò(用于报告错误)&Jose Maria Ramirez(用于解决问题)

Credit goes to:Marco Barnabò (for reporting the bug) &Jose Maria Ramirez (for solving the issue)

该解决方案是从mySQL论坛获得的: https://forums.mysql.com/read.php?174,660549,661819#msg-661819

The solution was obtained from the mySQL forums:https://forums.mysql.com/read.php?174,660549,661819#msg-661819

这篇关于MySQL for Visual Studio 1.2.7安装向导过早终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:33