Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get localized Windows Administrators group name in Inno Setup?

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?

like image 565
Mikhail Orlov Avatar asked Jan 19 '26 16:01

Mikhail Orlov


1 Answers

You can get the name from a SID using LookupAccountSid API Call.

like image 166
Robert Love Avatar answered Jan 21 '26 08:01

Robert Love



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!