How to set folder permissions on install in a localizable fashion

5

I have an installation build with WiX 3.0. It currently creates some folders and modifies the folder permissions. However, it will not install on a Spanish OS. That is now a problem since we have to support Spanish OS's. So... I am trying to do this in a way that is localizable. This is what I have changed it to:

  <CreateFolder Directory="JPROLogs" >
    <util:PermissionEx User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes" />
    <util:PermissionEx User="[WIX_ACCOUNT_USERS]" GenericAll="yes" />
  </CreateFolder>

But I get the install now fails on English OS's and Spanish OS's with the following error:

ExeSecureObjects: Error 0x80070534: failed to get sid for account: NOREGON-B3BC733\BUILTIN\Administrators

Any ideas where I have gone wrong?

wix
asked on Stack Overflow Jan 27, 2010 by Amy • edited Nov 11, 2013 by Yan Sklyarenko

3 Answers

1

The account names do not get translated when other languages are involved. We used an approach to translate the names based on the know SID's, via custom actions, to get around this.

An approach is outlined at: http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/39d9e905-2b35-4ce9-a544-4564f6b5a376

answered on Stack Overflow Dec 9, 2010 by edg
1

Try to reference the well-known accounts and groups by predefined aliases. For your case:

  <CreateFolder Directory="JPROLogs" >
    <util:PermissionEx User="Administrators" GenericAll="yes" />
    <util:PermissionEx User="Users" GenericAll="yes" />
  </CreateFolder>
answered on Stack Overflow Dec 22, 2010 by Yan Sklyarenko
0

I used this:

<util:PermissionEx User="Everyone" GenericAll="yes" />

And that was enough for me. Don't know if that will be your issue too. Hope it helps!

answered on Stack Overflow Nov 11, 2013 by Sonhja

User contributions licensed under CC BY-SA 3.0