{"id":5668,"date":"2018-07-15T14:00:40","date_gmt":"2018-07-15T13:00:40","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=5668"},"modified":"2023-07-12T06:54:10","modified_gmt":"2023-07-12T06:54:10","slug":"visual-installer-the-xrun-command-now-also-supports-os-and-bitness","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2018\/07\/visual-installer-the-xrun-command-now-also-supports-os-and-bitness\/","title":{"rendered":"Visual Installer: The XRUN command now also supports OS and bitness"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/pad\/icons\/visual_installer.gif\" alt=\"SamLogic Visual Installer Logotype\" border=\"0\">The <strong>XRUN<\/strong> script command in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer<\/a> has been updated and extended to handle two more parameters: <strong>%OS<\/strong> and <strong>%Bitness<\/strong>. These two parameters are optional and allows you to specify in which Windows version and with which Windows bitness (32 bit\/64 bit) the program file that <strong>XRUN<\/strong> starts can be run in. Below are some more information about the two parameters:<\/p>\n<p><strong><span style=\"font-size: 17px;\">%OS<\/span><\/strong><br \/>\nThe <strong>%OS<\/strong> parameter is an optional parameter that specifies in which operating system (Windows version) the program can be run in. You can specify if the program can be run in Windows 7, Windows 8, Windows 10, or in any Windows. If you omit this parameter the program will be run in any Windows version.<\/p>\n<p><strong><span style=\"font-size: 17px;\">%Bitness<\/span><\/strong><br \/>\nThe <strong>%Bitness<\/strong> parameter is an optional parameter that specifies which bitness (32 bit or 64 bit) the operating system (Windows version) must have to let the program start. The program will only be run if the Windows bitness match the bitness that you specify via this parameter. If you omit this parameter the program will be run in a Windows of any bitness (both 32 bit and 64 bit Windows).<\/p>\n<p><strong><span style=\"font-size: 17px;\">Syntax<\/span><\/strong><br \/>\nThe definition of <strong>XRUN<\/strong>, with all of its parameters, is now:<\/p>\n<p><strong><span style=\"font-size: 17px; font-family: 'Courier New', 'Arial';\">XRUN %Filename, %Flag, %Param, %OS, %Bitness<\/span><\/strong><\/p>\n<p>The <strong>Filename<\/strong> parameter specifies the filename of the executable file. The <strong>Flag<\/strong> parameter informs Visual Installer how to start the program. The <strong>Param<\/strong> parameters specifies command line parameters to the executable file (if used). And the <strong>OS<\/strong> and <strong>Bitness<\/strong> parameters are described above<\/p>\n<p><strong><span style=\"font-size: 17px;\">Examples of usage<\/span><\/strong><br \/>\nThe example below starts <strong>MyWin7App.exe<\/strong> if the operating system is Windows 7. If the operating system is anything else, for example Windows 10, the program is never run.<\/p>\n<p><span style=\"color: #000080;\">XRUN&nbsp;<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\MyWin7App.exe, 1, &#8220;&#8221;, 7<\/p>\n<p>The example below starts <strong>MyWin7App.exe<\/strong> if the operating system is a 64 bit Windows 7. If the operating system or bitness is anything else the program is never run.<\/p>\n<p><span style=\"color: #000080;\">XRUN&nbsp;<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\MyWin7App.exe, 1, &#8220;&#8221;, 7, 64<\/p>\n<p>More information about the <strong>XRUN<\/strong> command and the <strong>%OS<\/strong> and <strong>%Bitness<\/strong> parameters is available in Visual Installer\u00b4s <a href=\"https:\/\/www.samlogic.net\/visual-installer\/pdf\/VI.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">User Guide<\/a>.<\/p>\n<p><strong><span style=\"font-size: 17px;\">See also<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/visual-installer\/tips\/tips-pages\/visual-installer-scripting-language\/visual-installer-scripting-language.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer&#8217;s Scripting Language<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The XRUN script command in Visual Installer has been updated and extended to handle two more parameters: %OS and %Bitness. These two parameters are optional and allows you to specify in which Windows version and with which Windows bitness (32 bit\/64 bit) the program file that XRUN starts can be run in. Below are some &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2018\/07\/visual-installer-the-xrun-command-now-also-supports-os-and-bitness\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Visual Installer: The XRUN command now also supports OS and bitness&#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,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5668"}],"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=5668"}],"version-history":[{"count":3,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5668\/revisions"}],"predecessor-version":[{"id":7783,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5668\/revisions\/7783"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=5668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=5668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=5668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}