I've read all related topics and haven't found a full answer to my problem.

I would like to give full permissions to SYSTEM and Read & Execute
permissions to Users group to a folder under Program Files. Nothing more,
nothing less.

I know there are 3 ways to give permissions to a folder using WIX, none of
them are really good for me and I'll explain why:

1) Regular Permission element:
        <CreateFolder Directory="Test">
          <Permission User="SYSTEM" GenericAll="yes"/>
          <Permission User="Users" Domain="[LOCAL_MACHINE_NAME]"
GenericRead="yes" Read="yes" GenericExecute="yes" ChangePermission="yes"/>
        </CreateFolder>

Problem: It fails on foreign OS since it doesn't knows the "Users" keyword.
I tried it with SID as well. Beside that I need to place the Permission
element under each file in the Test directory (but if this was the only
case, I would have managed)

2) WixUtilsExtension PermissionEx element:
        <CreateFolder Directory="Test">
          <util:PermissionEx User="SYSTEM" GenericAll="yes"/>
          <util:PermissionEx User="Users" Domain="[LOCAL_MACHINE_NAME]"
GenericRead="yes" Read="yes" GenericExecute="yes" ChangePermission="yes"/>
        </CreateFolder>

 Problem: The folder also keeps the default permissions of the Program Files
folder. I can not allow that.

3) PermissionEx with Sddl:

Problem: This element is only available when installing with MSI 5.0. I'm
using installer 3.01.

I'll be happy to get any solution, including solutions with custom
actions...
-- 
View this message in context: 
http://n2.nabble.com/Another-Permission-quesion-tp4569574p4569574.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to