Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Licensed driver is an executable, not zip #13

@KetchupBomb

Description

@KetchupBomb

The code block to download the licensed Nvidia driver:

# vGaming driver for g4
$Bucket = "nvidia-gaming"
$KeyPrefix = "windows/latest"
# download and extract driver
$Objects = Get-S3Object -BucketName $Bucket -KeyPrefix $KeyPrefix -Region us-east-1
foreach ($Object in $Objects) {
if ($Object.Size -ne 0) {
$LocalFileName = "C:\nvidia-driver\driver.zip"
Copy-S3Object -BucketName $Bucket -Key $Object.Key -LocalFile $LocalFileName -Region us-east-1
Expand-Archive $LocalFileName -DestinationPath $ExtractionPath
break
}
}

Assumes that the file in the S3 bucket is a zip file. It's not. It's an executable that unzips.

This logic ought to inspect the file(s) found when listing the Bucket contents, rather than assuming the file type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions