Kommandon för att installera YAHB 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 asdfjkl.YAHB -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id asdfjkl.YAHB -e --silentwinget uninstall --id asdfjkl.YAHB -e --silentPer installationsfil
64-bitars · ZIP
Kräver ingen installation (portabel)
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
yahb_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
yahb_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\yahb"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{828D92DF-53A9-4DC2-B60B-360DE739E493}_is1
- Installationsmapp
- %ProgramFiles%\YAHB
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-yahb.ps1
$url = 'https://github.com/asdfjkl/yahb/releases/download/v1.1.0.0/yahb_setup.exe'
$sha256 = 'F6269BC2CD733633DCF1603652C8ED6094A78059A280ABC322794AB9308A7F7E'
$file = Join-Path $env:TEMP 'yahb_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait