aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-11-18installer: regard KB2921916 exits when prompted to be USEREXIT so fetcher doesn't mindJason A. Donenfeld1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18version: bumpv0.2.2Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18installer: check for KB2921916's setupapi.dll directlyJason A. Donenfeld1-23/+144
Some people might have the right setupapi.dll without actually having installed the quickfix. Search for a distinguishing feature instead. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18conf: do not remigrate configs that are pending deletionJason A. Donenfeld1-6/+18
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-18installer: refactor custom actions to appear in chronological orderSimon Rozman2-209/+209
...in the source code. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18installer: prevent the process killing on upgrade cleanupSimon Rozman1-7/+13
When MSI is upgrading previous version, the RemoveExistingProducts shouldn't kill our processes we just installed and started. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18installer: ignore remove failuresSimon Rozman1-1/+2
On upgrades from <=0.1.1 there's a short window, where new tunnel service may delete the Wintun 0.8 driver from the store, while 0.1.1 removal is about to do the same, and fails with "File not found". The computer ended up with the old WireGuard installed. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-18mod: bump for x/sys/svc/mgr fix for UpdateConfig(Config())Jason A. Donenfeld2-12/+9
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17installer: disable ROLLBACKJason A. Donenfeld1-0/+1
This causes more problems than it solves. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: delay removal of old configs until next rebootJason A. Donenfeld1-7/+15
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: BOOLEAN is a char, whereas BOOL is an intJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: styleJason A. Donenfeld1-2/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: SetFileInformationByHandle moved into x/sysJason A. Donenfeld3-18/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17version: bumpv0.2.1Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17build: bump wintunJason A. Donenfeld2-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17version: bumpv0.2Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: do not attempt to create programfilesJason A. Donenfeld1-1/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17conf: cleanup final path buffer handlingJason A. Donenfeld1-7/+12
And insist that CreateFile regard directories. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: handle deletion more smoothlyJason A. Donenfeld2-21/+50
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: do not append .msi to random filenameJason A. Donenfeld1-2/+1
It's actually not required, and we don't do it in updater. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17fetcher: check WinVerifyTrust before executionJason A. Donenfeld2-5/+21
Our YubiHSM signature is much stronger than the junky authenticode one, but still, it can't hurt. This also hedges against anti-virus in the event that we forget to sign it -- A/V will inspect whatever code the fetcher executes, and so we only want to execute authenticode-signed MSIs, to avoid training their heuristics. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-17updater: do not allow WinVerifyTrust to use UIJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16conf: do best-effort service argument migrationJason A. Donenfeld1-0/+53
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16mod: bump for recent conf additionsJason A. Donenfeld3-26/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16fetcher: user exit is not a real errorJason A. Donenfeld1-0/+1
This is returned by our custom action's method to launch wireguard and abort. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: launch GUI before attempting a reinstallSimon Rozman2-8/+34
With the recently introduced wireguard-installer.exe an issue in MSI internal caching appeared. With the temporary MSI file used at install time gone, the MSI was unable to load our custom actions in the reinstall attempt. Rather than attempting to reinstall the product and fail, the MSI was upgraded to launch GUI early in the reinstall attempt and cancel the execute sequence then. Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-16installer: add missing thread handle closeSimon Rozman1-0/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-16conf: move configuration to C:\Program Files\WireGuard\DataJason A. Donenfeld6-64/+175
It doesn't get wiped out on Windows upgrades. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16fetcher: introduce downloader utilityJason A. Donenfeld14-0/+2024
This seems easier than having to juggle 4 different architectures. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: always pass program files via propertyJason A. Donenfeld1-45/+30
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: use new path for wg.exeJason A. Donenfeld1-3/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: do not show <nil> as reason when importing empty zipJason A. Donenfeld1-0/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16go-patches: drop CreateWaitableTimerExJason A. Donenfeld1-406/+0
It causes mysterious crashes. We'll revisit for 1.16. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16mod: bump x/sys for IsWow64Process2Jason A. Donenfeld6-108/+14
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16build: llvm doesnt like dashesJason A. Donenfeld2-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16tunnel: do not return a nil error when adding routes failsJason A. Donenfeld1-1/+1
Reported-by: Michael Zhou <mzhou@cse.unsw.edu.au> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: microsoft is now providing fractional icon sizesJason A. Donenfeld2-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: do not check for Wow64 and KB when removingJason A. Donenfeld1-2/+2
We want removal to be as frictionless as possible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: require KB2921916 on Windows 7Jason A. Donenfeld3-1/+71
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16installer: prohibit Wow64 installsJason A. Donenfeld2-1/+53
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16build: make more robust to partial rebuildsJason A. Donenfeld1-1/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16main: check for x86 emulation on armJason A. Donenfeld1-5/+38
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16updater: use constants from debug/peJason A. Donenfeld2-40/+5
These are nice here, but we don't want to use them for memmod, since there we need a more complete linker. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16build: opt-in to resource loading of wintun.dllJason A. Donenfeld3-4/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: use resource numbers instead of resource indicesJason A. Donenfeld5-10/+10
This makes it stable between Windows versions. HOWEVER! We're still using "1" instead of SHIDI_SHIELD_INTERNAL, because the latter is named instead of numbered. This is a TODO item. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-16ui: remove systray popup menu tunnel listJason A. Donenfeld1-178/+55
Should user have a huge list of tunnels, the menu becomes impossible to navigate. In the absence of any better idea, how to make the popup menu usable in such tunnel quantities, the tunnel activation via systray popup menu was removed, and instead we have a single deactivate button. Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-13go-patches: support 8 callback arguments on armJason A. Donenfeld9-8/+68
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-13main: only do Wow64 check on ARMJason A. Donenfeld1-0/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-13installer: suppress ice03 errorsJason A. Donenfeld1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-13installer: clean-up adapters and Wintun driver on uninstallSimon Rozman2-1/+137
Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>