문제

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