a Reference to 'Microsoft Windows Installer Object Library' could not be added

巧了我就是萌 提交于 2019-12-04 23:47:55

In Visual Studio go to References > Add Reference... > COM > Browse... > %WINDIR%\system32\msi.dll.

Worked for me on VS2012.

Check ur Regedit , Please check these Values

HKEY_CLASSES_ROOT\TypeLib\{000C1092-0000-0000-C000-000000000046}\1.0

If Visual Studio 2010 Installed

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ComponentPickerPages\Recent\{9A341D96-5A64-11D3-BFF9-00C04F990235}\1

If Visual Studio 2008 Installed

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ComponentPickerPages\Recent\{9A341D96-5A64-11D3-BFF9-00C04F990235}\1
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!