Kommandon för att installera DevWit 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 eeyzs1.DevWit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id eeyzs1.DevWit -e --silentwinget uninstall --id eeyzs1.DevWit -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
DevWit.Setup.0.7.30.exe /SEgen mapp
DevWit.Setup.0.7.30.exe /S /D=C:\Apps\devwit- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8de26b52-cf1c-58c4-8f9f-a7b471bba36e
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-devwit.ps1
$url = 'https://github.com/eeyzs1/DevWit/releases/download/v0.7.30/DevWit.Setup.0.7.30.exe'
$sha256 = '5684CAD6F3D2D7CFBE2DE666141C842D847ADF5F327C627A590C0F8F3DAC58C3'
$file = Join-Path $env:TEMP 'DevWit.Setup.0.7.30.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