From fbe669dbbc583c7bc73265968e81834c43900d12 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 29 Apr 2019 17:59:53 +0200 Subject: quickinstall: add a quick thing --- quickinstall.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 quickinstall.bat (limited to 'quickinstall.bat') diff --git a/quickinstall.bat b/quickinstall.bat new file mode 100644 index 00000000..cd62f8e3 --- /dev/null +++ b/quickinstall.bat @@ -0,0 +1,18 @@ +@echo off +rem SPDX-License-Identifier: MIT +rem rem Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + +echo [+] Building wireguard.exe +call .\build.bat || exit /b 1 +echo [+] Building installer +cd .\installer +call .\build.bat || exit /b 1 +echo [+] Uninstalling old versions +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 +echo [+] Installing new version +for /f "tokens=3" %%a in ('findstr /r "[0-9.]*" ..\version.h') do set WIREGUARD_VERSION=%%a +set WIREGUARD_VERSION=%WIREGUARD_VERSION:"=% +@echo on +cd .\dist +msiexec /qb /i wireguard-amd64-%WIREGUARD_VERSION%.msi +cd ..\.. -- cgit v1.2.3-59-g8ed1b