|
|
#1 |
|
Junior Member
Join Date: Jul 2003
Posts: 4
|
Problem with UserInfo or StrCmp or with me.
Hello,
After reading the documentation I tried to start experimenting with some of those examples that I found. Now base on the script that I experiment below, what I want to achieve is, if a user is not a member of Power User or Administrator group it will pop-up a message that says "User is just an ordinary user". Now when I try this script with a user that don't belong to Power User or Admin group, the message that pop-up is "Error! This DLL can't run under Windows 9x!". Maybe I missed something here, why is it that my script didn't work? Thanks! PHP Code:
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2003
Posts: 4
|
btw I tried it on win2kpro. I'm confused with this portion. AFAIK this code:
PHP Code:
is similar to this: (I mean its logic) PHP Code:
|
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
You're correct, but you forgot to jump to done after the last StrCpy which causes NSIS to continue and process Win9x and show the error message.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2003
Posts: 4
|
my bad!!!
Thanks! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|