From 9ee1bed7a73c7d84632e8bbc23284ed342839550 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Thu, 28 Dec 2017 22:37:46 +0100 Subject: [PATCH] ViGemScript: add vigem device removal, just in case --- redist/Install_Update_ViGEm.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/redist/Install_Update_ViGEm.ps1 b/redist/Install_Update_ViGEm.ps1 index 8b23a3a..3dc76da 100644 --- a/redist/Install_Update_ViGEm.ps1 +++ b/redist/Install_Update_ViGEm.ps1 @@ -8,14 +8,17 @@ 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 -#Remove just in case... -Get-ViGEmBusDevice | Remove-ViGEmBusDevice - Install-ViGEmBusDeviceDriver Add-ViGEmBusDevice \ No newline at end of file