Updated information about errors
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2135 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b685eff548
commit
fe2e1216a4
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,9 @@ Name "UserInfo.dll test"
|
||||||
OutFile UserInfo.exe
|
OutFile UserInfo.exe
|
||||||
|
|
||||||
Section
|
Section
|
||||||
|
ClearErrors
|
||||||
UserInfo::GetName
|
UserInfo::GetName
|
||||||
|
IfErrors Win9x
|
||||||
Pop $0
|
Pop $0
|
||||||
UserInfo::GetAccountType
|
UserInfo::GetAccountType
|
||||||
Pop $1
|
Pop $1
|
||||||
|
@ -18,7 +20,12 @@ Section
|
||||||
StrCmp $1 "Guest" 0 +3
|
StrCmp $1 "Guest" 0 +3
|
||||||
MessageBox MB_OK 'User "$0" is a guest'
|
MessageBox MB_OK 'User "$0" is a guest'
|
||||||
Goto done
|
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:
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue