Skip to content

Commit

Permalink
feat: update software.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 6, 2023
1 parent 3ed81fa commit c6a7b01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/playbook/Executables/SOFTWARE.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ $num = 0; foreach ($a in $vcredists.GetEnumerator()) {
}

# 7-Zip
if ($env:PROCESSOR_ARCHITECTURE -eq 'amd64') {$arch = 'x64'} else {$arch = 'arm64'}
$website = 'https://7-zip.org/'
$download = $website + ((Invoke-WebRequest $website -UseBasicParsing).Links.href | Where-Object { $_ -like "a/7z2301-$arch.exe" })
$website = 'https://7-zip.org'
$download = $website + ((Invoke-WebRequest $website -UseBasicParsing).Links.href | Where-Object { $_ -like "a/7z2301-x64.exe" })
& curl.exe -LSs $download -o "$tempDir\7zip.exe"
Start-Process -FilePath "$tempDir\7zip.exe" -WindowStyle Hidden -ArgumentList '/S' -Wait

Expand Down

0 comments on commit c6a7b01

Please sign in to comment.