Ordres per instal·lar Bottleneck 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 PromecSystems.Bottleneck -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PromecSystems.Bottleneck -e --silentwinget uninstall --id PromecSystems.Bottleneck -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
Bottleneck-1.6.29-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
Bottleneck-1.6.29-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\bottleneck"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7C4E2A91-3F6D-4B8E-9A21-5D0C8E7F1B34}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-bottleneck.ps1
$url = 'https://github.com/Bottleneckonline/Bottleneck-downloads/releases/download/v1.6.29/Bottleneck-1.6.29-Setup.exe'
$sha256 = '540F0A173A32EA2F73C9611AD6FA906AEC01E7B73D0B1624FB8E99B7BF7E3FFD'
$file = Join-Path $env:TEMP 'Bottleneck-1.6.29-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait