Thanks Blair! That's been very helpful. I'll try to google now for the
appropriate combination of permission bits to match "list folder content".

Happy holidays everyone!

Thanks,
Denis S.
On Nov 24, 2010 10:58 PM, "Blair" <os...@live.com> wrote:
> With regard to folders and comparing WinNT.h from SDK 7.1 and WiX v3.0
RTM,
> here are how the permission bits map into the directory-related constants
> (how they line up with or what they are named in the shell's security
dialog
> inside the Property's wizard I'm not sure):
>
> GENERIC_READ GenericRead
> GENERIC_WRITE GenericWrite
> GENERIC_EXECUTE GenericExecute
> GENERIC_ALL GenericAll
> DELETE Delete
> READ_CONTROL ReadPermission
> WRITE_DAC ChangePermission
> WRITE_OWNER TakeOwnership
> SYNCHRONIZE Synchronize
> STANDARD_RIGHTS_REQUIRED Delete + ReadPermission + ChangePermission +
> TakeOwnership
> STANDARD_RIGHTS_READ ReadPermission
> STANDARD_RIGHTS_WRITE ReadPermission
> STANDARD_RIGHTS_EXECUTE ReadPermission
> STANDARD_RIGHTS_ALL Delete + ReadPermission + ChangePermission +
> TakeOwnership + Synchronize
> FILE_LIST_DIRECTORY Read
> FILE_ADD_FILE CreateFile
> FILE_ADD_SUBDIRECTORY CreateChild
> FILE_READ_EA ReadExtendedAttributes
> FILE_WRITE_EA WriteExtendedAttributes
> FILE_TRAVERSE Traverse
> FILE_DELETE_CHILD DeleteChild
> FILE_READ_ATTRIBUTES ReadAttributes
> FILE_WRITE_ATTRIBUTES WriteAttributes
> FILE_ALL_ACCESS Delete + ReadPermission + ChangePermission +
> TakeOwnership + Synchronize + Read + CreateFile + CreateChild +
> ReadExtendedAttributes + WriteExtendedAttributes + Traverse + DeleteChild
+
> ReadAttributes + WriteAttributes
>
> I suppose based on this that at minimum you need Read="yes" and no others,
> but I really don’t know how the shell's UI maps these permissions to their
> WinNT.h constants and it's been over a decade since I studied all the
> required combinations of these constants. You may need to do some
> experimentation.
>
> Also, having the WinNT.h constants may help with your internet search.
>
> BTW, http://msdn.microsoft.com/library/aa369774.aspx claims that setting
> GenericRead will fail, so I suppose we should all avoid that one.
>
> -----Original Message-----
> From: Denis Stankovski [mailto:denis.stankov...@gmail.com]
> Sent: Wednesday, November 24, 2010 2:35 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Setting "List folder contents" permission on
folder
>
> Thanks for the reply. Unfortunately it didn't work. I tried both and
> in both cases it sets checkbox next to "Special permissions" (Folder
> Properties > Security) and "List folder content" checkbox is
> unchecked.
>
> On Mon, Nov 22, 2010 at 12:28 AM, Blair <os...@live.com> wrote:
>> Just a guess (I haven't tried it) but what does this do?
>>
>> <CreateFolder Directory="ArchiveDir" >
>>           <Permission Traverse="yes" User="[USER_ACCOUNT]" />
>> </CreateFolder>
>>
>> Or possibly
>>
>> <CreateFolder Directory="ArchiveDir" >
>>           <Permission Traverse="yes" GenericExecute="no"
>> ReadPermission="no" ReadAttributes="no"  User="[USER_ACCOUNT]" />
>> </CreateFolder>
>>
>> Try the first one first to see what it produces.
>>
>> -----Original Message-----
>> From: Denis Stankovski [mailto:denis.stankov...@gmail.com]
>> Sent: Tuesday, November 16, 2010 7:00 AM
>> To: wix-users@lists.sourceforge.net
>> Subject: Re: [WiX-users] Setting "List folder contents" permission on
> folder
>>
>> Looks like some messages get lost by the mail list server, so I'm
> resending
>> my question just in case...
>>
>> Does anyone know how to set "List folder content" attribute of a folder
> via
>> Permission element for a particular user?
>>
>> Thanks,
>> Denis S.
>> ---------- Forwarded message ----------
>> From: "Denis Stankovski" <denis.stankov...@gmail.com>
>> Date: Nov 12, 2010 4:22 PM
>> Subject: Setting "List folder contents" permission on folder
>> To: <wix-d...@lists.sourceforge.net>, <wix-users@lists.sourceforge.net>
>>
>> I've searched all over the internet and can't seem to find solution
>> for my problem. I'd like to set permission on the folder to allow
>> certain users ONLY ability to "List folder contents" (without ability
>> to read file content). Here is the code that I have, however it seems
>> to set "Read", "Read & Execute", and "List folder content" at the same
>> time:
>>
>> <CreateFolder Directory="ArchiveDir" >
>>           <Permission Traverse="yes" GenericExecute="yes"
>> ReadPermission="yes" ReadAttributes="yes"  User="[USER_ACCOUNT]" />
>> </CreateFolder>
>>
>> Any help would be greatly appreciated. Thank you in advance!
>> --
>> Denis Stankovski
>>
>
----------------------------------------------------------------------------
>> --
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and  rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>>
>
----------------------------------------------------------------------------
> --
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and  rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> Denis Stankovski
>
>
----------------------------------------------------------------------------
> --
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to