Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvidia-display-driver-dch-np: Errors regarding GeForce Experience #393

Open
WildeBeast2521 opened this issue Jan 25, 2025 · 1 comment · May be fixed by #397
Open

nvidia-display-driver-dch-np: Errors regarding GeForce Experience #393

WildeBeast2521 opened this issue Jan 25, 2025 · 1 comment · May be fixed by #397
Labels
bug Something isn't working

Comments

@WildeBeast2521
Copy link

WildeBeast2521 commented Jan 25, 2025

Bug Report

Package Name: nvidia-display-driver-dch-np

Current Behaviour

Errors regarding GeForce Experience, which was recently removed from the driver setup

Possible Solution

Update the manifest to reflect the removal of GeForce Experience and incorporate the Nvidia App as its replacement

Errors

nvidia-display-driver-dch-np: 566.36 -> 566.36
Updating one outdated app:
Updating 'nvidia-display-driver-dch-np' (566.36 -> 566.36)
Downloading new version
Loading 566.36-desktop-win10-win11-64bit-international-dch-whql.exe from cache.
Checking hash of 566.36-desktop-win10-win11-64bit-international-dch-whql.exe ... ok.
Uninstalling 'nvidia-display-driver-dch-np' (566.36)
Unlinking ~\scoop\apps\nvidia-display-driver-dch-np\current
Installing 'nvidia-display-driver-dch-np' (566.36) [64bit] from 'nonportable' bucket
Loading 566.36-desktop-win10-win11-64bit-international-dch-whql.exe from cache.
Running installer script...Move-Item : Cannot find path 'C:\Users\[redacted]\scoop\apps\nvidia-display-driver-dch-np\566.36\extract\Display.Optimus' because it does not exist.
At line:9 char:1
+ Move-Item "$dir\extract\Display.Optimus" -Destination "$dir\setup"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\[redacted]\s...Display.Optimus:String) [MoveItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand

Move-Item : Cannot find path 'C:\Users\[redacted]\scoop\apps\nvidia-display-driver-dch-np\566.36\extract\GFExperience\PrivacyPolicy' because it does not exist.
At line:17 char:1
+ Move-Item "$dir\extract\GFExperience\PrivacyPolicy" -Destination "$di ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\[redacted]\s...e\PrivacyPolicy:String) [Move-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand

Move-Item : Cannot find path 'C:\Users\[redacted]\scoop\apps\nvidia-display-driver-dch-np\566.36\extract\GFExperience\EULA.html' because it does not exist.
At line:18 char:1
+ Move-Item "$dir\extract\GFExperience\EULA.html" -Destination "$dir\se ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\[redacted]\s...ience\EULA.html:String) [Move-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand

Move-Item : Cannot find path 'C:\Users\[redacted]\scoop\apps\nvidia-display-driver-dch-np\566.36\extract\GFExperience' because it does not exist.
At line:19 char:1
+ Move-Item "$dir\extract\GFExperience\FunctionalConsent*" -Destination ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\[redacted]\s...ct\GFExperience:String) [Move-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand

System details

Windows version: 11

OS architecture: 64bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      26100  2161

Scoop Configuration

{
    "last_update":  "2025-01-25T20:50:06.2150848+05:00",
    "cache_path":  "D:\\scoop\\cache",
    "update_nightly":  false,
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "scoop_branch":  "master"
}
@WildeBeast2521 WildeBeast2521 added the bug Something isn't working label Jan 25, 2025
@WildeBeast2521
Copy link
Author

The following manifest file addresses the issues identified in the above package. Lines with # have been changed.

{
    "version": "572.16",
    "description": "NVIDIA display driver (Declarative Componentized Hardware version). DCH drivers are installed on most new desktop and mobile workstation systems.",
    "homepage": "https://www.nvidia.com/Download/index.aspx",
    "license": "Freeware",
    "notes": [
        "This is only an installer for the NVIDIA display driver. Running `scoop uninstall nvidia-display-driver-dch-np` will only unregister it from Scoop.",
        "The NVIDIA display driver installer installs and enables the NVIDIA Display Container LS service, which is required for the NVIDIA Control Panel application but also contains telemetry components.",
        "To disable this functionality and prevent it from being re-enabled on future updates, disable the service using the following commands:",
        "$ Stop-Service NVDisplay.ContainerLocalSystem",
        "$ Set-Service NVDisplay.ContainerLocalSystem -StartupType Disabled"
    ],
    "architecture": {
        "64bit": {
            "url": "https://us.download.nvidia.com/Windows/572.16/572.16-desktop-win10-win11-64bit-international-dch-whql.exe#/dl.7z_",
            "hash": "44b5eb432d44ecc3e0c37ffc15c1711759711d4bdbae91695d013f064604888f"
        }
    },
    "installer": {
        "script": [
            "if(!(is_admin)) { error 'This package requires admin rights to install'; break }",
            "if ([environment]::OSVersion.Version.Major -lt 10) { error 'This package requires Windows 10/11 to install'; break }",
            "$service_disabled = (Get-CimInstance win32_service -Filter \"name='NVDisplay.ContainerLocalSystem'\").StartMode -eq 'Disabled'",
            "",
            "New-Item \"$dir\\extract\", \"$dir\\setup\" -ItemType Directory | Out-Null",
            "Expand-7zipArchive \"$dir\\dl.7z_\" \"$dir\\extract\" -Removal | Out-Null",
            "# Move everything we want",
            "Move-Item \"$dir\\extract\\Display.Driver\" -Destination \"$dir\\setup\"",
            # Display.Optimus folder no longer in setup
            "Move-Item \"$dir\\extract\\HDAudio\" -Destination \"$dir\\setup\"",
            "Move-Item \"$dir\\extract\\NVI2\" -Destination \"$dir\\setup\"",
            "Move-Item \"$dir\\extract\\PhysX\" -Destination \"$dir\\setup\"",
            "Move-Item \"$dir\\extract\\*.txt\" -Destination \"$dir\\setup\"",
            "Move-Item \"$dir\\extract\\setup.*\" -Destination \"$dir\\setup\"",
            "# The installer will not run without these legal files",
            # "New-Item \"$dir\\setup\\NvApp\" -ItemType Directory | Out-Null",
            # "Move-Item \"$dir\\extract\\NvApp\\PrivacyPolicy\" -Destination \"$dir\\setup\\NvApp\"",
            # "Move-Item \"$dir\\extract\\NvApp\\Unified_EULA\" -Destination \"$dir\\setup\\NvApp\"",
            # "Move-Item \"$dir\\extract\\NvApp\\UpgradeConsent\" -Destination \"$dir\\setup\\NvApp\"",
            # "Move-Item \"$dir\\extract\\NvApp\\FunctionalConsent*\" -Destination \"$dir\\setup\\NvApp\"",
            "",
            "if ($service_disabled) {",
            "    Start-Process -Wait -WindowStyle Hidden cmd \"/c call `\"$dir\\setup\\setup.exe`\" -s -noreboot && sc config NVDisplay.ContainerLocalSystem start= disabled && sc stop NVDisplay.ContainerLocalSystem\" -Verb RunAs",
            "} else {",
            "    Start-Process -Wait \"$dir\\setup\\setup.exe\" \"-s -noreboot\" -Verb RunAs",
            "}",
            "",
            "Remove-Item \"$dir\\extract\", \"$dir\\setup\" -Force -Recurse"
        ]
    },
    "checkver": {
        "url": "https://gfwsl.geforce.com/services_toolkit/services/com/nvidia/services/AjaxDriverService.php?func=DriverManualLookup&psid=98&osID=57&languageCode=1033&beta=0&isWHQL=1&dltype=-1&dch=1&upCRD=0&sort1=0&numberOfResults=1",
        "regex": "\"Version\"\\s?:\\s?\"(?<version>[\\d.]+)\".*\"DownloadURL\"\\s?:\\s?\"https://us.download.nvidia.com/(?<path>[^\"]*)\""
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://us.download.nvidia.com/$matchPath#/dl.7z_"
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant