Kommandon för att installera EnsoCode 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 J3n5en.EnsoCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id J3n5en.EnsoCode -e --silentwinget uninstall --id J3n5en.EnsoCode -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
EnsoCode-Setup-0.3.3.exe /SEgen mapp
EnsoCode-Setup-0.3.3.exe /S /D=C:\Apps\ensocode- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\6c6eaad5-4cd3-5ae6-9e2a-855d476d1745
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ensocode.ps1
$url = 'https://github.com/J3n5en/EnsoCode/releases/download/v0.3.3/EnsoCode-Setup-0.3.3.exe'
$sha256 = '6DCF807F9EA0AD726A1B9F9C1EDC66930404A6518F812B38C6F0DDCE83E7168B'
$file = Join-Path $env:TEMP 'EnsoCode-Setup-0.3.3.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