From 2ae1a883d5fdceb2a0b7816bcb35759f6a2250fa Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 6 Nov 2002 16:22:30 +0000 Subject: [PATCH] Better example git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1607 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/UserInfo/UserInfo.nsi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Contrib/UserInfo/UserInfo.nsi b/Contrib/UserInfo/UserInfo.nsi index 729b4361..8468f8c0 100644 --- a/Contrib/UserInfo/UserInfo.nsi +++ b/Contrib/UserInfo/UserInfo.nsi @@ -6,5 +6,19 @@ Section Pop $0 UserInfo::GetAccountType Pop $1 - MessageBox MB_OK 'User "$0" in group "$1"' + StrCmp $1 "Admin" 0 +3 + MessageBox MB_OK 'User "$0" is in the Administrators group' + Goto done + StrCmp $1 "Power" 0 +3 + MessageBox MB_OK 'User "$0" is in the Power Users group' + Goto done + StrCmp $1 "User" 0 +3 + MessageBox MB_OK 'User "$0" is just a regular user' + Goto done + StrCmp $1 "Guest" 0 +3 + MessageBox MB_OK 'User "$0" is a guest' + Goto done + MessageBox MB_OK "Error! This DLL can't run under Windows 9x!" + + done: SectionEnd \ No newline at end of file