Ordres per instal·lar LinkCode 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 ArcBox.LinkCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArcBox.LinkCode -e --silentwinget uninstall --id ArcBox.LinkCode -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
LinkCode-0.30.0-x64.exe /SUna altra carpeta
LinkCode-0.30.0-x64.exe /S /D=C:\Apps\linkcodeARM64 · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
LinkCode-0.30.0-arm64.exe /SUna altra carpeta
LinkCode-0.30.0-arm64.exe /S /D=C:\Apps\linkcodePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-linkcode.ps1
$url = 'https://github.com/arcboxlabs/linkcode/releases/download/v0.30.0/LinkCode-0.30.0-x64.exe'
$sha256 = '4CA88CB35BE686FEB17383BF8D69F4C401472F98B0D9E2B10B5EB02A7A3B8A1C'
$file = Join-Path $env:TEMP 'LinkCode-0.30.0-x64.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 '/S' -Wait install-linkcode.ps1
$url = 'https://github.com/arcboxlabs/linkcode/releases/download/v0.30.0/LinkCode-0.30.0-arm64.exe'
$sha256 = 'ABE3655066C3FE899E99AD8357C5A7694A746F7E06F5655F9534471614050BD0'
$file = Join-Path $env:TEMP 'LinkCode-0.30.0-arm64.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 '/S' -Wait