|
|
@ -7,17 +7,20 @@ Break
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (get-module | Where-Object {$_.Name -eq "ViGEmManagementModule"})
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
#Remove multiple just in case...
|
|
|
|
if (Get-ViGEmBusDevice)
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
{
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
}
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted
|
|
|
|
|
|
|
|
|
|
|
|
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted -confirm:$false
|
|
|
|
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Install-ViGEmBusDeviceDriver
|
|
|
|
Install-ViGEmBusDeviceDriver
|
|
|
|
|
|
|
|
|
|
|
|