aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 17:59:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 18:06:48 +0200
commit35bf5a12f6600fe6d583a57b1ed23e5356bc075a (patch)
treee7932919fbaea792acfcb4a94df7d4b9baf22de5
parentui: make IPC calls in go routines (diff)
downloadwireguard-windows-35bf5a12f6600fe6d583a57b1ed23e5356bc075a.tar.xz
wireguard-windows-35bf5a12f6600fe6d583a57b1ed23e5356bc075a.zip
quickinstall: add a quick thing
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--README.md2
-rw-r--r--quickinstall.bat18
2 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0231c207..8d648c7f 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
This is a fully-featured WireGuard client for Windows that uses [Wintun](https://www.wintun.net/).
+If you just want to build and install this from source, but don't care about doing any form of real development with it, simply clone this repo, and then double click on `quickinstall.bat` and stop reading this document. If you do care about doing real development, don't double click that, and instead read onwards.
+
### Building
Windows 10 64-bit is required. The build script will take care of downloading, verifying, and extracting the right versions of the various dependencies:
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 ..\..