WiX v3.6 PermissionEx - Sddl attribute required?
Asked Answered
H

2

1

Really?

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" />

and it is giving me

The required attribute 'Sddl' is missing.

Not familiar with Sddl. How do I create an Sddl string to match the above permissions?

Hammering answered 19/4, 2012 at 6:23 Comment(0)
J
4

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 ... />
Jemina answered 22/4, 2012 at 18:10 Comment(0)
S
1

Either use the API ConvertSecurityDescriptorToStringSecurityDescriptor or work it out in your head following the format described on MSDN article Security Descriptor String Format. Or look for examples of what you need online.

Scales answered 19/4, 2012 at 11:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.