如何设置目录权限 [英] How to set permissions for directory
本文介绍了如何设置目录权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了 SO 链接 为文件夹添加权限.但是,如果我想为目录设置权限,我该怎么做?
I followed the SO link to add permission to a folder. However if I would like to set permission for directory, what can I do?
例如,在链接中有以下代码:
For example, in the link it has the following code:
<DirectoryRef Id="ProgramFilesFolder">
<Directory Id="PHPFolder" Name="PHP">
<Component Id="PHP_comp" DiskId="1" Guid="*">
<CreateFolder>
<Permission User="Everyone" GenericAll="yes" />
</CreateFolder>
如何为目录 PHPFolder 设置权限?
How can I set permission for directory PHPFolder?
推荐答案
也许可以尝试使用 创建文件夹元素:
Maybe try with a CreateFolder Element:
<Directory Id="INSTALLFOLDER" Name="Myfolder">
<Component Feature="ProductFeature">
<File Source="TestFile.exe" />
<CreateFolder>
<Permission User="Everyone" GenericAll="yes"/>
</CreateFolder>
</Component>
</Directory>
一般提示:尝试掠夺 github.com 用于卡住时的片段.rel="nofollow noreferr>.
General Tip: Try to pillage github.com for snippets when you are stuck. Random Sample.
进一步链接:
这篇关于如何设置目录权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文