Skip to content

Instantly share code, notes, and snippets.

@jcdickinson
Last active February 28, 2017 17:31
Show Gist options
  • Save jcdickinson/e07cc7c75e1b1af34a15f11925340420 to your computer and use it in GitHub Desktop.
Save jcdickinson/e07cc7c75e1b1af34a15f11925340420 to your computer and use it in GitHub Desktop.
Razer NGEN
$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