-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |