Polecenia do instalacji programu texpaste bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · EXE (NSIS)
Cicha instalacja
texpaste_1.2.0_win_setup.exe /SWłasny folder
texpaste_1.2.0_win_setup.exe /S /D=C:\Apps\texpastePowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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