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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With