{"id":5489,"date":"2018-03-24T14:00:37","date_gmt":"2018-03-24T13:00:37","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=5489"},"modified":"2019-07-07T17:11:37","modified_gmt":"2019-07-07T17:11:37","slug":"how-to-write-protect-a-file-after-installation","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2018\/03\/how-to-write-protect-a-file-after-installation\/","title":{"rendered":"How to write-protect a file after installation"},"content":{"rendered":"<p>Sometimes it is necessary to write-protect a file after it has been installed on a hard drive. If you use <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer<\/a> to install your files, this is very easy done if you follow these steps:<\/p>\n<p><strong>1.<\/strong> Open your project file or create a new one.<br \/>\n<strong>2.<\/strong> In the <strong>File list<\/strong> tab, select the file that you want to write-protect.<br \/>\n<strong>3.<\/strong> Choose the <strong>List &#8211; File copy options<\/strong> menu item.<br \/>\n<strong>4.<\/strong> Select the <strong>Turn on write protection<\/strong> option:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-dialogbox-copy-options--turn-on-write-protection--arrow.png\" alt=\"The 'Copy Options' dialog box (1)\" border=\"0\"><\/p>\n<p><strong>5.<\/strong> Click <strong>OK<\/strong>.<\/p>\n<p>If you want to be able to update the write-protected file during a future update, you can also select the <strong>Replace also write protected file<\/strong> option:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-dialogbox-copy-options--replace-also-write-protected-file--arrow.png\" alt=\"The 'Copy Options' dialog box (2)\" border=\"0\"><\/p>\n<p>Now when you install your files, the file that you selected at step 2 above, will be write-protected after the installation. You can check that this really works as expected by right-clicking on the file in Windows Explorer and thereafter choosing the <strong>Properties<\/strong> menu item in the local menu that is shown. In the <strong>General<\/strong> tab in the <strong>Properties<\/strong> dialog box, the <strong>Read-only<\/strong> check box should be checked (as shown in the picture below):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/windows-properties-box--read-only--arrow.png\" alt=\"The 'Properties' dialog box\" 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\/10\/how-to-set-file-copy-options-in-visual-installer\/\">How to set file copy options in Visual Installer<\/a><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/10\/the-inst-column-in-the-file-list-tab-in-visual-installer\/\">The \u2018Inst\u2019 column in the \u2018File list\u2019 tab in Visual Installer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it is necessary to write-protect a file after it has been installed on a hard drive. If you use Visual Installer to install your files, this is very easy done if you follow these steps: 1. Open your project file or create a new one. 2. In the File list tab, select the file &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2018\/03\/how-to-write-protect-a-file-after-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to write-protect a file after installation&#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\/5489"}],"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=5489"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5489\/revisions"}],"predecessor-version":[{"id":6005,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5489\/revisions\/6005"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=5489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=5489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=5489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}