Skip to content

Commit

Permalink
fix: Localize Users group in Windows installer (BPOP-1396) (#2102)
Browse files Browse the repository at this point in the history
user group var
  • Loading branch information
Caleb-Hurshman authored Jan 17, 2025
1 parent d24c17b commit d7521d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion windows/templates/product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<Component Id="ProductFolder" Guid="f8525e78-62c7-4665-81ad-f27e936edc88">
<CreateFolder>
<Permission User="Administrators" GenericAll="yes" />
<Permission User="Users" GenericAll="no" />
<Permission User="[OIQ_USER_GROUP_NAME]" GenericAll="no" />
</CreateFolder>
</Component>
{{define "FILES"}}
Expand Down
16 changes: 16 additions & 0 deletions windows/wix.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@
"system": "yes",
"action": "set",
"part": "all"
},
{
"name": "OIQ_USER_GROUP_SID",
"value": "System.Security.Principal.SecurityIdentifier('S-1-5-32-545')",
"permanent": "no",
"system": "yes",
"action": "set",
"part": "all"
},
{
"name": "OIQ_USER_GROUP_NAME",
"value": "[OIQ_USER_GROUP_SID].Translate([System.Security.Principal.NTAccount]).Value",
"permanent": "no",
"system": "yes",
"action": "set",
"part": "all"
}
],
"registries": [
Expand Down

0 comments on commit d7521d5

Please sign in to comment.