أوامر لتثبيت برنامج Microsoft GameInput دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام 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 --silentحسب المثبّت
64 بت · ZIP · جميع المستخدمين
التثبيت الصامت
msiexec /i microsoft.gameinput.4.0.302.nupkg /qn /norestartإلغاء التثبيت
msiexec /x {0DA71DCF-F605-435D-9B16-051DFBE7CB76} /qn /norestart- رمز منتج MSI
- {0DA71DCF-F605-435D-9B16-051DFBE7CB76}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0DA71DCF-F605-435D-9B16-051DFBE7CB76}
- UpgradeCode
- {37042BD3-CED5-451B-818A-3E9454BDF060}
- مجلد التثبيت
- %ProgramFiles%/Microsoft GameInput
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
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