Kommandon för att installera TinyGUI 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 Redisant.TinyGUI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Redisant.TinyGUI -e --silentwinget uninstall --id Redisant.TinyGUI -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
TinyGUI-1.0.9.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
TinyGUI-1.0.9.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tinygui"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{86F7E7FE-3438-4D1D-A575-0D9DE635D22C}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-tinygui.ps1
$url = 'https://github.com/chenjing1294/TinyGUI/releases/download/v1.0.9.0/TinyGUI-1.0.9.0.exe'
$sha256 = '1E29075564D9C283333F1BE13868E5DCF45B4E4E7922ACA72727E87E2B1A6CDA'
$file = Join-Path $env:TEMP 'TinyGUI-1.0.9.0.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait