Archive: Why isnt it working?


Why isnt it working?
 


onInit

ClearErrors
UserInfo
::GetName
IfErrors theError
Pop$0
UserInfo::GetAccountType
Pop$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 badUser
StrCmp$1 "Guest" 0 +3
MessageBox MB_OK 'User "$0" is a guest'
Goto badUser
Goto done
badUser:
>MessageBox MB_OK 'You do not have sufficient privlages to install this software!'
quit
theError:
#pre win2k machine, just let em through, didnt have security anways.
GoTo done
done:
>File /oname=$PLUGINSDIRHWCap.ini "HWCap.ini"
>FunctionEnd
>
Wht isnt this code right here working for me? If i am a regular user, it lets it go through on a win 2k machine, and then just half the files fail because of rights and no dll's are registered.

What is the output of the plugin ($1) ?