diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-29 17:59:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-29 18:06:48 +0200 |
commit | fbe669dbbc583c7bc73265968e81834c43900d12 (patch) | |
tree | e7932919fbaea792acfcb4a94df7d4b9baf22de5 /quickinstall.bat | |
parent | ui: make IPC calls in go routines (diff) | |
download | wireguard-windows-fbe669dbbc583c7bc73265968e81834c43900d12.tar.xz wireguard-windows-fbe669dbbc583c7bc73265968e81834c43900d12.zip |
quickinstall: add a quick thing
Diffstat (limited to '')
-rw-r--r-- | quickinstall.bat | 18 |
1 files changed, 18 insertions, 0 deletions
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 ..\.. |