أوامر لتثبيت برنامج RemoteApp Tool دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id KimKnight.RemoteAppTool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KimKnight.RemoteAppTool -e --silentwinget uninstall --id KimKnight.RemoteAppTool -e --silentحسب المثبّت
32 بت · MSI · جميع المستخدمين · en-US
التثبيت الصامت
msiexec /i RemoteApp.Tool.6100.msi /qn /norestartكتابة ملف سجل
msiexec /i RemoteApp.Tool.6100.msi /qn /norestart /l*v "%TEMP%\remoteapp-tool-install.log"إلغاء التثبيت
msiexec /x {2F45BE4C-46C5-41AB-81A8-ACE3CDE6FDA7} /qn /norestart- رمز منتج MSI
- {2F45BE4C-46C5-41AB-81A8-ACE3CDE6FDA7}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2F45BE4C-46C5-41AB-81A8-ACE3CDE6FDA7}
- UpgradeCode
- {3B0A08A8-E72A-4AFD-AC75-93AC686CDC39}
- مجلد التثبيت
- APPDIR:.
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-remoteapp-tool.ps1
$url = 'https://github.com/kimmknight/remoteapptool/releases/download/v6.1.0.0/RemoteApp.Tool.6100.msi'
$sha256 = '33ADE6B6991030ECE9CAFA3DBFD16BB374DCE578405DD2FDAAC90CC8056AF77C'
$file = Join-Path $env:TEMP 'RemoteApp.Tool.6100.msi'
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