feat(windows): add ViGEmBus driver management API and UI integration (#4625)
Introduces backend API endpoints for ViGEmBus status and installation, updates Windows build scripts to handle ViGEmBus versioning and installer download, and integrates ViGEmBus status and installation controls into the web UI. Removes legacy PowerShell scripts for gamepad driver management and related NSIS installer commands.
This commit is contained in:
parent
3a12f96a86
commit
7e286b90b6
15 changed files with 360 additions and 72 deletions
|
|
@ -1,20 +0,0 @@
|
|||
# Check if a compatible version of ViGEmBus is already installed (1.17 or later)
|
||||
try {
|
||||
$vigemBusPath = "$env:SystemRoot\System32\drivers\ViGEmBus.sys"
|
||||
$fileVersion = (Get-Item $vigemBusPath).VersionInfo.FileVersion
|
||||
|
||||
if ($fileVersion -ge [System.Version]"1.17") {
|
||||
Write-Information "The installed version is 1.17 or later, no update needed. Exiting."
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
catch {
|
||||
Write-Information "ViGEmBus driver not found or inaccessible, proceeding with installation."
|
||||
}
|
||||
|
||||
# Install Virtual Gamepad
|
||||
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$installerPath = Join-Path $scriptPath "vigembus_installer.exe"
|
||||
Start-Process `
|
||||
-FilePath $installerPath `
|
||||
-ArgumentList "/passive", "/promptrestart"
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# 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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue