{"id":4354,"date":"2016-08-24T12:00:35","date_gmt":"2016-08-24T11:00:35","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=4354"},"modified":"2019-07-07T17:59:29","modified_gmt":"2019-07-07T17:59:29","slug":"your-projects-bitness-affects-where-the-reg1-to-reg5-variables-get-their-values","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2016\/08\/your-projects-bitness-affects-where-the-reg1-to-reg5-variables-get-their-values\/","title":{"rendered":"Your project&#8217;s bitness affects where the %REG1 to %REG5 variables get their values"},"content":{"rendered":"<p>As explained in this <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/08\/the-reg1-to-reg5-variables-in-visual-installer\/\">blog post<\/a>, the <strong>%REG1<\/strong> to <strong>%REG5<\/strong> variables in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer<\/a> get their values from the Windows Registry. But you should be aware of that there are two Registry in Windows &#8211; a 32 bit Registry and a 64 bit Registry &#8211; and your project settings will decide which of these Registry to use.<\/p>\n<p>If you start Visual Installer&#8217;s editor and open the <strong>Setup options<\/strong> dialog box and the <strong>32\/64 bit<\/strong> tab, and look in the <strong>Bitness (32 or 64 bit)<\/strong> frame, you will see that there are two options that decide if the installation project is a 32 bit project or a 64 bit project (see the picture below):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-dialogbix-setup-options--tab-32-64-bit.png\" alt=\"The Setup options dialog box\" border=\"0\"><\/p>\n<p>If you install 32 bit files you should select the first option (<strong>The program that will be installed is 32 bit<\/strong>) and if you install 64 bit files you should select the second option (<strong>The program that will be installed is 64 bit<\/strong>). The first option is always selected as default.<\/p>\n<p>These options will also affect where the <strong>%REG1<\/strong> to <strong>%REG5<\/strong> variables get their values. If you have selected <strong>The program that will be installed is 32 bit<\/strong>, the variables will get their values from the 32 bit Registry and if you select <strong>The program that will be installed is 64 bit<\/strong>, the variables will get their values from 64 bit Registry.<\/p>\n<p><strong>There are two Registry editors in Windows<\/strong><br \/>\nYou should also be aware of that there exist two Registry editors in Windows. One of them handles the 32 bit Registry and one of them handles the 64 bit Registry. The filename of the Registry editor is always the same, <strong>regedt32.exe<\/strong>, but you can launch the different versions from different folders in Windows:<\/p>\n<p><strong>32 bit version: C:\\Windows\\SysWOW64<br \/>\n64 bit version: C:\\Windows\\System32<\/strong><\/p>\n<p><strong>See also<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/08\/the-reg1-to-reg5-variables-in-visual-installer\/\">The %REG1 to %REG5 variables in Visual Installer<\/a><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\" target=\"_blank\" rel=\"noopener noreferrer\">The &#8216;Program Files (x86)&#8217; and &#8216;SysWOW64&#8217; folders explained<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As explained in this blog post, the %REG1 to %REG5 variables in Visual Installer get their values from the Windows Registry. But you should be aware of that there are two Registry in Windows &#8211; a 32 bit Registry and a 64 bit Registry &#8211; and your project settings will decide which of these Registry &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2016\/08\/your-projects-bitness-affects-where-the-reg1-to-reg5-variables-get-their-values\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Your project&#8217;s bitness affects where the %REG1 to %REG5 variables get their values&#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\/4354"}],"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=4354"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/4354\/revisions"}],"predecessor-version":[{"id":6040,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/4354\/revisions\/6040"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=4354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=4354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=4354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}