Skip to content

Instantly share code, notes, and snippets.

@raspi
Last active November 17, 2017 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raspi/5768b6672c0ac00f048cbd86ffd61c22 to your computer and use it in GitHub Desktop.
Save raspi/5768b6672c0ac00f048cbd86ffd61c22 to your computer and use it in GitHub Desktop.
Install nVidia drivers without extra stuff
# 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