diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-01 11:14:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-01 11:14:12 +0200 |
commit | 2e4f8e31dad639e9e40b29552380d5ca4629d1bd (patch) | |
tree | ec8573073bf68253267ed741b60bf23b8e4554a3 /quickinstall.bat | |
parent | ui: support clipboard copying for log items (diff) | |
download | wireguard-windows-2e4f8e31dad639e9e40b29552380d5ca4629d1bd.tar.xz wireguard-windows-2e4f8e31dad639e9e40b29552380d5ca4629d1bd.zip |
version: dynamically get file version
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'quickinstall.bat')
-rw-r--r-- | quickinstall.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quickinstall.bat b/quickinstall.bat index cd62f8e3..f7f0c3c3 100644 --- a/quickinstall.bat +++ b/quickinstall.bat @@ -10,7 +10,7 @@ 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 +for /f "tokens=3" %%a in ('findstr /r "WIREGUARD_WINDOWS_VERSION_STRING.*[0-9.]*" ..\version.h') do set WIREGUARD_VERSION=%%a set WIREGUARD_VERSION=%WIREGUARD_VERSION:"=% @echo on cd .\dist |