{"id":5436,"date":"2018-01-31T14:00:23","date_gmt":"2018-01-31T13:00:23","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=5436"},"modified":"2019-07-07T17:13:52","modified_gmt":"2019-07-07T17:13:52","slug":"visual-installer-does-setperm-change-folder-permissions-also-for-sub-folders","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2018\/01\/visual-installer-does-setperm-change-folder-permissions-also-for-sub-folders\/","title":{"rendered":"Visual Installer: Does SETPERM change folder permissions also for sub folders?"},"content":{"rendered":"<p>With the <a href=\"https:\/\/www.samlogic.net\/blog\/2013\/08\/how-to-give-a-standard-user-write-permission-to-a-folder-in-program-files\/\">SETPERM<\/a> script command in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\">Visual Installer&#8217;s<\/a> script language you can change permissions for a folder on the user&#8217;s hard disk during an installation. But what happen with the sub folders? Are the folder permissions inherited?<\/p>\n<p>Yes. They are normally. But if you really want to be sure that all sub folders have the same permission settings as the main folder, you can set the permissions for them separately. For example like this:<\/p>\n<p><span style=\"color: #000080;\">SETPERM<\/span> <span style=\"color: #800000;\"> %DESTDIR<\/span>\\Documents, PERM_ALL<br \/>\n<span style=\"color: #000080;\">SETPERM<span style=\"color: #800000;\">&nbsp;%DESTDIR<\/span><\/span>\\Documents\\Text, PERM_ALL<br \/>\n<span style=\"color: #000080;\">SETPERM<\/span><span style=\"color: #800000;\"> %DESTDIR<\/span>\\Documents\\Word, PERM_ALL<\/p>\n<p>With this method you can also give a sub folder another folder permissions than the main folders. For example like:<\/p>\n<p><span style=\"color: #000080;\">SETPERM<\/span> <span style=\"color: #800000;\"> %DESTDIR<\/span>\\Documents, PERM_ALL<br \/>\n<span style=\"color: #000080;\">SETPERM<\/span><span style=\"color: #800000;\"> %DESTDIR<\/span>\\Documents\\Pdf, PERM_READ<\/p>\n<p><strong>See also<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2013\/08\/how-to-give-a-standard-user-write-permission-to-a-folder-in-program-files\/\">How to give a standard user write permission to a folder in Program Files<\/a><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>With the SETPERM script command in Visual Installer&#8217;s script language you can change permissions for a folder on the user&#8217;s hard disk during an installation. But what happen with the sub folders? Are the folder permissions inherited? Yes. They are normally. But if you really want to be sure that all sub folders have the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2018\/01\/visual-installer-does-setperm-change-folder-permissions-also-for-sub-folders\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Visual Installer: Does SETPERM change folder permissions also for sub folders?&#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\/5436"}],"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=5436"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5436\/revisions"}],"predecessor-version":[{"id":6007,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/5436\/revisions\/6007"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=5436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=5436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=5436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}