{"id":5458,"date":"2018-02-28T14:00:48","date_gmt":"2018-02-28T13:00:48","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=5458"},"modified":"2019-07-07T17:12:43","modified_gmt":"2019-07-07T17:12:43","slug":"how-to-remember-installation-date","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2018\/02\/how-to-remember-installation-date\/","title":{"rendered":"How to remember installation date"},"content":{"rendered":"<p>When you install a software it can sometimes be useful to remember the installation date. In <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer<\/a> you can do it by using the <span style=\"color: #800000;\">%DATE<\/span> variable, which retrieves the current date from the system during an installation. The contents of the <span style=\"color: #800000;\">%DATE<\/span> variable can then be stored in the Registry or in an INI file.<\/p>\n<p>If you want to store the current date in the Registry during the installation, you can enter a line like this in Visual Installer&#8217;s <strong>Registry<\/strong> tab:<\/p>\n<p><span style=\"font-size: 14px;\">HKEY_LOCAL_MACHINE\\SOFTWARE\\MyCompany\\MySoftware :: InstallationDate=&#8221;<span style=\"color: #800000;\">%DATE<\/span>&#8220;<\/span><\/p>\n<p>See also the picture below (the screen dump is from the <strong>Registry<\/strong> tab):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-tab-registry--date-variable--cropped.png\" alt=\"The 'Registry' tab in Visual Installer\" border=\"0\"><\/p>\n<p>The <span style=\"color: #800000;\">%DATE<\/span> variable will be replaced with the current date when your files are installed in the end user&#8217;s computer. The picture below shows how it may look like:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/windows-registry-installationdate.png\" alt=\"The Windows Registry\" border=\"0\"><\/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\/07\/variables-in-visual-installer\/\">Variables in Visual Installer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install a software it can sometimes be useful to remember the installation date. In Visual Installer you can do it by using the %DATE variable, which retrieves the current date from the system during an installation. The contents of the %DATE variable can then be stored in the Registry or in an INI &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2018\/02\/how-to-remember-installation-date\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to remember installation date&#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\/5458"}],"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=5458"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5458\/revisions"}],"predecessor-version":[{"id":6006,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5458\/revisions\/6006"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=5458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=5458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=5458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}