Question

I have created a folder in ProgramData. Now, I want to give full permission to everyone. How do I do that using WiX?

Was it helpful?

Solution

Under <Product> you can enter:

   <DirectoryRef Id="TARGETDIR">
      <Directory Id="CommonAppDataFolder">
        <Directory Id="CommonAppXXXX" Name="XXXFolderName">
            <Component Id="CreateProgramDataZZZ" Guid="ABC-ETC">
              <CreateFolder>
                <util:PermissionEx User="Users" Domain="[MachineName]" GenericAll="yes" />
              </CreateFolder>
            </Component>
        </Directory>
      </Directory>
    </DirectoryRef>

And reference the component in your feature.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top