Reputation: 2857
I need to install SQL Server 2008 using Inno Setup. It requires /SQLSYSADMINACCOUNTS
to be specified. I want to set it to BUILTIN\Administrators
, but the problem is that in localized Windows versions this group's name is different. For example, in Russian version of Windows it's BUILTIN\Администраторы
.
How can I get the string name for this group (S-1-5-32-544) in Inno Setup?
Upvotes: 3
Views: 2426
Reputation: 12581
You can get the name from a SID using LookupAccountSid API Call.
Upvotes: 2