Commands for installing Microsoft GameInput without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.GameInput -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.GameInput -e --silentwinget uninstall --id Microsoft.GameInput -e --silentBy installer
64-bit · ZIP · All users
Silent install
msiexec /i microsoft.gameinput.4.0.302.nupkg /qn /norestartUninstall
msiexec /x {0DA71DCF-F605-435D-9B16-051DFBE7CB76} /qn /norestart- MSI product code
- {0DA71DCF-F605-435D-9B16-051DFBE7CB76}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0DA71DCF-F605-435D-9B16-051DFBE7CB76}
- UpgradeCode
- {37042BD3-CED5-451B-818A-3E9454BDF060}
- Install folder
- %ProgramFiles%/Microsoft GameInput
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-gameinput.ps1
$url = 'https://globalcdn.nuget.org/packages/microsoft.gameinput.4.0.302.nupkg'
$sha256 = 'A4F000C3A41385819B51E5CDD7DAE66D7DDE85C6DE0BFD823CFE617D4BAAAC33'
$file = Join-Path $env:TEMP 'microsoft.gameinput.4.0.302.nupkg'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait