e <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("授权安装小工具", 348, 157, 192, 124)
$Input1 = GUICtrlCreateInput("", 136, 24, 177, 21)
$Label1 = GUICtrlCreateLabel("要安装文件的路径", 8, 24, 132, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Input2 = GUICtrlCreateInput("", 112, 72, 65, 21)
$Input3 = GUICtrlCreateInput("", 248, 72, 65, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$Label2 = GUICtrlCreateLabel("管理员账号", 16, 72, 84, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("密码", 192, 72, 36, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("安装", 248, 112, 65, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$file = GUICtrlRead($Input1)
$name = GUICtrlRead($Input2)
$password = GUICtrlRead($Input3)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
RunAs($name,"assa-wh.com",$password,4,$file)
EndSwitch
WEnd