Kommandon för att installera Elastic 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 Gold872.Elastic -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Gold872.Elastic -e --silentwinget uninstall --id Gold872.Elastic -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare · en-US
Tyst installation
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\elastic"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2746922E-A2AC-4987-AF02-714F429C7C77}_is1
- Installationsmapp
- %LocalAppData%\Programs\FRC Elastic
- DisplayVersion
- 2027.0.0.0
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\elastic"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2746922E-A2AC-4987-AF02-714F429C7C77}_is1
- Installationsmapp
- %ProgramFiles%\FRC Elastic
- DisplayVersion
- 2027.0.0.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-elastic.ps1
$url = 'https://github.com/Gold872/elastic_dashboard/releases/download/v2027.0.0-alpha9/elastic-setup-windows.exe'
$sha256 = '8C976167791BFB000EB43F91B7BE9E201BCBE8ABDC1F5A4EC8D160D156BD380F'
$file = Join-Path $env:TEMP 'elastic-setup-windows.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-elastic.ps1
$url = 'https://github.com/Gold872/elastic_dashboard/releases/download/v2027.0.0-alpha9/elastic-setup-windows.exe'
$sha256 = '8C976167791BFB000EB43F91B7BE9E201BCBE8ABDC1F5A4EC8D160D156BD380F'
$file = Join-Path $env:TEMP 'elastic-setup-windows.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait