mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
fix ViGEm install script
This commit is contained in:
parent
874be31abb
commit
41741c1630
@ -7,17 +7,12 @@ Break
|
||||
Return
|
||||
}
|
||||
|
||||
if (get-module | Where-Object {$_.Name -eq "ViGEmManagementModule"})
|
||||
if (!(Get-Module -Listavailable -Name "ViGEmManagementModule"))
|
||||
{
|
||||
$res = Get-ViGEmBusDevice
|
||||
if ($res -ne $null)
|
||||
{
|
||||
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
||||
}
|
||||
} else {
|
||||
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted -force
|
||||
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted
|
||||
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
|
||||
}
|
||||
|
||||
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
|
||||
Install-ViGEmBusDeviceDriver
|
||||
Add-ViGEmBusDevice
|
||||
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
||||
Add-ViGEmBusDevice
|
||||
Install-ViGEmBusDeviceDriver
|
Loading…
Reference in New Issue
Block a user