You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GlosSI-fork/redist/Install_Update_ViGEm.ps1

18 lines
657 B
PowerShell

If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
$arguments = "& '" + $myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb runAs -ArgumentList $arguments
Break
Return
}
if (!(Get-Module -Listavailable -Name "ViGEmManagementModule"))
{
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
}
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
Add-ViGEmBusDevice
Install-ViGEmBusDeviceDriver