Ordres per instal·lar chkLink 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 PeterJu.chkLink -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PeterJu.chkLink -e --silentwinget uninstall --id PeterJu.chkLink -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · zh-TW
Instal·lació silenciosa
chklink-1.4.1-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
chklink-1.4.1-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\chklink"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-chklink.ps1
$url = 'https://github.com/peterju/chkLink/releases/download/v1.4.1/chklink-1.4.1-win-x64-setup.exe'
$sha256 = 'FC8C735EEAFCE7FAF27D6C601DBB866DC9C61CB154F9E4424CE7D0E2FF9EA6A9'
$file = Join-Path $env:TEMP 'chklink-1.4.1-win-x64-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