Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm unable to add reference to 'Microsoft Windows Installer Object Library' with VS2012. Any ideas, what could cause this issue?

When I try to create reference to the COM component, I get this error message "a reference to 'Microsoft Windows Installer Object Library' could not be added".

The VS project is basic class library (c# x86).

like image 809
RandomBug Avatar asked May 15 '13 06:05

RandomBug


1 Answers

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

Worked for me on VS2012.

like image 127
Wernight Avatar answered Oct 26 '22 11:10

Wernight