{"id":2593,"date":"2005-12-15T16:15:00","date_gmt":"2005-12-15T16:15:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/2005\/12\/15\/wheres-msi-lib\/"},"modified":"2005-12-15T16:15:00","modified_gmt":"2005-12-15T16:15:00","slug":"wheres-msi-lib","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/wheres-msi-lib\/","title":{"rendered":"Where&#039;s Msi.lib?"},"content":{"rendered":"<p>If you&#8217;re developing\n<a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/msi\/setup\/custom_actions.asp\">\ncustom actions<\/a> for Windows Installer or a bootstrapper in Visual Studio\n2005, or utilizing the\n<a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/msi\/setup\/resiliency.asp\">\nresiliency<\/a> and\n<a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/msi\/setup\/installation_on_demand.asp\">\ninstall-on-demand<\/a> features of Windows Installer in your product developed\nin Visual Studio 2005, you might get link errors for Windows Installer\nfunctions. <em>Msi.lib<\/em> was not included for x86 in the Platform SDK <em>lib<\/em>\ndirectory if you installed Visual C++. It is present for x64 in the <em>AMD64<\/em>\nsub-directory and the <em>IA64<\/em> sub-directory, however. See\n<a href=\"http:\/\/msdn.microsoft.com\/vstudio\/products\/compare\/default.aspx\">Visual\nStudio 2005 Product Line Overview<\/a> for what editions are affected.<\/p>\n<p>In order to get <em>msi.lib<\/em> for x86 you need to install at least the\nWindows Installer SDK feature of the Platform SDK. The libraries in the <em>\nAMD64<\/em> and <em>IA64<\/em> sub-directories of Visual Studio 2005 RTM have the\nsame date stamp as <em>msi.lib<\/em> in the\n<a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5\">\nWindows Server 2003 SP1 Platform SDK<\/a>. Once installed you can either copy\nmsi.lib from <em>Program FilesMicrosoft Platform SDKLib<\/em> to <em>Program\nFilesMicrosoft Visual Studio 2005VCPlatfromSDKLib<\/em> or what I recommend\nis adding the Platform SDK directories in the Visual Studio 2005 options as\npreferred directories.<\/p>\n<ol>\n<li>Start Visual Studio 2005<\/li>\n<li>Click on the Tools -&gt; Options menu<\/li>\n<li>Expand Projects and Solutions, and select VC++ Directories<\/li>\n<li>Make sure &#8220;Executable files&#8221; is selected in the drop-down selection box\n\tentitled &#8220;Show directories for:&#8221;<\/li>\n<li>Add the path to the <em>bin<\/em> folder under the Platform SDK\n\tinstallation root, such as <i>$(ProgramFiles)Microsoft Platform SDKbin<\/i><\/li>\n<li>Select &#8220;Include files&#8221; in the drop-down selection box entitled &#8220;Show\n\tdirectories for:&#8221;<\/li>\n<li>Add the path to the <em>include<\/em> folder under the Platform SDK\n\tinstallation root, such as <i>$(ProgramFiles)Microsoft Platform SDKinclude<\/i><\/li>\n<li>Select &#8220;Library files&#8221; in the drop-down selection box entitled &#8220;Show\n\tdirectories for:&#8221;<\/li>\n<li>Add the path to the <i>lib<\/i> folder under the Platform SDK\n\tinstallation root, such as <i>$(ProgramFiles)Microsoft Platform SDKlib<\/i><\/li>\n<\/ol>\n<p>You can choose to move these directories up past their corresponding\ndirectories that begin with <i>$(VCInstallDir)PlatformSDK<\/i>. These are the\ndirectories for the Platform SDK that ships with Visual Studio 2005. If you\ndon&#8217;t, they will take precedence and <i>msi.lib<\/i> will be found eventually\nusing the new directories you just added anyway.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re developing custom actions for Windows Installer or a bootstrapper in Visual Studio 2005, or utilizing the resiliency and install-on-demand features of Windows Installer in your product developed in Visual Studio 2005, you might get link errors for Windows Installer functions. Msi.lib was not included for x86 in the Platform SDK lib directory if [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":3843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[14],"class_list":["post-2593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-development"],"acf":[],"blog_post_summary":"<p>If you&#8217;re developing custom actions for Windows Installer or a bootstrapper in Visual Studio 2005, or utilizing the resiliency and install-on-demand features of Windows Installer in your product developed in Visual Studio 2005, you might get link errors for Windows Installer functions. Msi.lib was not included for x86 in the Platform SDK lib directory if [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/2593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=2593"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/2593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=2593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=2593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=2593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}