Ordres per instal·lar Lt Sampling sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path lt-sampling-1.5.1-9-g2f8db4c.msixDesinstal·lar
Get-AppxPackage -Name ADInstrumentsNZLimited.LtSampling | Remove-AppxPackage64 bits · MSI
Instal·lació silenciosa
msiexec /i lt-sampling-1.5.1-9-g2f8db4c.msi /qn /norestartDesar un registre
msiexec /i lt-sampling-1.5.1-9-g2f8db4c.msi /qn /norestart /l*v "%TEMP%\lt-sampling-install.log"Desinstal·lar
msiexec /x {DE692999-EB6C-4C5F-9066-8FC1D6156B6C} /qn /norestart- Codi de producte MSI
- {DE692999-EB6C-4C5F-9066-8FC1D6156B6C}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DE692999-EB6C-4C5F-9066-8FC1D6156B6C}
- UpgradeCode
- {C7C08EE9-D2E9-43EB-94F4-54DB93F66F3B}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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