Replies: 1 comment 1 reply
-
Extending the existing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a user and add it to an existing group (users).
Here's what I have so far:
This has been asked a few times
[1] https://stackoverflow.com/questions/69180391/add-user-to-a-group-in-a-localized-msi-installer
[2] https://wix-users.narkive.com/ht5w39UW/add-user-to-predefined-group-fails
We used to solve this by using a custom action. And that's what Rob Mensching suggested in [2], if i get him right. But that was back in 2008. But I wonder if there's a solution without having to implement/maintain our own custom action.
The problem with the code above is pretty much what is discussed in [1]. util:Group expects the Name attribute to be "Users", but WIX_ACCOUNT_USERS is "BUILTIN\Users".
UPDATE:
The code for QueryWindowsWellKnownSIDs is here: https://github.com/wixtoolset/Util.wixext/blob/8a8a25695351ee542f08886a9d0957c78c6af366/src/ca/OsInfo.cpp#L354 and there is already WIX_ACCOUNT_PERFLOGUSERS_NODOMAIN which is WIX_ACCOUNT_PERFLOGUSERS without the domain prefix. Is adding more "_NODOMAIN" variants an option?
Beta Was this translation helpful? Give feedback.
All reactions