mysql Connector 安装的时候有时候会遇到很多问题,有时候会卸载失败,导致无法重新安装。测试了网上各种办法,删文件,删注册表,重启,360强行删除都不是很有效。最后发现msizap比较有效。
msizap是微软官方sdk中带的工具,在知道产品标识码{xxxxxxxxxx}的情况下可以卸载掉安装对于相关的任何东西,卸载完之后很干净。
msiZap.exe -T {xxxxxxxxxx}
另外还有一个工具是MsiInv,可以搜集已经安装的产品的标识码。
This tool (which stands for MSI Inventory) wraps some of the publicly documented MSI APIs to provide information about the state of all Windows Installer products, features and components that Windows Installer thinks are installed on your computer. I say "thinks are installed" because there are some rare cases where the actual installation state of a given product can get out of sync with the information Windows Installer has stored in its internal data structures, which can cause confusion for setup packages.
不过因为MySQL Connector 的产品标识码在错误的详细信息里面能够查看到,所以这个工具暂时没用上。
参考:
http://blog.csdn.net/Lw_198x/article/details/7586489
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370523(v=vs.85).aspx
https://blogs.msdn.microsoft.com/astebner/2005/07/01/using-msiinv-to-gather-information-about-what-is-installed-on-a-computer/