Befehle, um Crystal ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id CrystalLang.Crystal -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CrystalLang.Crystal -e --silentwinget uninstall --id CrystalLang.Crystal -e --silentNach Installer
64-Bit · EXE (Inno Setup) · Aktueller Benutzer
Stille Installation
crystal-1.22.1-windows-x86_64-msvc-unsupported.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
crystal-1.22.1-windows-x86_64-msvc-unsupported.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\crystal"- Deinstallationsschlüssel in der Registry
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7C307DDF-447E-46C5-BB3B-47A6F652D7C8}_is1
64-Bit · EXE (Inno Setup) · Alle Benutzer
Stille Installation
crystal-1.22.1-windows-x86_64-msvc-unsupported.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
crystal-1.22.1-windows-x86_64-msvc-unsupported.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\crystal"- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7C307DDF-447E-46C5-BB3B-47A6F652D7C8}_is1
64-Bit · ZIP
Keine Installation nötig (portabel)
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-crystal.ps1
$url = 'https://github.com/crystal-lang/crystal/releases/download/1.22.1/crystal-1.22.1-windows-x86_64-msvc-unsupported.exe'
$sha256 = '71C4F789F41115A6EB70DD9A6DF2014F75E80AC3B73446E70DEC7634A198F91E'
$file = Join-Path $env:TEMP 'crystal-1.22.1-windows-x86_64-msvc-unsupported.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait install-crystal.ps1
$url = 'https://github.com/crystal-lang/crystal/releases/download/1.22.1/crystal-1.22.1-windows-x86_64-msvc-unsupported.exe'
$sha256 = '71C4F789F41115A6EB70DD9A6DF2014F75E80AC3B73446E70DEC7634A198F91E'
$file = Join-Path $env:TEMP 'crystal-1.22.1-windows-x86_64-msvc-unsupported.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait