问题描述
真的吗?
我正在尝试做这样的事情 -
I am trying to do something like this -
<PermissionEx
User="Authenticated Users"
GenericAll="yes"
ServiceChangeConfig="yes"
ServiceEnumerateDependents="yes"
ChangePermission="yes"
ServiceInterrogate="yes"
ServicePauseContinue="yes"
ServiceQueryConfig="yes"
ServiceQueryStatus="yes"
ServiceStart="yes"
ServiceStop="yes" />
它给了我
缺少必需的属性Sddl".
不熟悉 Sddl.如何创建 Sddl 字符串以匹配上述权限?
Not familiar with Sddl. How do I create an Sddl string to match the above permissions?
推荐答案
PermissionEx 是 MSI 5.0 的 MsiLockPermissionsEx 功能的标签,它需要一个 SDDL 字符串.WixUtilExtension 中还有一个 PermissionEx 标签,它允许在所有版本的 MSI 上使用类似的功能.您将前者与后者的属性一起使用.如果您想要 PermissionEx 的 WixUtilExtension 变体,请使用 WixUtilExtension 命名空间:
PermissionEx is the tag for MSI 5.0's MsiLockPermissionsEx functionality, which requires an SDDL string. There's also a PermissionEx tag in WixUtilExtension, which allows similar functionality on all versions of MSI. You're using the former with the latter's attributes. If you want the WixUtilExtension variant of PermissionEx, use the WixUtilExtension namespace:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
...
<util:PermissionEx ... />
这篇关于WiX v3.6 PermissionEx - 需要 Sddl 属性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!