Quote:
Originally Posted by audiofeel
I meant that the same file shows a different result. My account is Microsoft and in the Administrators group.
User Unknown
|
I guess that
case IsAdminLoggedOn of
0: UserTypeStr := 'Group Users';
1: UserTypeStr := 'Group Administrators';
and GetUserNameString;
from innosetup works more correctly. In Russian localization UserInfo.UserType, and maybe in others, does not work at all, it is also difficult to determine by sid, because sid will be different in different localizations.