{"id":138,"date":"2009-10-06T13:14:11","date_gmt":"2009-10-06T17:14:11","guid":{"rendered":"http:\/\/www.sofastatistics.com\/blog\/?p=138"},"modified":"2009-10-06T13:35:43","modified_gmt":"2009-10-06T17:35:43","slug":"windows-installation-issues-1","status":"publish","type":"post","link":"http:\/\/www.sofastatistics.com\/blog\/windows-installation-issues-1\/","title":{"rendered":"Installing missing dlls in Windows for SOFA Statistics"},"content":{"rendered":"<p>Creating a Windows installation package that works on everything from XP Home Edition to Vista 64-bit Business Edition is manageable but not exactly trivial.\u00a0 Sometimes a single file can create a lot of issues e.g. msvcr71.dll (See <a href=\"http:\/\/www.sofastatistics.com\/blog\/?p=113\" target=\"_blank\">http:\/\/www.sofastatistics.com\/blog\/?p=113<\/a>). To ensure this file is available on the target computer it is not simply a matter of transferring the file in the same way that other files are transferred.\u00a0 The correct approach using NSIS is to run InstallLib.<\/p>\n<p>The following item was helpful &#8211; <a href=\"http:\/\/blacksheepsoftware.com.au\/bradley\/wordpress\/?p=17\" target=\"_blank\">http:\/\/blacksheepsoftware.com.au\/bradley\/wordpress\/?p=17<\/a>. The NSIS documentation of relevance is here &#8211; <a href=\"http:\/\/nsis.sourceforge.net\/Docs\/AppendixB.html\" target=\"_blank\">http:\/\/nsis.sourceforge.net\/Docs\/AppendixB.html<\/a>.<\/p>\n<p>The snippet of code used in the latest SOFA Statistics package for Windows is:<\/p>\n<p><code>; http:\/\/nsis.sourceforge.net\/Docs\/AppendixB.html<br \/>\nIfFileExists \"$PROGRAMFILES\\sofa\\start.pyw\" 0 new_installation<\/code><\/p>\n<p>StrCpy $ALREADY_INSTALLED 1<\/p>\n<p>new_installation:<\/p>\n<p>!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED &#8220;G:\\3 SOFA dev\\sofalibs\\msvcr71.dll&#8221; $SYSDIR\\msvcr71.dll $SYSDIR<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a Windows installation package that works on everything from XP Home Edition to Vista 64-bit Business Edition is manageable but not exactly trivial.\u00a0 Sometimes a single file can create a lot of issues e.g. msvcr71.dll (See http:\/\/www.sofastatistics.com\/blog\/?p=113). To ensure this file is available on the target computer it is not simply a matter of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-developers"],"_links":{"self":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":7,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":148,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions\/148"}],"wp:attachment":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}