UserInfo DLL to get user group and name
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1585 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ae3de07d72
commit
4541bb7cc8
5 changed files with 259 additions and 0 deletions
10
Contrib/UserInfo/UserInfo.nsi
Normal file
10
Contrib/UserInfo/UserInfo.nsi
Normal file
|
@ -0,0 +1,10 @@
|
|||
Name "UserInfo.dll test"
|
||||
OutFile UserInfo.exe
|
||||
|
||||
Section
|
||||
UserInfo::GetName
|
||||
Pop $0
|
||||
UserInfo::GetGroup
|
||||
Pop $1
|
||||
MessageBox MB_OK 'User "$0" in group "$1"'
|
||||
SectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue