MSI.LIB Not Present in VC++ 2005 Distribution
I was told by one of the VC++ team members in posthttp://forums.microsoft.com/msdn/ShowPost.aspx?PostID=122581 that I should post this message here.
The MSI.lib file is not present in the VC++ 2005 distribution (MSI.h is present), either the final release or any of its predecessors. An issue was filed back in April and nothing was done about it (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=0b0da5e9-7343-4027-ab4c-bbca58471816).If
the bug was raised by end users to the wrong group, the VC++ group should have passed it to the correct group. That would have been the prudent thing to do. Wedon't know who internally is in charge of every aspect of your product. Something as simple as this to get fixed should have not been overlooked.
Please fix this problem!!!!!
[1197 byte] By [
simdoc] at [2008-2-13]
It's the SDK version distributed with Visual Studio 2005 not the "standalone" SDKs. That's the reason I thought it was a VC++ 2005 issue, not a platform SDK issue.
If I install the regular platform SDK, MSI.lib is there, but it should also be in the version distributed with VC++ 2005 as well. MSI.h is present, why not MSI.lib? I've not noticed any other PSDK library missing either.
Thanks.
To Top this off. If you install the stand alone platform SDK the environment variable for LIB dont work. I thought this was initially due to spaces but after reinstalling to a path with no spaces in the name of %LIB% still pointed to "c:\program", even after rebooting.
Please can we have an update for the msi.lib to be included within the SDK that comes with Vs2005 or a working stand alone platform SDK.
I have tried added %mssdk%\lib and just %LIB% to the additional libraries in the linker settings in VS2005 but the msi.lib still cant be found. Wasting valuable time on this.
msi.lib does ship in the standalone Platform SDK for Windows 2003 SP1, as well as the AMD64 and IA64 sub-directories of the \lib directory for the Platform SDK that ships as part of Visual Studio 2005.
Visual Studio 2005, however, does not use your %LIB% environment variable. You need to add the directory to your Library files list of paths in VS's Options dialog. See http://blogs.msdn.com/heaths/archive/2005/12/15/504399.aspx for details.
Does the msi.lib file included with Vista Platform SDK work on Windows XP?
Note that with VS 2005 the file msi.lib is not found in either VC\PlatformSDK\lib\AMD64 or VC\PLatform\lib\IA64 directories. I am using VS 2005 Team Suite.
HI,
I have msi.lib file from
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64 directory and trying to build a project. from a command line using MSBUILD.exe the above path is set in enviroment variables
path and
LIB when I build the project from command line the linker gives me following error.
LNK2019: unresolved external symbol _MsiCloseHandle@4 referenced in function _SendErrorMessage
NK2001: unresolved external symbol _MsiCloseHandle@4
LNK2019: unresolved external symbol _MsiProcessMessage@12 referenced in function _SendErrorMessage
LNK2019: unresolved external symbol _MsiRecordSetStringW@12 referenced in function _SendErrorMessage
LNK2019: unresolved external symbol _MsiCreateRecord@4 referenced in function _SendErrorMessage
NK2001: unresolved external symbol _MsiCreateRecord@4
LNK2019: unresolved external symbol _MsiSetPropertyA@12 referenced in function _CheckDC
NK2001: unresolved external symbol _MsiSetPropertyA@12
LNK2019: unresolved external symbol _MsiGetPropertyA@16 referenced in function _CheckDC
2001: unresolved external symbol _MsiGetPropertyA@16
NK2019: unresolved external symbol _MsiViewClose@4 referenced in function _GetAvailableLocales@4
NK2019: unresolved external symbol _MsiViewModify@12 referenced in function _GetAvailableLocales@4
NK2019: unresolved external symbol _MsiRecordSetInteger@12 referenced in function _GetAvailableLocales@4
NK2019: unresolved external symbol _MsiRecordSetStringA@12 referenced in function _GetAvailableLocales@4
NK2019: unresolved external symbol _MsiDatabaseOpenViewA@12 referenced in function _GetAvailableLocales@4
NK2019: unresolved external symbol _MsiGetActiveDatabase@4 referenced in function _GetAvailableLocales@4
error LNK1120: 12 unresolved externals
Wondering if I have a wrong verion of Msi.lib? Correct me if my understanding is wrong.
Thanks in advance.
Regards
Abhi