aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
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 ..\..