diff --git a/dell-command-configure/tools/chocolateyinstall.ps1 b/dell-command-configure/tools/chocolateyinstall.ps1 index 2523a500..a519836a 100644 --- a/dell-command-configure/tools/chocolateyinstall.ps1 +++ b/dell-command-configure/tools/chocolateyinstall.ps1 @@ -1,24 +1,20 @@ $ErrorActionPreference = 'Stop'; -$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$fileLocation = 'https://dl.dell.com/FOLDER11549484M/2/Dell-Command-Configure_H16FW_WIN_4.12.0.95_A00_01.EXE' +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" + +# The dl.dell.com site seems to reject requests from the Chocolatey user agent, so prefer downloads.dell.com +$fileLocation = 'https://downloads.dell.com/FOLDER11549484M/2/Dell-Command-Configure_H16FW_WIN_4.12.0.95_A00_01.EXE' -#Based on NO DETECTION IN PRO $packageArgs = @{ - packageName = $env:ChocolateyPackageName - softwareName = 'dell-command-configure*' - file = $fileLocation - fileType = 'exe' - silentArgs = "/s" + packageName = $env:ChocolateyPackageName + softwareName = 'Dell Command | Configure' + file = $fileLocation + fileType = 'exe' + silentArgs = "/s" - validExitCodes= @(0) #please insert other valid exit codes here - url = "" #download URL, HTTPS preferrred - checksum = '41FF968F0FF4B67FFF2A8ABB89B61F9380AF798802FA714234DF3F1887CF6BFD' - checksumType = 'sha256' - destination = $toolsDir - - # The dl.dell.com site seems to reject requests from the Chocolatey user agent - options = @{ Headers = @{ 'User-Agent' = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0' } } - + validExitCodes = @(0) + checksum = '41FF968F0FF4B67FFF2A8ABB89B61F9380AF798802FA714234DF3F1887CF6BFD' + checksumType = 'sha256' + destination = $toolsDir } Install-ChocolateyPackage @packageArgs