Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top