ZenitH-AT / nvidia-update

Checks for a new version of the NVIDIA driver, downloads and installs it.
MIT License
56 stars 8 forks source link

WinRAR fails to extract driver #10

Open Ironclad17 opened 1 year ago

Ironclad17 commented 1 year ago

Several errors, running as administrator did not resolve either.

Get-Content : Cannot find path 'C:\Users*\AppData\Local\Temp\NVIDIA\driver\setup.cfg' because it does not exist. At C:\Users*\Downloads\nvidia-update.ps1:716 char:55

  • ... tup.cfg" -Value (Get-Content -Path "$($extractDir)\setup.cfg" | Selec ...
  • 
    + CategoryInfo          : ObjectNotFound: (C:\Users\***\...river\setup.cfg:String) [Get-Content], ItemNotFoundEx
    ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Set-Content : Could not find a part of the path 'C:\Users*\AppData\Local\Temp\NVIDIA\driver\setup.cfg'. At C:\Users*\Downloads\nvidia-update.ps1:716 char:2

  • Set-Content -Path "$($extractDir)\setup.cfg" -Value (Get-Content ...
  • 
    + CategoryInfo          : ObjectNotFound: (C:\Users\***\...river\setup.cfg:String) [Set-Content], DirectoryNotFo
    undException
    + FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.SetContentCommand

[02:21:31] Installing driver...

UAC prompt declined or an error occurred during installation.

ZenitH-AT commented 1 year ago

Seems like the extraction process didn't extract all the files to %TEMP%\NVIDIA\driver.

Are you using 7zip or WinRar?

I'll be able to work on this issue this weekend.

Ironclad17 commented 1 year ago

Winrar

ZenitH-AT commented 1 year ago

If you want to work around the issue for now, you can install 7zip (you can even keep WinRar installed alongside it, nvidia-update will use 7zip automatically).

I'll do some testing with WinRar later/tomorrow and have a fix out soon after.

EDIT: Didn't have much time to work on this but the fix will be implemented when possible in the near future.

ZenitH-AT commented 1 year ago

I'll also improve error handling there so that error messages are more accurate in the future.

Sorry I haven't go to this yet. Life has been really busy.