WiX Permissions, how do I express 'Modify' in terms of DACL flags

前端 未结 3 585
一生所求
一生所求 2021-01-13 16:46

I\'m attempting to apply custom rights to a folder as part of a WiX 3.0.4318.0 installer.

In terms of the Security properties UI in explorer, I want to add Modify to

相关标签:
3条回答
  • 2021-01-13 16:50

    After some more work on this, my findings are:

    1. In 3.0.5419.0, PermissionEx vs util:"PermissionEx vs Permission gets moot, and no Extended="true" like you see around the net with previous versions is required. Previous versions give errors at runtime resolving BUILTIN\USERS.
    2. Selecting the three rights I picked seems to achieve the requirements of my context

    I'm still very interested in seeing other responses, as I remain a WiX-noob.

    0 讨论(0)
  • 2021-01-13 16:58

    To get it exactly as you would by setting the permissions by hand on Windows 7 and Windows XP using WiX 3.6, you would need to use this:

    <util:PermissionEx 
        User="Users" Domain="BUILTIN" 
        GenericWrite="yes" GenericExecute="yes" GenericRead="yes" 
        Delete="yes" Synchronize="yes" />
    
    0 讨论(0)
  • 2021-01-13 16:59

    The following combinations are what I've found

    "modify" permission:

    <util:PermissionEx GenericRead="yes" GenericWrite="yes"
       GenericExecute="yes" Delete="yes" DeleteChild="yes" User="SOMEUSER" />
    

    "read" permission:

    <util:PermissionEx Read="yes" GenericRead="yes" User="SOMEUSER" />
    
    0 讨论(0)
提交回复
热议问题