$ErrorActionPreference = 'Stop'; $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $url = 'http://watermark.drivethrurpg.com/DriveThruRPG-setup-win.exe' $packageArgs = @{ packageName = $env:ChocolateyPackageName unzipLocation = $toolsDir fileType = 'EXE' url = $url softwareName = 'DriveThruRPG*' checksum = 'EEB6DCC49272D8104108DFFD13F3163651C45F6911F9926CFC9A76F0B7E83A8A' checksumType = 'sha256' silentArgs = "/S" validExitCodes= @(0, 3010, 1641) } Install-ChocolateyPackage @packageArgs