免互動安裝WireSock Secure Connect CLI、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id NTKERNEL.WireSockVPNClientCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NTKERNEL.WireSockVPNClientCLI -e --silentwinget uninstall --id NTKERNEL.WireSockVPNClientCLI -e --silent依安裝檔
64位元 · EXE · en-US
靜默安裝
download-release.php /S /NCRCARM64 · EXE · en-US
靜默安裝
download-release.php /S /NCRC32位元 · EXE · en-US
靜默安裝
download-release.php /S /NCRCPowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-wiresock-secure-connect-cli.ps1
$url = 'https://wiresock.net/_api/download-release.php?product=wiresock-secure-connect-sdk&platform=x64&version=3.8.2.1&channel=winget'
$sha256 = '3FA1CA6E595FF64EE638CCDA8C14C8C5C6B65099130C4345F94464BCC3A0469C'
$file = Join-Path $env:TEMP 'download-release.php'
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 /NCRC' -Wait install-wiresock-secure-connect-cli.ps1
$url = 'https://wiresock.net/_api/download-release.php?product=wiresock-secure-connect-sdk&platform=ARM64&version=3.8.2.1&channel=winget'
$sha256 = '725E3B671118D63A0D6DE95756540F0D297BCB7B2EAFF665B8726BDD628407B3'
$file = Join-Path $env:TEMP 'download-release.php'
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 /NCRC' -Wait install-wiresock-secure-connect-cli.ps1
$url = 'https://wiresock.net/_api/download-release.php?product=wiresock-secure-connect-sdk&platform=x86&version=3.8.2.1&channel=winget'
$sha256 = '5E6FF229C3DDC5FBE136B2DB0FF19433A80A6AE8228584DA0B88C422A73A0B17'
$file = Join-Path $env:TEMP 'download-release.php'
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 /NCRC' -Wait