I have created a folder in ProgramData. Now, I want to give full permission to everyone. How do I do that using WiX?
Asked
Active
Viewed 2,158 times
4
Yan Sklyarenko
- 30,756
- 24
- 106
- 129
The Apache
- 1,019
- 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 Answers
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
- 13,693
- 2
- 89
- 105