Skip to content

Drivers: install ViGEmBus with the right silent arguments (no more "Invalid command line") - #90

Merged
mlopezsegura merged 4 commits into
masterfrom
fix/vigembus-install-args
Nov 23, 2026
Merged

mlopezsegura merged 4 commits into
masterfrom
fix/vigembus-install-args

Conversation

@mlopezsegura

@mlopezsegura mlopezsegura commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The bundled ViGEmBus_1.22.0_x64_x86_arm64.exe is an Advanced Installer bootstrapper (like HidHide's), but OpenStreamMS launched it with WiX Burn arguments (/quiet /install /norestart). On every install or update it showed "Invalid command line" and ViGEmBus was never installed, so on PCs that didn't already have ViGEmBus, Sunshine logged "No gamepad input is available" and Moonlight controllers didn't work (#80).

Changes

  • The silent arguments now depend on the installer file, not on the driver: a WiX Burn bundle (PE section .wixburn) gets /quiet /install /norestart; anything else, or a file that can't be read, gets /exenoui /qn /norestart.

  • Exit codes 3010 and 1641 set RebootRequired and log "Restart Windows to finish installing …" (new driver.rebootToFinish string). 3010 used to log "fatal error".

  • Exit code 1604 (install suspended) sets RebootRequired and logs "Restarting Windows is required: … won't work until you restart and then install it again" (new driver.rebootThenReinstall string): the suspended install does not finish by itself at the next boot (see Testing).

  • Users on 2.1.0 without ViGEmBus get it on the next update: --install runs EnsureInstalled again.

  • The dashboard's reboot banner (vigem.rebootRequired) now says the restart is required: "Restarting Windows is required: the operation isn't complete until you restart."

Testing

  • New DriverInstallerArgsTests (Advanced Installer, WiX Burn, a broken file and a missing file); 149/149 tests pass.
  • Ran the bundled 1.22.0 installer with /exenoui /qn /norestart on a PC that had ViGEmBus 1.21.442: no "Invalid command line"; it ran silently, removed 1.21.442 and exited with 1604, leaving the 1.22.0 install to finish after a restart (MsiExec.exe /@ in RunOnce). That's why 1604 is now handled.
  • After restarting, the MsiExec /@ from RunOnce ran (MsiInstaller events 1040/1042) but installed nothing: no ViGEmBus service, no ViGEmBus.sys. An older build with the WiX arguments then hung for 5 minutes on the hidden "Invalid command line" dialog and timed out, which is the original bug.
  • Running the 1.22.0 installer again with /exenoui /qn /norestart, with no ViGEmBus left on the PC: exit 0 in 15 s. The ViGEmBus service is running, ViGEmBus.sys is present, "ViGEm Bus Driver 1.22.0" is in Apps, and a ViGEm X360 pad shows up in XInput slot 0. This is the same situation as a clean install.

🤖 Generated with Claude Code

mlopezsegura and others added 4 commits November 23, 2026 19:22
The bundled ViGEmBus 1.22.0 installer is an Advanced Installer bootstrapper,
like HidHide's, but it was launched with WiX Burn arguments
(/quiet /install /norestart). It showed "Invalid command line" on every
install or update and ViGEmBus was never installed, so Moonlight
controllers didn't work on PCs that didn't already have it (#80).

The silent arguments now depend on the installer itself: a WiX Burn bundle
(PE section .wixburn) gets /quiet /install /norestart, anything else gets
/exenoui /qn /norestart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upgrading ViGEmBus 1.21 to 1.22 removes the old driver and suspends the
install until Windows restarts (Windows Installer finishes it from RunOnce),
so the installer exits with 1604. 3010 also logged "fatal error" although
it only means a restart is needed. All three now set RebootRequired and log
"Restart Windows to finish installing ViGEmBus".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested on a PC upgrading ViGEmBus 1.21.442 to 1.22.0: the installer
removes the old driver and exits with 1604, but the "MsiExec /@" it
leaves in RunOnce installs nothing at the next boot. Running the
installer again after the restart works (exit 0, nothing left to
remove), so the log now says so instead of "restart to finish".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 1604 message and the dashboard's reboot banner now say the restart
is mandatory: the driver (or the operation) won't work until Windows
restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mlopezsegura
mlopezsegura merged commit fbfc3d1 into master Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant