NSIS 官网:http://nsis.sourceforge.net/Main_Page
一款很好用的NSIS脚本编辑器(HM NIS EDIT: A Free NSIS Editor/IDE):http://hmne.sourceforge.net/
---------------------------------------
; Assist Functions, CheckAdmin, CheckPlugin, CheckQB, CheckDotNet, InstallDotNet, CheckPluginUsing
Function CheckAdmin
ClearErrors
UserInfo::GetName
IfErrors Win9x
Pop $0
UserInfo::GetAccountType
Pop $1
# GetOriginalAccountType will check the tokens of the original user of the
# current thread/process. If the user tokens were elevated or limited for
# this process, GetOriginalAccountType will return the