Kommandon för att installera Aster Mail 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 AsterPrivacy.AsterMail -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AsterPrivacy.AsterMail -e --silentwinget uninstall --id AsterPrivacy.AsterMail -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare · en-US
Tyst installation
Aster-Mail-x64-setup.exe /SEgen mapp
Aster-Mail-x64-setup.exe /S /D=C:\Apps\aster-mail- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Aster Mail
- Installationsmapp
- %LocalAppData%\Aster Mail
- DisplayVersion
- 1.4.91
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-aster-mail.ps1
$url = 'https://github.com/Aster-Privacy/Aster-Mail/releases/download/v1.4.91/Aster-Mail-x64-setup.exe'
$sha256 = '992CBB0B796C2FE809F99368E4359A77EE1D9BEBEF838E4D374321DD15BC3348'
$file = Join-Path $env:TEMP 'Aster-Mail-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