Last active
November 17, 2017 19:54
-
-
Save raspi/5768b6672c0ac00f048cbd86ffd61c22 to your computer and use it in GitHub Desktop.
Install nVidia drivers without extra stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install nVidia drivers without extra stuff | |
# | |
# Extract nvidia 385.69-desktop-win10-64bit-international-whql.exe to a directory and run: | |
# ./this-script.ps1 385.69-desktop-win10-64bit-international-whql | |
# | |
# (c) Pekka Järvinen 2017- | |
param ( | |
[Parameter(Mandatory=$true)][string]$unpackDir | |
) | |
# Move these directories away from install directory | |
$exclude = @( | |
"Display.NView" | |
"Display.Update" | |
"Display.Optimus" | |
"GFExperience" | |
"GFExperience.NvStreamSrv" | |
"MSVCRT" | |
"nodejs" | |
"NV3DVision" | |
"NV3DVisionUSB.Driver" | |
"NvBackend" | |
"NvCamera" | |
"NvContainer" | |
"NvTelemetry" | |
"NvVAD" | |
"NvvHCI" | |
"ShadowPlay" | |
"ShieldWirelessController" | |
"Update.Core" | |
) | |
$excludedDir = "$pwd\nvidiaexcluded" | |
if ((Test-Path "$excludedDir") -eq $False) { | |
New-Item -Path "$excludedDir" -ItemType Directory | |
} | |
Push-Location -Path "$unpackDir" | |
foreach ($exl in $exclude) { | |
if ((Test-Path "$exl") -eq $True) | |
{ | |
Move-Item "$exl" -Destination "$excludedDir" | |
} | |
} | |
Pop-Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment