title: WiX - trying to use util:PermissionEx to give full access to folder & contents to all users
body: <p>I'm trying to grant full access to all users to a folder that my MSI creates within ProgramData and all the subfolders and contents within it.  I'm basing my code on <a href="https://stackoverflow.com/questions/4272406/wix-how-to-set-permissions-for-folder-and-all-sub-folders">Wix: How to set permissions for folder and all sub folders</a> and so my directory structure is like :</p>
  
  <pre><code>     &lt;Directory Id="CommonAppDataFolder" Name="ProgramData"&gt;
         &lt;Directory Id="COMPANYFOLDER_PROGDATA" Name="ACME Limited"&gt;
           &lt;Directory Id="ACMEFOLDER_PROGDATA" Name="ACME"&gt;
             &lt;Component Id="ACMEFOLDER_PROGDATA_Permission"  Guid="{59DDCF9A-E5B2-4733-99C1-964BBB1A8D9C}"&gt;
               &lt;CreateFolder&gt;
                 &lt;util:PermissionEx User="Users" GenericAll="yes"/&gt;
               &lt;/CreateFolder&gt;
             &lt;/Component&gt;
  </code></pre>
  
  <p>I'm using WiX v3.9.1006.0 and Visual Studio 2013 Update 4; I have xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" at the top of my wix file and in the Tool Settings for the project in the Linker section, I have:</p>
  
  <pre><code>-ext "C:\Program Files (x86)\WiX Toolset v3.9\bin\WixNetFxExtension.dll"
  -ext "C:\Program Files (x86)\WiX Toolset v3.9\bin\WixUIExtension.dll"
  -ext "C:\Program Files (x86)\WiX Toolset v3.9\bin\WixUtilExtension.dll"
  </code></pre>
  
  <p>At the moment, I don't have a reference to the WixUtilExtension.dll file in Visual Studio and if I try and compile it, I get:</p>
  
  <pre><code>Error   1   The CreateFolder element contains an unhandled extension element 'util:PermissionEx'.  Please ensure that the extension for elements in the 'http://schemas.microsoft.com/wix/UtilExtension' namespace has been provided
  </code></pre>
  
  <p>If I add a reference to the dll - two strange things happen; firstly when I add the dll from the wix bin folder, when it appears within Visual Studio and I click on the reference, it says the version is 0.0 ?!?</p>
  
  <p>If I ignore that and try and compile the project, I now get:</p>
  
  <pre><code>The extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.UtilExtension' contains a defintion for table 'EventManifest' that collides with a previously loaded table definition.  Please remove one of the conflicting extensions or rename one of the tables to avoid the collision.
  </code></pre>
  
  <p>I have been pulling my hair out on this all afternoon and I didn't start with much hair, so I can't afford to lose anymore - so if anyone has any idea of what is going on here, it would be gratefully appreciated !!</p>
  
  <p>Thanks,</p>
  
  <p>Chris.</p>