Kommandon för att installera v2rayA utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id v2rayA.v2rayA -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id v2rayA.v2rayA -e --silentwinget uninstall --id v2rayA.v2rayA -e --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
installer_windows_inno_x64_2.5.16.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
installer_windows_inno_x64_2.5.16.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\v2raya"ARM64 · EXE (Inno Setup)
Tyst installation
installer_windows_inno_arm64_2.5.16.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
installer_windows_inno_arm64_2.5.16.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\v2raya"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-v2raya.ps1
$url = 'https://github.com/v2rayA/v2rayA/releases/download/v2.5.16/installer_windows_inno_x64_2.5.16.exe'
$sha256 = '18B8DEF8D3DE6A06B915936D67F43A8AB308A85C66281C8CC40D79F6B314DE39'
$file = Join-Path $env:TEMP 'installer_windows_inno_x64_2.5.16.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 install-v2raya.ps1
$url = 'https://github.com/v2rayA/v2rayA/releases/download/v2.5.16/installer_windows_inno_arm64_2.5.16.exe'
$sha256 = 'CA7B0EFC454EBB6BD1DDA25F9FC5F9215C0C91B11A2A7A8D95732BE405530761'
$file = Join-Path $env:TEMP 'installer_windows_inno_arm64_2.5.16.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