Ordres per instal·lar Captain Kill Switch 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 CaptainKillSwitch.CaptainKillSwitch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CaptainKillSwitch.CaptainKillSwitch -e --silentwinget uninstall --id CaptainKillSwitch.CaptainKillSwitch -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i captain-kill-switch-0.4.16-windows-x64.msi /qn /norestartDesar un registre
msiexec /i captain-kill-switch-0.4.16-windows-x64.msi /qn /norestart /l*v "%TEMP%\captain-kill-switch-install.log"Desinstal·lar
msiexec /x {E558ACBA-B034-477C-A1C3-61EA78A0B67B} /qn /norestart- Codi de producte MSI
- {E558ACBA-B034-477C-A1C3-61EA78A0B67B}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E558ACBA-B034-477C-A1C3-61EA78A0B67B}
- UpgradeCode
- {984FC5FB-4BE0-5465-85FF-3FDCFED283B5}
- Carpeta d’instal·lació
- %ProgramFiles%/Captain Kill Switch
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-captain-kill-switch.ps1
$url = 'https://github.com/captainkillswitch/downloads/releases/download/v0.4.16/captain-kill-switch-0.4.16-windows-x64.msi'
$sha256 = '8F1441118788C8B2ED6B5B6B31BA584B4818C875231B292815BBD68B95B2FC7A'
$file = Join-Path $env:TEMP 'captain-kill-switch-0.4.16-windows-x64.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