#include #include "log4a.au3" #include "RegSearch.au3" #Region ;**** Logging **** ; Enable logging and don't write to stderr _log4a_SetEnable() ; Write to stderr, set min level to warn, customize message format _log4a_SetErrorStream() _log4a_SetMinLevel($LOG4A_LEVEL_INFO) ; If @compiled Then _log4a_SetMinLevel($LOG4A_LEVEL_WARN) ; Change the min level if the script is compiled _log4a_SetFormat("${date} | ${host} | ${level} | ${message}") #EndRegion ;**** Logging **** Local $var64 = _RegSearch('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', 'ptools.msi') _log4a_Info($var64) Local $var32 = _RegSearch('HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall", 'ptools.msi') _log4a_Info($var32)