Last active
February 28, 2017 17:31
-
-
Save jcdickinson/e07cc7c75e1b1af34a15f11925340420 to your computer and use it in GitHub Desktop.
Razer NGEN
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
$InstallDir = 'C:\Program Files (x86)\Razer' | |
Get-ChildItem -Path $InstallDir -Filter '*.dll' -Recurse | ForEach-Object { | |
$Assembly = $_.FullName | |
Write-Host "Queueing up $Assembly for NGEN installation." | |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install $Assembly /queue:2 /nologo | |
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install $Assembly /queue:2 /nologo | |
} | |
Get-ChildItem -Path $InstallDir -Filter '*.exe' -Recurse | ForEach-Object { | |
$Assembly = $_.FullName | |
Write-Host "Queueing up $Assembly for NGEN installation." | |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install $Assembly /queue:2 /nologo | |
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install $Assembly /queue:2 /nologo | |
} | |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe eqi 2 | |
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe eqi 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment