{"id":4624,"date":"2014-03-30T14:03:23","date_gmt":"2014-03-30T14:03:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/using-cx_freeze-python-2-7-on-a-windows-box-ootb-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:03:23","modified_gmt":"2014-03-30T14:03:23","slug":"using-cx_freeze-python-2-7-on-a-windows-box-ootb-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/using-cx_freeze-python-2-7-on-a-windows-box-ootb-collection-of-common-programming-errors\/","title":{"rendered":"Using cx_Freeze (Python 2.7) on a Windows box OOTB-Collection of common programming errors"},"content":{"rendered":"<p>AFAIK if you have a Visual Studio licence, you have the right to bundle the appropriate <code>msvcrXY.dll<\/code> with your application. That will make it run without having to install the runtime files.<\/p>\n<p>If you don&#8217;t have a Visual Studio licence, I can think of two solutions:<\/p>\n<p>One is to bundle the VS runtime installer with your application (if that is allowed by the licence), and make a tiny batch file\/program that runs the installer if necessary, and then your program. This is not ideal if e.g. the user doesn&#8217;t have admin rights.<\/p>\n<p>The other option I can think of is for you to compile Python with Mingw-gcc, and then use that Python to create your frozen executable. Then it won&#8217;t depend on the VS runtime libraries. This approach is of course much more complicated and will probably require quite a bit of tinkering. Perhaps someone has already done it though.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AFAIK if you have a Visual Studio licence, you have the right to bundle the appropriate msvcrXY.dll with your application. That will make it run without having to install the runtime files. If you don&#8217;t have a Visual Studio licence, I can think of two solutions: One is to bundle the VS runtime installer with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4624","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4624"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4624\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}