AeliusSaionji / chocopkgs

13 stars 24 forks source link

NVidia GeForce Game Ready driver package fails to uninstall #35

Open TDarkShadow opened 3 years ago

TDarkShadow commented 3 years ago

Package: geforce-game-ready-driver Version: 466.77 Output: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form."

Install Log 2021-06-14 18:57:23,407 11308 [DEBUG] - ---------------------------Script Execution--------------------------- 2021-06-14 18:57:23,407 11308 [DEBUG] - Running 'ChocolateyScriptRunner' for geforce-game-ready-driver v466.77 with packageScript 'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver\tools\chocolateyuninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver', installArguments: '', packageParameters: '', 2021-06-14 18:57:23,407 11308 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver\tools\chocolateyuninstall.ps1' 2021-06-14 18:57:23,438 11308 [DEBUG] - Running 'Get-UninstallRegistryKey' for 'geforce-game-ready-driver' with SoftwareName:'NVIDIA Graphics Driver*' 2021-06-14 18:57:23,438 11308 [INFO ] - VERBOSE: Retrieving all uninstall registry keys 2021-06-14 18:57:23,891 11308 [DEBUG] - Registry uninstall keys on system: 984 2021-06-14 18:57:23,891 11308 [DEBUG] - Error handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly. 2021-06-14 18:57:24,423 11308 [DEBUG] - Found 0 uninstall registry key(s) with SoftwareName:'NVIDIA Graphics Driver*' 2021-06-14 18:57:24,423 11308 [DEBUG] - Running 'Get-UninstallRegistryKey' for 'geforce-game-ready-driver' with SoftwareName:'NVIDIA Graphics Driver*' 2021-06-14 18:57:24,423 11308 [INFO ] - VERBOSE: Retrieving all uninstall registry keys 2021-06-14 18:57:24,844 11308 [DEBUG] - Registry uninstall keys on system: 984 2021-06-14 18:57:24,844 11308 [DEBUG] - Error handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly. 2021-06-14 18:57:25,407 11308 [DEBUG] - Found 0 uninstall registry key(s) with SoftwareName:'NVIDIA Graphics Driver*' 2021-06-14 18:57:25,423 11308 [DEBUG] - Running Uninstall-ChocolateyPackage -packageName 'geforce-game-ready-driver' -fileType 'EXE' -validExitCodes '0' -silentArgs ' -silent' -file '' 2021-06-14 18:57:25,438 11308 [INFO ] - Uninstalling geforce-game-ready-driver... 2021-06-14 18:57:25,469 11308 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -statements ' -silent ' -exeToRun '' 2021-06-14 18:57:25,469 11308 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead. 2021-06-14 18:57:25,485 11308 [DEBUG] - Test-ProcessAdminRights: returning True 2021-06-14 18:57:25,485 11308 [DEBUG] - Elevating permissions and running ["" -silent ]. This may take a while, depending on the statements. 2021-06-14 18:57:25,501 11308 [ERROR] - ERROR: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form." 2021-06-14 18:57:25,501 11308 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver\tools\chocolateyuninstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'. 2021-06-14 18:57:25,501 11308 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a'] 2021-06-14 18:57:25,532 11308 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116' 2021-06-14 18:57:25,532 11308 [ERROR] - geforce-game-ready-driver uninstall not successful. 2021-06-14 18:57:25,532 11308 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver\tools\chocolateyuninstall.ps1'. See log for details. 2021-06-14 18:57:25,532 11308 [ERROR] - geforce-game-ready-driver not uninstalled. An error occurred during uninstall: geforce-game-ready-driver uninstall not successful. 2021-06-14 18:57:25,532 11308 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). 2021-06-14 18:57:25,532 11308 [DEBUG] - Logging of values is not turned on by default because it could potentially expose sensitive data. If you understand the risk, please see `choco feature -h` for information to turn it on. 2021-06-14 18:57:25,532 11308 [DEBUG] - The following values have been added/changed (may contain sensitive data): 2021-06-14 18:57:25,532 11308 [DEBUG] - * PATHEXT='[REDACTED]' (User) 2021-06-14 18:57:25,548 11308 [WARN ] - Chocolatey uninstalled 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2021-06-14 18:57:25,548 11308 [INFO ] - 2021-06-14 18:57:25,548 11308 [ERROR] - Failures 2021-06-14 18:57:25,548 11308 [ERROR] - - geforce-game-ready-driver (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\geforce-game-ready-driver\tools\chocolateyuninstall.ps1'. See log for details. 2021-06-14 18:57:25,548 11308 [WARN ] - If a package uninstall is failing and/or you've already uninstalled the software outside of Chocolatey, you can attempt to run the command with `-n` to skip running a chocolateyUninstall script, additionally adding `--skip-autouninstaller` to skip an attempt to automatically remove system-installed software. This will only remove the packaging files and not things like software installed to Programs and Features. If a package is failing because it is a dependency of another package or packages, then you may first need to consider if it needs removed as it is typically installed as a dependency for a reason. If you decide that you still want to remove it, head into `$env:ChocolateyInstall\lib` and find the package folder you want removed. Then delete the folder for the package. This option should only be used as a last resort. 2021-06-14 18:57:25,548 11308 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2021-06-14 18:57:25,563 11308 [DEBUG] - Exiting with -1