{"id":485,"date":"2012-09-17T23:20:06","date_gmt":"2012-09-17T21:20:06","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=485"},"modified":"2019-07-08T08:46:11","modified_gmt":"2019-07-08T08:46:11","slug":"how-visual-installer-handles-64-bit-folders-in-windows","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2012\/09\/how-visual-installer-handles-64-bit-folders-in-windows\/","title":{"rendered":"How Visual Installer handles 64 bit folders in Windows"},"content":{"rendered":"<p>In a 64 bit computer with 64 bit Windows installed there exists two <strong>Program Files<\/strong> folders and two <strong>System<\/strong> folders. The reason to this is that 32 bit binary files and 64 bit binary files must be placed in different folders. When you distribute and install a program it is important that you install your files in correct folders. 64 bit binary files must be installed in 64 bit folders and 32 bit binary files must be installed in 32 bit folders, otherwise your program may not work. It is not necessary to install data files with 64 or 32 bit data in specific folders; this is only important when binary \/ executable files are installed (for example EXE files and DLL files).<\/p>\n<p>Our setup tool <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\">SamLogic Visual Installer<\/a> handles all this automatically if you specify the bitness for your setup project in the <strong>32\/64 bit<\/strong> tab in the <strong>Setup options<\/strong> dialog box in the editor, and uses the <strong>%PROGRAMFILES<\/strong> and <strong>%SYSDIR<\/strong> variables when you specify destination folders for your installaton files.<\/p>\n<p>The <strong>%PROGRAMFILES<\/strong> variable can be used in the <strong>Main folder<\/strong> text box in the <strong>File list<\/strong> tab in the Visual Installer editor. The picture below shows an example of usage:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/visual-installer-main-folder.gif\" border=\"0\" alt=\"\" hspace=\"0\" vspace=\"1\"><\/p>\n<p>And if a file should be installed to the System folder in Windows, you can choose the <strong>System directory (%SYSDIR)<\/strong> option in the <strong>Destination folder<\/strong> dialog box, as shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/visual-installer-dialogbox-destdir-system.gif\" border=\"0\" alt=\"\" hspace=\"0\" vspace=\"1\"><\/p>\n<p>If you use these variables in the way described above, your files will always be installed to correct folders in the system.<\/p>\n<p><strong>More information<\/strong><br \/>\nMore information about 32 and 64 bit folders is available in this article on our web site:<br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/articles\/32-64-bit-windows-folder-x86-syswow64.htm\">Windows 64-bit: The &#8216;Program Files (x86)&#8217; and &#8216;SysWOW64&#8217; folders explained<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a 64 bit computer with 64 bit Windows installed there exists two Program Files folders and two System folders. The reason to this is that 32 bit binary files and 64 bit binary files must be placed in different folders. When you distribute and install a program it is important that you install your &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2012\/09\/how-visual-installer-handles-64-bit-folders-in-windows\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How Visual Installer handles 64 bit folders in Windows&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/485"}],"collection":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":6193,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions\/6193"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}