fix(windows): bundle vigembus instead of downloading it (#4088)
This commit is contained in:
8
src_assets/windows/misc/gamepad/uninstall-gamepad.ps1
Normal file
8
src_assets/windows/misc/gamepad/uninstall-gamepad.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
# Use Get-CimInstance to find and uninstall Virtual Gamepad
|
||||
$product = Get-CimInstance -ClassName Win32_Product -Filter "Name='ViGEm Bus Driver'"
|
||||
if ($product) {
|
||||
Invoke-CimMethod -InputObject $product -MethodName Uninstall
|
||||
Write-Information "ViGEm Bus Driver uninstalled successfully"
|
||||
} else {
|
||||
Write-Warning "ViGEm Bus Driver not found"
|
||||
}
|
||||
Reference in New Issue
Block a user