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

24 lines
765 B
PowerShell
Raw Normal View History

2017-12-28 21:34:02 +00:00
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
2017-12-28 21:34:02 +00:00
2017-12-28 21:30:35 +00:00
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