golang.zx2c4.com/wireguard/windows@v0.5.4-0.20230123132234-dcc0eb72a04b/quickinstall.bat (about) 1 @echo off 2 rem SPDX-License-Identifier: MIT 3 rem Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved. 4 5 setlocal 6 cd /d %~dp0 || exit /b 1 7 echo [+] Building wireguard.exe 8 call .\build.bat || exit /b 1 9 echo [+] Building installer 10 call .\installer\build.bat || exit /b 1 11 echo [+] Uninstalling old versions 12 for /f %%a in ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /d /c /e /f WireGuard ^| findstr CurrentVersion\Uninstall') do msiexec /qb /x %%~na 13 echo [+] Installing new version 14 for /f "tokens=3" %%a in ('findstr /r "Number.*=.*[0-9.]*" .\version\version.go') do set WIREGUARD_VERSION=%%a 15 set WIREGUARD_VERSION=%WIREGUARD_VERSION:"=% 16 msiexec /qb /i installer\dist\wireguard-%PROCESSOR_ARCHITECTURE%-%WIREGUARD_VERSION%.msi