{"id":1335,"date":"2013-06-14T01:54:36","date_gmt":"2013-06-13T23:54:36","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=1335"},"modified":"2021-05-22T10:49:44","modified_gmt":"2021-05-22T10:49:44","slug":"visual-installer-how-do-i-install-files-to-program-files-folder","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2013\/06\/visual-installer-how-do-i-install-files-to-program-files-folder\/","title":{"rendered":"Visual Installer: How do I install files to the Program Files folder?"},"content":{"rendered":"<p>Applications (programs) are usually installed to the <strong>Program Files<\/strong> folder in Windows. The exact folder path may differ between different versions of Windows. The folder path is for example different between a 32 bit and 64 bit Windows, and for example a Spanish Windows uses a different folder path than an English Windows.<\/p>\n<p>This will make it difficult to hard code the folder path to the <strong>Program Files<\/strong> folder. If you use Visual Installer for your setup projects you can use an environment variable to handle the <strong>Program Files<\/strong> folder. The name of the variable is <strong>%PROGRAMFILES<\/strong> and the variable will be replaced with the current folder path to the <strong>Program Files<\/strong> folder during the installation. By using this variable you don&#8217;t need to worry about the bitness of the Windows or which country \/ language version of Windows that is run.<\/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><strong>More information<\/strong><br \/>\nWe have published more information about the <strong>%PROGRAMFILES<\/strong> variable in the following two Visual Installer related blog posts:<\/p>\n<p><strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2012\/09\/install-files-correct-folder-visual-installer\/\">How to install files in the correct folder using Visual Installer<\/a><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2012\/09\/how-visual-installer-handles-64-bit-folders-in-windows\/\">How Visual Installer handles 64 bit folders in Windows<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applications (programs) are usually installed to the Program Files folder in Windows. The exact folder path may differ between different versions of Windows. The folder path is for example different between a 32 bit and 64 bit Windows, and for example a Spanish Windows uses a different folder path than an English Windows. This will &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2013\/06\/visual-installer-how-do-i-install-files-to-program-files-folder\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Visual Installer: How do I install files to the Program Files folder?&#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":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/1335"}],"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=1335"}],"version-history":[{"count":3,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/1335\/revisions"}],"predecessor-version":[{"id":6874,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/1335\/revisions\/6874"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=1335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=1335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=1335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}