From fe2e1216a466815b529163d681b2f875276b0e07 Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 9 Feb 2003 13:22:09 +0000 Subject: [PATCH] Updated information about errors git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2135 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/UserInfo/UserInfo.nsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Contrib/UserInfo/UserInfo.nsi b/Contrib/UserInfo/UserInfo.nsi index 8468f8c0..ab4bb690 100644 --- a/Contrib/UserInfo/UserInfo.nsi +++ b/Contrib/UserInfo/UserInfo.nsi @@ -2,7 +2,9 @@ Name "UserInfo.dll test" OutFile UserInfo.exe Section + ClearErrors UserInfo::GetName + IfErrors Win9x Pop $0 UserInfo::GetAccountType Pop $1 @@ -18,7 +20,12 @@ Section 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!" + MessageBox MB_OK "Unknown error" + + Win9x: + # This one means you don't need to care about admin or + # not admin because Windows 9x doesn't either + MessageBox MB_OK "Error! This DLL can't run under Windows 9x!" done: SectionEnd \ No newline at end of file