2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-07 03:20:40 +00:00
GlosSI-fork/redist/Install_Update_ViGEm.ps1
2017-12-28 22:37:46 +01:00

24 lines
765 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
}
#Remove multiple just in case...
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted -confirm:$false
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
Install-ViGEmBusDeviceDriver
Add-ViGEmBusDevice