Ordres per instal·lar Spek 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 AlexanderKojevnikov.Spek -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AlexanderKojevnikov.Spek -e --silentwinget uninstall --id AlexanderKojevnikov.Spek -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i spek-0.8.5-beta.msi /qn /norestartDesar un registre
msiexec /i spek-0.8.5-beta.msi /qn /norestart /l*v "%TEMP%\spek-install.log"Desinstal·lar
msiexec /x {16353491-B630-454D-BFCF-9F3B1401B63C} /qn /norestart- Codi de producte MSI
- {16353491-B630-454D-BFCF-9F3B1401B63C}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{16353491-B630-454D-BFCF-9F3B1401B63C}
- UpgradeCode
- {46D51DDF-5749-45E2-818B-1ACADF21C0D9}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-spek.ps1
$url = 'https://github.com/alexkay/spek/releases/download/v0.8.5/spek-0.8.5-beta.msi'
$sha256 = 'B869A697EA1A996505F628520A8A1FBABF200483928A806D5022DBBD89BC2121'
$file = Join-Path $env:TEMP 'spek-0.8.5-beta.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait