#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=c:\documents and settings\a&y\desktop\trailreset.kxf
FileInstall("Untitled-1.jpg", "Untitled-1.jpg", 1)
$Form = GUICreate("Hitman Trial Reset", 239, 124, -1, -1)
$Reset_btn = GUICtrlCreateButton("Reset Trial", 48, 72, 147, 25, $WS_GROUP)
GUICtrlSetFont(-1,9,100,0)
GUICtrlCreateLabel("Copyright ® 2010, Alzri | AT4RE", 60, 104, 200, 17)
GUICtrlSetFont(-1,9,100,0)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
FileDelete("Untitled-1.jpg")
Exit
Case $Reset_btn
FileDelete(@AppDataCommonDir & "\Hitman Pro\HitmanPro.key")
FileDelete(@AppDataCommonDir & "\Hitman Pro\HitmanPro.lic")
FileDelete(@AppDataCommonDir & "\Hitman Pro\Banner.bin")
RegDelete("HKLM\SOFTWARE\Hitman Pro")
MsgBox(64,"Success !!", "Trial reset has been done successfully !!" & @CRLF & " Alzri | AT4RE")
EndSwitch
WEnd