chocolatey-packages/ch340_driver/tools/chocolateyinstall.ps1

16 lines
517 B
PowerShell
Raw Normal View History

2023-05-02 23:36:59 -04:00
$ErrorActionPreference = 'Stop' # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir 'CH341SER.EXE'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
File = $fileLocation
SilentArgs = '/S'
Checksum = '74d12019023390d27739625773005ecccf1bc6c4547e0c46088e86665e519524'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
Install-ChocolateyInstallPackage @packageArgs