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

百般思念 提交于 2020-01-04 06:36:49

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/7042257/how-to-get-localized-windows-administrators-group-name-in-inno-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!