Repository navigation
Drivers: install ViGEmBus with the right silent arguments (no more "Invalid command line") - #90
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The bundled
ViGEmBus_1.22.0_x64_x86_arm64.exeis 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
RebootRequiredand log "Restart Windows to finish installing …" (newdriver.rebootToFinishstring). 3010 used to log "fatal error".Exit code 1604 (install suspended) sets
RebootRequiredand logs "Restarting Windows is required: … won't work until you restart and then install it again" (newdriver.rebootThenReinstallstring): 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:
--installrunsEnsureInstalledagain.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
DriverInstallerArgsTests(Advanced Installer, WiX Burn, a broken file and a missing file); 149/149 tests pass./exenoui /qn /norestarton 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.MsiExec /@from RunOnce ran (MsiInstaller events 1040/1042) but installed nothing: no ViGEmBus service, noViGEmBus.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./exenoui /qn /norestart, with no ViGEmBus left on the PC: exit 0 in 15 s. The ViGEmBus service is running,ViGEmBus.sysis 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