Welcome to the Chocolatey Community Package Repository! The packages found in this section of the site are provided, maintained, and moderated by the community.
Moderation
Every version of each package undergoes a rigorous moderation process before it goes live that typically includes:
- Security, consistency, and quality checking
- Installation testing
- Virus checking through VirusTotal
- Human moderators who give final review and sign off
More detail at Security and Moderation.
Organizational Use
If you are an organization using Chocolatey, we want your experience to be fully reliable. Due to the nature of this publicly offered repository, reliability cannot be guaranteed. Packages offered here are subject to distribution rights, which means they may need to reach out further to the internet to the official locations to download files at runtime.
Fortunately, distribution rights do not apply for internal use. With any edition of Chocolatey (including the free open source edition), you can host your own packages and cache or internalize existing community packages.
Disclaimer
Your use of the packages on this site means you understand they are not supported or guaranteed in any way. Learn more...
- Passing
- Failing
- Pending
- Unknown / Exempted

Downloads:
319
Downloads of v 7.6.0:
319
Last Update:
30 May 2019
Package Maintainer(s):
Software Author(s):
- LASCAR Electronics Ltd
Tags:
EasyLog USB Free- Software Specific:
- Software Site
- Software License
- Software Docs
- Software Mailing List
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download

EasyLog USB
- Software Specific:
- Software Site
- Software License
- Software Docs
- Software Mailing List
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
319
Downloads of v 7.6.0:
319
Maintainer(s):
Software Author(s):
- LASCAR Electronics Ltd
Edit Package
To edit the metadata for a package, please upload an updated version of the package.
Chocolatey's Community Package Repository currently does not allow updating package metadata on the website. This helps ensure that the package itself (and the source used to build the package) remains the one true source of package metadata.
This does require that you increment the package version.
All Checks are Passing
2 Passing Test
To install EasyLog USB, run the following command from the command line or from PowerShell:
To upgrade EasyLog USB, run the following command from the command line or from PowerShell:
To uninstall EasyLog USB, run the following command from the command line or from PowerShell:
NOTE: This applies to both open source and commercial editions of Chocolatey.
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
- Download the Package Download
- Follow manual internalization instructions
-
Package Internalizer (C4B)
- Run
choco download easylogusb --internalize --source=https://chocolatey.org/api/v2
(additional options) - Run
choco push --source="'http://internal/odata/repo'"
for package and dependencies - Automate package internalization
- Run
3. Enter your internal repository url
(this should look similar to https://chocolatey.org/api/v2)
4. Choose your deployment method:
choco upgrade easylogusb -y --source="'STEP 3 URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade easylogusb -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Ensure easylogusb installed
win_chocolatey:
name: easylogusb
state: present
version: 7.6.0
source: STEP 3 URL
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
Coming early 2020! Central Managment Reporting available now! More information...
chocolatey_package 'easylogusb' do
action :install
version '7.6.0'
source 'STEP 3 URL'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
Chocolatey::Ensure-Package
(
Name: easylogusb,
Version: 7.6.0,
Source: STEP 3 URL
);
Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.
cChocoPackageInstaller easylogusb
{
Name = 'easylogusb'
Ensure = 'Present'
Version = '7.6.0'
Source = 'STEP 3 URL'
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'easylogusb':
provider => 'chocolatey',
ensure => '7.6.0',
source => 'STEP 3 URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
salt '*' chocolatey.install easylogusb version="7.6.0" source="STEP 3 URL"
See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.
5. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...
This package was approved by moderator Pauby on 31 May 2019.
The core of Lascar's USB data logging solution is the free software supplied with each USB data logger.
Using a wizard format to guide the user through setup of the data logger and subsequent download of collected data,
the software puts the 'easy' into EasyLog.
$ErrorActionPreference = 'Stop';
$packageName = 'EasyLogUSB'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://s3.amazonaws.com/lascar_downloads/EasyLogUSB+Installer.exe'
$checkSum = '134e5dbc3a7489e8b0851c454f9e3330e888752362808cf4fdb5c48d09cf15d0'
$workSpace = Join-Path $env:TEMP "$packageName.$env:chocolateyPackageVersion"
$webFileArgs = @{
packageName = $packageName
fileFullPath = Join-Path $WorkSpace "$packageName+Installer.exe"
url = $url
checksum = $checkSum
checksumType = 'sha256'
getOriginalFileName = $true
}
$packedInstaller = Get-ChocolateyWebFile @webFileArgs
# Extract the .msi EasyLogUSB+Installer.exe /s /x /b"." /v"/qn"
#
$statement = '/s /x /b"' + $workSpace + '" /v"/qn"'
Start-ChocolateyProcessAsAdmin -Statements "$statement" -ExeToRun "$packedInstaller" -ValidExitCodes @(0,1605)
$installArgs = @{
packageName = $packageName
file = Join-Path $WorkSpace "EasyLog USB.msi"
fileType = 'MSI'
silentArgs = "/qb /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes = @(0, 3010, 1641)
}
Install-ChocolateyInstallPackage @installArgs
# silent install of EasyLog USB Device Driver requires AutoIT
#
$autoitExe = 'AutoIt3.exe'
$autoitFile = Join-Path $toolsDir 'LoggingEasyLogUSB.au3'
$fileFullPath = Join-Path $WorkSpace $fullPackage
Write-Debug "$autoitFile"
Write-Debug "$fileFullPath"
$autoitProc = Start-Process -FilePath $autoitExe -ArgumentList "$autoitFile" -PassThru
$autoitId = $autoitProc.Id
Write-Debug "$autoitExe start time:`t$($autoitProc.StartTime.ToShortTimeString())"
Write-Debug "Process ID: `t$autoitId"
#include <Constants.au3>
Func Install()
ConsoleWrite("Install EasyLog" & @LF)
Local $handle = WinGetHandle("EasyLog USB Device Driver Installer")
ConsoleWrite("Install EasyLog2 " & $handle & @LF)
Local $click = ControlClick($handle, "", "[CLASS:Button; INSTANCE:1]", "Left", 1)
ConsoleWrite("Install EasyLog3 " & $click & @LF)
Local $close = WinClose($handle)
ConsoleWrite("Closing " & $close & @LF)
EndFunc
#RequireAdmin
Install()
ConsoleWrite("End of Install!" & @LF)
#include-once
; #INDEX# =======================================================================================================================
; Title .........: log4a
; AutoIt Version : 3.2
; Language ......: English
; Description ...: Functions that assist with logging.
; Author(s) .....: Michael Mims (zorphnog)
; ===============================================================================================================================
; #CURRENT# =====================================================================================================================
;_log4a_Debug
;_log4a_Error
;_log4a_Fatal
;_log4a_Info
;_log4a_Message
;_log4a_SetCompiledOutput
;_log4a_SetEnable
;_log4a_SetErrorStream
;_log4a_SetFormat
;_log4a_SetLogFile
;_log4a_SetMaxLevel
;_log4a_SetMinLevel
;_log4a_SetOutput
;_log4a_Trace
;_log4a_Warn
; ===============================================================================================================================
; Logging Enumerations
Global Enum $LOG4A_OUTPUT_CONSOLE,$LOG4A_OUTPUT_FILE,$LOG4A_OUTPUT_BOTH
Global Enum $LOG4A_LEVEL_TRACE,$LOG4A_LEVEL_DEBUG,$LOG4A_LEVEL_INFO, _
$LOG4A_LEVEL_WARN,$LOG4A_LEVEL_ERROR,$LOG4A_LEVEL_FATAL
; Internal variables
Global Const $__aLog4aLevels[6] = ["Trace","Debug","Info","Warning","Error","Fatal"]
Global Const $__LOG4A_VERSION = "0.4"
; Internal - Default configuration options
Global $__LOG4A_LOG_FILE = StringFormat("%s.log", @ScriptFullPath) _
, $__LOG4A_ENABLED = False _
, $__LOG4A_WRITE_ERRSTREAM = True _
, $__LOG4A_OUTPUT = $LOG4A_OUTPUT_CONSOLE _
, $__LOG4A_COMPILED_OUTPUT = $LOG4A_OUTPUT_FILE _
, $__LOG4A_FORMAT = "${date} ${level} ${message}" _
, $__LOG4A_LEVEL_MIN = $LOG4A_LEVEL_TRACE _
, $__LOG4A_LEVEL_MAX = $LOG4A_LEVEL_FATAL
#region Configuration Functions
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetCompiledOutput
; Description ...: Sets the logging output type for the compiled version of the script (Default: $LOG4A_OUTPUT_FILE)
; Syntax.........: _log4a_SetCompiledOutput($iOutput)
; Parameters ....: $iOutput - An integer specifying an output enumeration value. Must be one of the following:
; |$LOG4A_OUTPUT_CONSOLE = Direct output to the console (must compile with #AutoIt3Wrapper_Change2CUI=y directive).
; |$LOG4A_OUTPUT_FILE = Direct output to the log file.
; |$LOG4A_OUTPUT_BOTH = Direct output to both the console and the log file.
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetCompiledOutput($iOutput)
If $iOutput < 0 Or $iOutput > $LOG4A_OUTPUT_BOTH Then Return SetError(1)
$__LOG4A_COMPILED_OUTPUT = $iOutput
EndFunc ;==>_log4a_SetCompiledOutput
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetEnable
; Description ...: Enables or disables logging messages (Default: Disabled).
; Syntax.........: _log4a_SetEnable($bEnable)
; Parameters ....: $bEnable - A boolean specifying whether logging is enabled (true) or disabled (false).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetEnable($bEnable = True)
If Not IsBool($bEnable) Then Return SetError(1)
$__LOG4A_ENABLED = $bEnable
EndFunc ;==>_log4a_SetEnable
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetErrorStream
; Description ...: Enables or disables logging of the standard error stream (Default: Enabled).
; Syntax.........: _log4a_SetErrorStream($bEnable)
; Parameters ....: $bEnable - A boolean specifying whether error stream logging is enabled (true) or disabled (false).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetErrorStream($bEnable = True)
If Not IsBool($bEnable) Then Return SetError(1)
$__LOG4A_WRITE_ERRSTREAM = $bEnable
EndFunc ;==>_log4a_SetErrorStream
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetFormat
; Description ...: Configures the format of logging messages (Default: "${date} ${level} ${message}").
; Syntax.........: _log4a_SetFormat($sFormat)
; Parameters ....: $sFormat - A string representing the log message format. Formats can include the following macros:
; |${date} = Long date (i.e. MM/DD/YYYY HH:MM:SS)
; |${host} = Hostname of local machine
; |${level} = The current log level
; |${message} = The log message
; |${newline} = Insert a newline
; |${shortdate} = Short date (i.e. MM/DD/YYYY)
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetFormat($sFormat)
$__LOG4A_FORMAT = $sFormat
EndFunc ;==>_log4a_SetFormat
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetLogFile
; Description ...: Sets the path of the log file (Default: "<ScriptFullPath>.log").
; Syntax.........: _log4a_SetLogFile($sFile)
; Parameters ....: $sFile - A string specifying the path of the log file.
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetLogFile($sFile)
$__LOG4A_LOG_FILE = $sFile
EndFunc ;==>_log4a_SetLogFile
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetMaxLevel
; Description ...: Configures the maximum log level to process messages (Default: $LOG4A_LEVEL_FATAL).
; Syntax.........: _log4a_SetMaxLevel($iLevel)
; Parameters ....: $iLevel - An integer specifying a level enumeration value. Must be one of the following:
; |$LOG4A_LEVEL_TRACE
; |$LOG4A_LEVEL_DEBUG
; |$LOG4A_LEVEL_INFO
; |$LOG4A_LEVEL_WARN
; |$LOG4A_LEVEL_ERROR
; |$LOG4A_LEVEL_FATAL
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetMaxLevel($iLevel)
If $iLevel < 0 Or $iLevel > $LOG4A_LEVEL_FATAL Then Return SetError(1)
$__LOG4A_LEVEL_MAX = $iLevel
EndFunc ;==>_log4a_SetMaxLevel
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetMinLevel
; Description ...: Configures the minimum log level to process messages (Default: $LOG4A_LEVEL_TRACE).
; Syntax.........: _log4a_SetMinLevel($iLevel)
; Parameters ....: $iLevel - An integer specifying a level enumeration value. Must be one of the following:
; |$LOG4A_LEVEL_TRACE
; |$LOG4A_LEVEL_DEBUG
; |$LOG4A_LEVEL_INFO
; |$LOG4A_LEVEL_WARN
; |$LOG4A_LEVEL_ERROR
; |$LOG4A_LEVEL_FATAL
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetMinLevel($iLevel)
If $iLevel < 0 Or $iLevel > $LOG4A_LEVEL_FATAL Then Return SetError(1)
$__LOG4A_LEVEL_MIN = $iLevel
EndFunc ;==>_log4a_SetMinLevel
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_SetOutput
; Description ...: Sets the logging output type for the non-compiled version of the script (Default: $LOG4A_OUTPUT_CONSOLE)
; Syntax.........: _log4a_SetOutput($iOutput)
; Parameters ....: $iOutput - An integer specifying an output enumeration value. Must be one of the following:
; |$LOG4A_OUTPUT_CONSOLE = Direct output to the console (SciTE output window if run in SciTE).
; |$LOG4A_OUTPUT_FILE = Direct output to the log file.
; |$LOG4A_OUTPUT_BOTH = Direct output to both the console and the log file.
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid parameter
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_SetOutput($iOutput)
If $iOutput < 0 Or $iOutput > $LOG4A_OUTPUT_BOTH Then Return SetError(1)
$__LOG4A_OUTPUT = $iOutput
EndFunc ;==>_log4a_SetOutput
#endregion Configuration Functions
#region Message Functions
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Message
; Description ...: Logs a message to the configured outputs.
; Syntax.........: _log4a_Message($sMessage, $eLevel, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $eLevel - An integer specifying a level enumeration value. Must be one of the following:
; |$LOG4A_LEVEL_TRACE
; |$LOG4A_LEVEL_DEBUG
; |$LOG4A_LEVEL_INFO
; |$LOG4A_LEVEL_WARN
; |$LOG4A_LEVEL_ERROR
; |$LOG4A_LEVEL_FATAL
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; |1 = Invalid $eLevel parameter
; |2 = Level is out of range
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Message($sMessage, $eLevel = $LOG4A_LEVEL_INFO, $bOverride = False)
If Not $__LOG4A_ENABLED And Not $bOverride Then Return
If $eLevel < $LOG4A_LEVEL_TRACE Or $eLevel > $LOG4A_LEVEL_FATAL Then Return SetError(1)
If ($eLevel < $__LOG4A_LEVEL_MIN Or $eLevel > $__LOG4A_LEVEL_MAX) And Not $bOverride Then Return SetError(2)
Local $bConsole = False, $bFile = False, $iMethod = $__LOG4A_OUTPUT
If @Compiled Then $iMethod = $__LOG4A_COMPILED_OUTPUT
Local $sLine = __log4a_FormatMessage($sMessage, $__aLog4aLevels[$eLevel])
Switch $iMethod
Case $LOG4A_OUTPUT_CONSOLE
$bConsole = True
Case $LOG4A_OUTPUT_FILE
$bFile = True
Case $LOG4A_OUTPUT_BOTH
$bConsole = True
$bFile = True
EndSwitch
If $eLevel >= $LOG4A_LEVEL_ERROR Then
If $__LOG4A_WRITE_ERRSTREAM Then
ConsoleWriteError($sLine)
ElseIf $bConsole Then
ConsoleWrite($sLine)
EndIf
ElseIf $bConsole Then
ConsoleWrite($sLine)
EndIf
If $bFile Then
FileWrite($__LOG4A_LOG_FILE, $sLine)
EndIf
EndFunc ;==>_log4a_Message
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Trace
; Description ...: Logs a message at the trace level.
; Syntax.........: _log4a_Trace($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Trace($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_TRACE, $bOverride)
EndFunc ;==>_log4a_LogTrace
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Debug
; Description ...: Logs a message at the debug level.
; Syntax.........: _log4a_Debug($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Debug($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_DEBUG, $bOverride)
EndFunc ;==>_log4a_LogDebug
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Info
; Description ...: Logs a message at the info level.
; Syntax.........: _log4a_Info($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Info($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_INFO, $bOverride)
EndFunc ;==>_log4a_LogInfo
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Warn
; Description ...: Logs a message at the warn level.
; Syntax.........: _log4a_Warn($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Warn($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_WARN, $bOverride)
EndFunc ;==>_log4a_LogWarning
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Error
; Description ...: Logs a message at the error level.
; Syntax.........: _log4a_Error($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Error($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_ERROR, $bOverride)
EndFunc ;==>_log4a_LogError
; #FUNCTION# ====================================================================================================================
; Name...........: _log4a_Fatal
; Description ...: Logs a message at the fatal level.
; Syntax.........: _log4a_Fatal($sMessage, $bOverride)
; Parameters ....: $sMessage - A string containing the message to log.
; $bOverride - A boolean specifying to override log filters. If true, messages will be logged regardless of
; enabled status or log level range (min/max values).
; Return values .: Success - Returns 0
; Failure - Returns 0
; @Error - 0 = No error.
; Author ........: Michael Mims (zorphnog)
; Modified.......:
; Remarks .......:
; ===============================================================================================================================
Func _log4a_Fatal($sMessage, $bOverride = False)
_log4a_Message($sMessage, $LOG4A_LEVEL_FATAL, $bOverride)
EndFunc ;==>_log4a_LogFatal
#endregion Message Functions
#region Internal Functions
Func __log4a_FormatMessage($sMessage, $sLevel)
Local $sFormatted = $__LOG4A_FORMAT
$sFormatted = StringReplace($sFormatted, "${date}", _
StringFormat("%02d\\%02d\\%04d %02d:%02d:%02d", @MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC))
$sFormatted = StringReplace($sFormatted, "${host}", @ComputerName)
$sFormatted = StringReplace($sFormatted, "${level}", $sLevel)
$sFormatted = StringReplace($sFormatted, "${message}", $sMessage)
$sFormatted = StringReplace($sFormatted, "${newline}", @CRLF)
$sFormatted = StringReplace($sFormatted, "${shortdate}", _
StringFormat("%02d\\%02d\\%04d", @MON, @MDAY, @YEAR))
$sFormatted &= @CRLF
Return $sFormatted
EndFunc ;==>__log4a_FormatMessage
#endregion Internal Functions
#AutoIt3Wrapper_Compression=3
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#AutoIt3Wrapper_Add_Constants=n
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#RequireAdmin
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>
#include 'log4a.au3'
#include 'WaitForControls.au3'
Const $TD_BTN_NEXT = '&Next >'
Const $TD_BTN_INSTALL = '&Install'
Const $TD_BTN_INSTALL2 = 'Install'
Const $TD_BTN_FINISH = '&Finish'
Const $TD_BTN_CANCEL = 'Cancel'
Const $TD_BTN_IAGREE = "I &accept the terms in the license agreement"
Const $TD_BTN_ALTFINISH = '&Finish'
Const $TD_BTN_ALLOW_ACCESS = '&Allow access'
Const $TD_BTN_REMOVE = '&Remove'
Const $TD_BTN_YES = '&Yes'
Const $TD_BTN_OK = 'OK'
Const $TD_BTN_TYPICAL = '&Typical'
Const $TD_EDIT_DATA = '99999'
Const $TD_TREE_NAME = 'Tree1'
Const $apptext = 'EasyLog USB Device Driver Installer'
Const $text = "EasyLog USB - InstallShield Wizard"
Const $class = "[CLASS:MsiDialogCloseClass]"
Const $stdClass = '[Class:#32770]'
Const $button1 = "[CLASS:Button; INSTANCE:1]"
Const $button2 = "[CLASS:Button; INSTANCE:2]"
Const $button3 = "[CLASS:Button; INSTANCE:3]"
Const $button4 = "[CLASS:Button; INSTANCE:4]"
Const $button5 = "[CLASS:Button; INSTANCE:5]"
#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_SetCompiledOutput($LOG4A_OUTPUT_FILE)
_log4a_SetMinLevel($LOG4A_LEVEL_DEBUG)
; 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 ****
Func Install()
Local $handle = WinActivate($text)
_log4a_Info($text & ' Handle :' & $handle)
_log4a_Info('Begin Install()')
#_checkClickCtrl($class, $text, $button1, $TD_BTN_NEXT, 0)
#_checkClickCtrl($class, $text, $button3, $TD_BTN_IAGREE, 0)
#_checkClickCtrl($class, $text, $button5, $TD_BTN_NEXT, 0)
#_checkClickCtrl($class, $text, $button1, $TD_BTN_INSTALL, 0)
#_checkClickCtrl($class, $text, $button1, $TD_BTN_FINISH, 0)
$handle = WinActivate($apptext)
_log4a_Info($apptext & ' Handle :' & $handle)
Local $IsActive = WinActive($handle)
If ($IsActive) Then
ProcessClose("EL-USB Driver Setup.exe")
Sleep(3000)
;~ Note that we could also look up the path from registry of the main installer here in case a custom install location was set on the first msi
;~ Also we could have just silent installed the first msi I think, lol, but, you need to learn.
Run("C:\Program Files (x86)\EasyLog USB\EL-USB Driver Setup.exe")
$handle = WinActivate($apptext)
_log4a_Info($apptext & ' Handle :' & $handle)
_checkClickCtrl($stdClass, $apptext, $button1, $TD_BTN_INSTALL2, 0)
_checkClickCtrl($stdClass, 'Success', $button1, $TD_BTN_OK, 0)
EndIf
_log4a_Info('End Install()')
EndFunc ;==>Install
Install()
#include-once
#include <Timers.au3>
#include "log4a.au3"
; #FUNCTION# ====================================================================================================================
; Name ..........: _checkClickCtrl
; Description ...: Automatically wait for a control to exist. Forever or Limited
; Syntax ........: _checkClickCtrl($formclass, $text, $ctrl, $ctrltxt, $timeout, $delayafter
; Parameters ....: $formclass - Form Class info.
; $text - Windows text to match
; $ctrl - Class of Copntrol
; $ctrltxt - Text of the Control
; $timeout - Timeout = 0 by default, millisecond timer
; $delayafter - Time in milliseconds to delay after operation carried out
; Return values .: None
; Author ........: Earthshine
; Modified ......:
; Remarks .......: Waits for each button indefinatly, unless you give it a timeout
; Logger found here: https://www.autoitscript.com/forum/topic/156196-log4a-a-logging-udf/
; Related .......:
; Link ..........:
; Example(s) ....: _checkClickCtrl ('[CLASS:#32770]', 'ApplicationX - InstallShield Wizard', '[CLASS:Button; INSTANCE:1]', , '&Next >' 5000, 0)
; _checkClickCtrl($formclass, $text, $button2, $TD_BTN_REMOVE, 0, 0)
; _checkClickCtrl($formclass, $text, $button3, $TD_BTN_NEXT, 0, 500)
; _checkClickCtrl($formclass, $text, $button1, $TD_BTN_YES, 0, 0)
; _checkClickCtrl($formclass, $text, $button4, $TD_BTN_FINISH, 0, 0)
; ===============================================================================================================================
Func _checkClickCtrl($formclass, $text, $ctrl, $ctrltxt, $timeout = 0, $delayafter = 0)
_log4a_Info("_checkClickCtrl():Begin")
_log4a_Info("Searching for Formclass: " & $formclass)
_log4a_Info("Searching for Text: " & $text)
_log4a_Info("Searching for Control: " & $ctrl)
_log4a_Info("Searching for Ctrl Txt: " & $ctrltxt)
_log4a_Info("Timeout: " & $timeout)
_log4a_Info("Time Delay (after click): " & $delayafter)
Local $time_run = _Timer_Init()
While (1)
If WinExists($formclass) Then
Local $hCtrl = ControlGetHandle($text, '', $ctrl)
If $hCtrl Then
If ($timeout > 0) Then
_log4a_Info(_Timer_Diff($time_run))
If (_Timer_Diff($time_run) > $timeout) Then
_log4a_Info("ExitLoop:Timeout - " & $ctrl)
ExitLoop
EndIf
EndIf
Local $hCtrlHandle = ControlGetText($text, '', $ctrl)
_log4a_Info("Control Text Search: " & $ctrltxt)
_log4a_Info("Control Text Found: " & $hCtrlHandle)
If ($hCtrlHandle == $ctrltxt) Then
; we got the handle, so the button is there
; now do whatever you need to do
_log4a_Info("Found Formclass: " & $formclass)
_log4a_Info("Found Text: " & $text)
_log4a_Info("Found Control: " & $ctrl)
_log4a_Info("Found Ctrl Txt: " & $ctrltxt)
_log4a_Info("Timeout: " & $timeout)
_log4a_Info("Time Delay (after click): " & $delayafter)
_log4a_Info($ctrl)
Local $return = ControlClick($formclass, '', $ctrl)
If ($return) Then
_log4a_Info('Control ' & $ctrl & ' return code success: ' & $return)
If ($delayafter > 0) Then
Sleep($delayafter)
EndIf
Else
_log4a_Info('Control ' & $ctrl & ' return code error: ' & $return)
EndIf
_log4a_Info("ExitLoop:Normal - " & $ctrl)
ExitLoop
EndIf
EndIf
EndIf
WEnd
_log4a_Info("_checkClickCtrl():End")
EndFunc ;==>_checkClickCtrl
Log in or click on link to see number of positives.
- EasyLogUSB+Installer.exe (134e5dbc3a74) - ## / 67
- easylogusb.7.6.0.nupkg (0de758ad014d) - ## / 60
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Version | Downloads | Last Updated | Status |
---|---|---|---|
EasyLog USB 7.6.0 | 319 | Thursday, May 30, 2019 | Approved |
Copyright © 2019
Ground Rules:
- This discussion is only about EasyLog USB and the EasyLog USB package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or EasyLog USB, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.