{"id":7265,"date":"2022-06-05T14:00:03","date_gmt":"2022-06-05T14:00:03","guid":{"rendered":"https:\/\/www.samlogic.net\/blog\/?p=7265"},"modified":"2022-06-11T16:02:27","modified_gmt":"2022-06-11T16:02:27","slug":"how-to-test-if-a-specific-version-of-access-is-installed","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2022\/06\/how-to-test-if-a-specific-version-of-access-is-installed\/","title":{"rendered":"How to test if a specific version of Access is installed"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/visual-installer\/news\/visual-installer-2022\/pictures\/access-logotype-black-white-h530.png\" width=\"115\" height=\"117\" border=\"0\" alt=\"Logotype - Microsoft Access\">In <a href=\"https:\/\/www.samlogic.net\/blog\/2022\/02\/how-to-test-if-microsoft-access-or-microsoft-excel-is-installed\/\">this blog post<\/a> we described how to check if Microsoft Access is installed in a computer by using script code in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" rel=\"noopener\" target=\"_blank\">Visual Installer<\/a>. But if you want to check if a specific <em>version<\/em> of Access is installed. Is it possible?<\/p>\n<p>Yes. It is. It is possible to check if a specific version of Access is installed in a computer. To achieve this, you can extend this conditional test:<\/p>\n<p><strong>IF ACCESS_INSTALLED<\/strong><\/p>\n<p>with a version number, like this:<\/p>\n<p><strong>IF ACCESS(15)_INSTALLED<\/strong><\/p>\n<p>In the example above, Visual Installer will check if Access version <strong>15<\/strong> (Access 2013) is installed. The conditional test gives True if Access version 15 is installed and False if it is not.<\/p>\n<p><span style=\"color: #000080; font-size: 20px;\"><strong>How to check for a specific bitness of Access<\/strong><\/span><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/blog\/images\/other\/32-bit-64-bit-symbolic.jpg\" border=\"0\" width=\"150\" height=\"71\" alt=\"Symbolic image: 32 \/ 64 bit\">It is also possible to check if a specific bitness (32 or 64 bit) of Microsoft Access is installed in a computer &#8211; in addition to the version number. For example, to check if a 64 bit version of Access 2013 (version 15) is installed, you can use the following script:<\/p>\n<p><strong>IF ACCESS(15)_64BIT_INSTALLED<\/strong><\/p>\n<p>If you instead want to check if a 32 bit version of Access 2013 is installed, you can use the following script line:<\/p>\n<p><strong>IF ACCESS(15)_32BIT_INSTALLED<\/strong><\/p>\n<p>If you want to check which bitness of Access that is installed, regardless of the version number, there is another conditional test than you can use. For example, to check if any 64 bit Access is installed in the computer, you can use the following conditional test:<\/p>\n<p><strong>IF ACCESSBIT=64<\/strong><\/p>\n<p>In the same way you can check if any 32 bit Access is installed in the computer, by using this conditional test:<\/p>\n<p><strong>IF ACCESSBIT=32<\/strong><\/p>\n<p><span style=\"color: #000080; font-size: 20px;\"><strong>Examples<\/strong><\/span><br \/>\nBelow are some script examples that shows how to use the conditional tests:<\/p>\n<div style=\"background-color: #f4f4f4; padding: 8px;\"><span style=\"color: #008000;\">\/\/ Example 1 \u2013 Tests if Microsoft Access 2013 is installed in the system<\/span><br \/>\n<span style=\"color: #000080;\">IF<\/span> ACCESS(15)_INSTALLED<br \/>\n<span style=\"color: #000080;\">\u00a0 RUN<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\Install-Access2013-Tools.exe<br \/>\n<span style=\"color: #000080;\">END IF<\/span><br \/>\n<span style=\"color: #000080;\"> &nbsp; <\/span><br \/>\n<span style=\"color: #008000;\">\/\/ Example 2 \u2013 Tests if a 32 bit version of Microsoft Access 2013 is installed in the system<\/span><br \/>\n<span style=\"color: #000080;\">IF<\/span> ACCESS(15)_32BIT_INSTALLED<br \/>\n<span style=\"color: #000080;\">\u00a0 RUN<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\Install-Access2013-32bit-Tools.exe<br \/>\n<span style=\"color: #000080;\">END IF<\/span><br \/>\n<span style=\"color: #000080;\"> &nbsp; <\/span><br \/>\n<span style=\"color: #008000;\">\/\/ Example 3 \u2013 Tests if any 32 bit version of Microsoft Access is installed in the system<\/span><br \/>\n<span style=\"color: #000080;\">IF<\/span> ACCESSBIT=32<br \/>\n<span style=\"color: #000080;\">\u00a0 RUN<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\Install-Access-32bit-Tools.exe<br \/>\n<span style=\"color: #000080;\">END IF<\/span>\n<\/div>\n<p>&nbsp;&nbsp;<br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>Access version numbers<\/strong><\/span><br \/>\nIn <a href=\"https:\/\/www.samlogic.net\/blog\/2022\/06\/microsoft-access-version-numbers\/\">this blog post<\/a> you will find a list with available version numbers for some of the conditional tests described above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post we described how to check if Microsoft Access is installed in a computer by using script code in Visual Installer. But if you want to check if a specific version of Access is installed. Is it possible? Yes. It is. It is possible to check if a specific version of Access &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2022\/06\/how-to-test-if-a-specific-version-of-access-is-installed\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to test if a specific version of Access is installed&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/7265"}],"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=7265"}],"version-history":[{"count":39,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/7265\/revisions"}],"predecessor-version":[{"id":7309,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/7265\/revisions\/7309"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=7265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=7265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=7265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}