Ordres per instal·lar Elastic sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (Inno Setup) · Usuari actual · en-US
Instal·lació silenciosa
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\elastic"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2746922E-A2AC-4987-AF02-714F429C7C77}_is1
- Carpeta d’instal·lació
- %LocalAppData%\Programs\FRC Elastic
- DisplayVersion
- 2027.0.0.0
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
elastic-setup-windows.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\elastic"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2746922E-A2AC-4987-AF02-714F429C7C77}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\FRC Elastic
- DisplayVersion
- 2027.0.0.0
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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