It's been a while since I looked at this part of the code, but I don't think you actually can set these attributes currently. If you have any thoughts on how that could be solved feel free to make a suggestion... (Note that there is the [EMAIL PROTECTED] attribute that makes a WiX provided CA do the work instead of going through the LockPermissions table, so we should be able to handle this in WiX code.)
The format of the well known SID's are whatever ::LookupAccountName() will swallow I think. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Wieser Sent: Thursday, March 29, 2007 4:30 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Permission element and OI and CI attributes: how do I set them? I'm trying to set the permissions on a folder using the permissions element, and can't quite work out how it's working, because of the mapping between property names and the actual flags used. I've looked through the source, and have now puzzled out some of the topic (and tried to update the documentation in my chm file, but found the sources don't seem to be included), so I've uploaded my suggested documentation to the feature requests page. However, I still can't see how to apply the OI, and CI attributes. My old code from a previous installer was calling ConvertStringSecurityDescriptorToSecurityDescriptor with the argument buf: wsprintf(buf, "D:(A;OICI;GA;;;BA)(A;OICI;0x%08x;;;BU)", READ_CONTROL|FILE_GENERIC_READ|FILE_GENERIC_WRITE); I assume that the well known SID strings for user are "Administrators" and "Users" for the Permission element, but this too isn't documented anywhere, and I can't even look into the source of msiexec to find out. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users