{"id":1769,"date":"2013-06-09T21:30:41","date_gmt":"2013-06-10T01:30:41","guid":{"rendered":"http:\/\/www.jlao.net\/?p=1769"},"modified":"2013-08-09T20:01:15","modified_gmt":"2013-08-10T00:01:15","slug":"hana-%e5%ae%a2%e6%88%b7%e7%ab%af%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/www.jlao.net\/en\/technology\/1769\/","title":{"rendered":"HANA Client installation failure"},"content":{"rendered":"<p>Today I tried to install SAP HANA Client onto my Windows 7 64-bit laptop but it failed with some errors of &#8220;Registration of package &#8220;ODBO&#8221; failed&#8221;. The log mentioned that &#8220;Command line is: C:\\WINDOWS\\system32\\regsvr32.exe \/s &#8220;C:\\Program Files\\SAP\\HDBClient\\SAPNewDBMDXProvider.dll&#8221;&#8221;, and &#8220;Program terminated with exit code 3&#8221;.<br \/>\n<!--more--><br \/>\nI did some google and found some others with <a href=\"https:\/\/scn.sap.com\/thread\/2072944\">similar failure to register ODBO<\/a>, but their issue was that the &#8220;SystemDirectory&#8221; value could not be found. Their solution was to add an expandable string &#8220;SystemDirectory&#8221; in the registry under &#8220;HKLM\\System\\CurrentControlSet\\Control\\Windows&#8221;, and set it to &#8220;%SystemRoot%\\system32&#8221;. This would conclude their issue, but my setting was correct so it did not help.<\/p>\n<p>I then manually tried to run regsvr32, both 32-bit and 64-bit versions on this SAPNewDBMDXProvider.dll, which <strong>both <\/strong>came back with the perplexing error prompt &#8220;<em>The module &#8230; may not compatible with the version of Windows that you&#8217;re running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.<\/em>&#8221; (Microsoft bad grammar here&#8230;). How could it be neither 64-bit nor 32-bit?<\/p>\n<p>Another failure in the log mentioned that the registering with &#8220;odbcreg&#8221; also fails. Then I found that when I clicked on <em>any<\/em> executable file installed in Program Files\\sap\\hdbclient directory, it would fail with &#8220;The Application was unable to start correctly (0xc000007b). Click OK to close the application&#8221;. Googling on this error code came back with a hideous number of results, pointing to different directions. Some suggested a system restore (Arrgh!) and others some registry clean-up tool (which didn&#8217;t work for me either). Yet some mentioned &#8220;The problem was due to 32\/64-bit mismatches of various system dlls&#8221;, which looked a bit more reasonable to me.<\/p>\n<p>Some further searching led me to this remarkable tool of <a title=\"Dependency Walker\" href=\"https:\/\/www.dependencywalker.com\/\">Dependency Walker<\/a>. When it opened a file (say regi.exe), it immediately prompted that there was a mixture of 32-bit and 64-bit dlls, and highlighted the 32-bit msvcr100.dll and msvcp100.dll in my windows\\system32 directory. The strange thing was, even after I installed the <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=13523\">Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)<\/a> myself (HANA client did that as well), those files were not replaced, for some mysterious reasons.<\/p>\n<p>Finally I manually extracted the x64 dll files from the redistributable package (WinRAR will do), renamed them and copied them into my system32 folder. Everything works out fine now.<\/p>","protected":false},"excerpt":{"rendered":"<p>Today I tried to install SAP HANA Client onto my Windows 7 64-bit laptop but it failed with some errors of &#8220;Registration of package &#8220;ODBO&#8221; failed&#8221;. The log mentioned that &#8220;Command line is: C:\\WINDOWS\\system32\\regsvr32.exe \/s &#8220;C:\\Program Files\\SAP\\HDBClient\\SAPNewDBMDXProvider.dll&#8221;&#8221;, and &#8220;Program terminated with exit code 3&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[112,113,114],"class_list":["post-1769","post","type-post","status-publish","format-standard","hentry","category-technology","tag-hana-client","tag-odbo","tag-0xc00000b7"],"_links":{"self":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/1769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/comments?post=1769"}],"version-history":[{"count":0,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/1769\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/media?parent=1769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/categories?post=1769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/tags?post=1769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}