أوامر لتثبيت برنامج Lt Sampling دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id ADInstruments.LtSampling -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ADInstruments.LtSampling -e --silentwinget uninstall --id ADInstruments.LtSampling -e --silentحسب المثبّت
64 بت · MSIX
التثبيت الصامت
Add-AppxPackage -Path lt-sampling-1.5.1-9-g2f8db4c.msixإلغاء التثبيت
Get-AppxPackage -Name ADInstrumentsNZLimited.LtSampling | Remove-AppxPackage64 بت · MSI
التثبيت الصامت
msiexec /i lt-sampling-1.5.1-9-g2f8db4c.msi /qn /norestartكتابة ملف سجل
msiexec /i lt-sampling-1.5.1-9-g2f8db4c.msi /qn /norestart /l*v "%TEMP%\lt-sampling-install.log"إلغاء التثبيت
msiexec /x {DE692999-EB6C-4C5F-9066-8FC1D6156B6C} /qn /norestart- رمز منتج MSI
- {DE692999-EB6C-4C5F-9066-8FC1D6156B6C}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DE692999-EB6C-4C5F-9066-8FC1D6156B6C}
- UpgradeCode
- {C7C08EE9-D2E9-43EB-94F4-54DB93F66F3B}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-lt-sampling.ps1
$url = 'https://lt-sampling.kuracloud.com/win/1.5.2/lt-sampling-1.5.1-9-g2f8db4c.msix'
$sha256 = '5622C4AE024B71888B7E378B720CA0C10F8916B74FD619810CACFFF5D5BF8464'
$file = Join-Path $env:TEMP 'lt-sampling-1.5.1-9-g2f8db4c.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-lt-sampling.ps1
$url = 'https://lt-sampling.kuracloud.com/win/1.5.2/lt-sampling-1.5.1-9-g2f8db4c.msi'
$sha256 = 'E2039B6412FE04B1F3A6CDEF1066237471B483B4A92BEC8C3AA215B887ADCA18'
$file = Join-Path $env:TEMP 'lt-sampling-1.5.1-9-g2f8db4c.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