chocolatey-packages/ch340_driver/tools/chocolateyinstall.ps1
Adam Goldsmith da4df9fe05
Some checks failed
/ Build-Chocolatey-Packages (push) Failing after 2m46s
Add new CH340 driver package
2023-05-03 09:42:33 -04:00

16 lines
517 B
PowerShell

$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