Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Giving permission to a folder in programdata using Wix

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

like image 637
The Apache Avatar asked Mar 21 '23 22:03

The Apache


1 Answers

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.

like image 154
noelicus Avatar answered Apr 02 '23 17:04

noelicus