4

I'm creating a directory under %PROGRAMDATA% that is to be shared by all users. The directory structure will be %PROGRAMDATA%\CompanyName\AppName.

I'm trying to set the folder permissions to grant All access to Authenticated Users. The snippet from my wxs file is:

 <Directory Id="CommonAppDataFolder"> <Directory Id="CommonAppDataFolder_CompanyName" Name="CompanyName"> <Directory Id="CommonAppDataFolder_AppName" Name="AppName"> <Component Id="ConfigDir" Guid="6E37BE9B-916F-4A1E-ABDC-BFC656BDDA0F"> <CreateFolder> <util:PermissionEx User="Authenticated Users" GenericAll="yes"/> </CreateFolder> </Component> </Directory> </Directory> </Directory> 

This works fine on English workstations, but fails on French workstations because the name is different. A quick Google search shows that the SID for Authenticated Users is S-1-5-11, but setting User to "S-1-5-11" fails with the error "ExecSecureObjects: Error 0x80070534: failed to get sid for account: S-1-5-11".

How do I indicate that the User= value is the SID? I tried "*S-1-5-11" and "{S-1-5-11}" with no success. The only thing the Wix documentation says about the User attribute is that it is a String.

3
  • I haven't looked at this in quite some time, but here are a couple of older answer on the topic: Various permissioning elements, PermissionEx sample - (SDDL string). No guarantees, but please have a look. Commented Jun 29, 2023 at 23:38
  • 1
    Thanks, but neither of those addresses the issue I'm facing, which is that the User= parameter is different on English workstations than on French workstations. I was hoping to use the SID, which is language independent. I really do not want to have to go down the path of language-dependent installations. Commented Jul 4, 2023 at 17:11
  • Did you ever find an answer to your question? I am facing the same problem and can not find an answer Commented Mar 15, 2024 at 9:51

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.