{"id":6888,"date":"2021-07-31T14:00:39","date_gmt":"2021-07-31T14:00:39","guid":{"rendered":"https:\/\/www.samlogic.net\/blog\/?p=6888"},"modified":"2021-07-31T18:23:56","modified_gmt":"2021-07-31T18:23:56","slug":"how-to-display-a-text-message-during-an-installation","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2021\/07\/how-to-display-a-text-message-during-an-installation\/","title":{"rendered":"How to display a text message during an installation"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/pad\/icons\/visual_installer.gif\" alt=\"\" border=\"0\">It is possible to display a text message during an installation (that is created with Visual Installer). You can do it via Visual Installer&#8217;s script language. There are two commands available for this purpose:<\/p>\n<p><strong><span style=\"display:inline-block; width: 100px;\">MESSAGE<\/span><\/strong> : Displays a text message on the progress bar window.<br \/>\n<strong><span style=\"display:inline-block; width: 100px;\">MSGBOX<\/span><\/strong> : Shows a message box with a title, text and an OK button.<\/p>\n<p>If you use the <strong>MESSAGE<\/strong> command, the text will be shown until another text need to be displayed or the progress bar is closed. If you use the <strong>MSGBOX<\/strong> command, the installation will pause until the end-user click the OK button in the message box. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>MESSAGE<\/strong><br \/>\nBelow is an example of how to use the <strong>MESSAGE<\/strong> command:<\/p>\n<div style=\"background-color: #f4f4f4; padding: 8px;\"><span style=\"color: #000080;\">MESSAGE<\/span> My MSI installation is running<br \/>\n<span style=\"color: #000080;\">MSIEXEC<\/span> <span style=\"color: #800000;\">%DESTDIR<\/span>\\MySetup.msi, \/qn, WAIT<\/div>\n<p>&nbsp;&nbsp;&nbsp;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>MSGBOX<\/strong><br \/>\nBelow is an example of how to use the <strong>MSGBOX<\/strong> command:<\/p>\n<div style=\"background-color: #f4f4f4; padding: 8px;\"><span style=\"color: #000080;\">IF NOT OFFICEINSTALLED<\/span><br \/>\n<span style=\"color: #000080;\">\u00a0 MSGBOX<\/span> Information, There is no MS Office installed in this computer! , 2<br \/>\n<span style=\"color: #000080;\">\u00a0 EXIT<\/span><br \/>\n<span style=\"color: #000080;\">END IF<\/span><\/div>\n<p>&nbsp;&nbsp;&nbsp;<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-msgbox-command--msgbox-example.png\" alt=\"MSGBOX\" border=\"0\" width=\"365\" height=\"168\">The picture to the right shows how the message box created in the scripting code example above will look like when shown during an installation. When the end-user clicks on the OK button, the installation continues to the next script line, where the <strong>EXIT<\/strong> command halts the installation.<\/p>\n<p><strong>More information<\/strong><br \/>\nMore information about the commands described above is available in Visual Installer\u00b4s Help Documentation and <a href=\"https:\/\/www.samlogic.net\/visual-installer\/pdf\/VI.pdf\" rel=\"noopener\" target=\"_blank\">User\u00b4s Guide<\/a>. General information about Visual Installer&#8217;s script language can be found on this <a href=\"https:\/\/www.samlogic.net\/visual-installer\/tips\/tips-pages\/visual-installer-scripting-language\/visual-installer-scripting-language.htm\" rel=\"noopener\" target=\"_blank\">web page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to display a text message during an installation (that is created with Visual Installer). You can do it via Visual Installer&#8217;s script language. There are two commands available for this purpose: MESSAGE : Displays a text message on the progress bar window. MSGBOX : Shows a message box with a title, text &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2021\/07\/how-to-display-a-text-message-during-an-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to display a text message during an installation&#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":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6888"}],"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=6888"}],"version-history":[{"count":33,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6888\/revisions"}],"predecessor-version":[{"id":6921,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6888\/revisions\/6921"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=6888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=6888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=6888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}