Kommandon för att installera Dev Janitor 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 cocojojo5213.DevJanitor -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id cocojojo5213.DevJanitor -e --silentwinget uninstall --id cocojojo5213.DevJanitor -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
Dev.Janitor_2.5.1_x64-setup.exe /SEgen mapp
Dev.Janitor_2.5.1_x64-setup.exe /S /D=C:\Apps\dev-janitor- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dev Janitor
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-dev-janitor.ps1
$url = 'https://github.com/cocojojo5213/Dev-Janitor/releases/download/v2.5.1/Dev.Janitor_2.5.1_x64-setup.exe'
$sha256 = '886E474397A874CED566F06921670EA63469994B95C0ED9CEC6208D526D4C359'
$file = Join-Path $env:TEMP 'Dev.Janitor_2.5.1_x64-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