Ordres per instal·lar Haystack Editor 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 HaystackSoftware.HaystackEditor -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HaystackSoftware.HaystackEditor -e --silentwinget uninstall --id HaystackSoftware.HaystackEditor -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Usuari actual
Instal·lació silenciosa
HaystackEditorSetup-0.20.3.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
HaystackEditorSetup-0.20.3.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\haystack-editor"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-haystack-editor.ps1
$url = 'https://d2dv27o1k99orf.cloudfront.net/windows-installer/HaystackEditorSetup-0.20.3.exe'
$sha256 = '970B13325CF73BE7131F94585126362381AD61DD340221452FD9E205CC1D9F69'
$file = Join-Path $env:TEMP 'HaystackEditorSetup-0.20.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait