4

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

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
The Apache
  • 1,076
  • 11
  • 28
  • http://stackoverflow.com/questions/4272406/wix-how-to-set-permissions-for-folder-and-all-sub-folders or this http://stackoverflow.com/questions/2149822/how-to-set-folder-permissions-on-install-in-a-localizable-fashion – Bogdan Mitrache Jan 17 '14 at 06:22

1 Answers1

7

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.

noelicus
  • 14,468
  • 3
  • 92
  • 111