I know how to set the permissions for a folder:
The answer above is correct, and you will set the permissions to all the folders and files in this folder.
Please note: The CreateFolder tag should be in a component, and this component must be added to a Feature.
Also, you have to add this to the command line of the compiler and the linker:
-ext WixUIExtension -ext WixUtilExtension