用于免交互安装GPROXY CLI、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id LeenHawk.GPROXY.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LeenHawk.GPROXY.CLI -e --silentwinget uninstall --id LeenHawk.GPROXY.CLI -e --silent按安装包
64位 · MSIX · 仅当前用户
静默安装
Add-AppxPackage -Path gproxy-windows-x86_64.msix卸载
Get-AppxPackage -Name LeenHawk.GPROXYCLI | Remove-AppxPackageARM64 · MSIX · 仅当前用户
静默安装
Add-AppxPackage -Path gproxy-windows-aarch64.msix卸载
Get-AppxPackage -Name LeenHawk.GPROXYCLI | Remove-AppxPackagePowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-gproxy-cli.ps1
$url = 'https://github.com/LeenHawk/gproxy/releases/download/v4.3.0/gproxy-windows-x86_64.msix'
$sha256 = 'E3F4816A8183620666C1126C8C08E097E67D4476F4DCB3715142B3FED61705F3'
$file = Join-Path $env:TEMP 'gproxy-windows-x86_64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-gproxy-cli.ps1
$url = 'https://github.com/LeenHawk/gproxy/releases/download/v4.3.0/gproxy-windows-aarch64.msix'
$sha256 = '4EE3796980416F681C88AF8B5B993855B1D6DE67A02B48746F69A2679D651793'
$file = Join-Path $env:TEMP 'gproxy-windows-aarch64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file