Kommandon för att installera texpaste utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id jonasmusall.texpaste -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jonasmusall.texpaste -e --silentwinget uninstall --id jonasmusall.texpaste -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Tyst installation
texpaste_1.2.0_win_setup.exe /SEgen mapp
texpaste_1.2.0_win_setup.exe /S /D=C:\Apps\texpastePowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-texpaste.ps1
$url = 'https://github.com/jonasmusall/texpaste/releases/download/v1.2.0/texpaste_1.2.0_win_setup.exe'
$sha256 = '317BD57646881FBFC2F57B0B0ECD9A1F10C024ED1BC659932FE05515836EAAF9'
$file = Join-Path $env:TEMP 'texpaste_1.2.0_win_setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait