Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Wireguard Connection Fails #53

Open
Silvenga opened this issue Feb 21, 2023 · 0 comments
Open

Windows: Wireguard Connection Fails #53

Silvenga opened this issue Feb 21, 2023 · 0 comments

Comments

@Silvenga
Copy link

Describe the bug

I reported this to Help desk, but I wanted to make sure it got to a developer.

Symptoms include:

Unable to create Wintun interface: Error creating interface: No driver for device "Wintun" installed

Reinstalling Wintun via the Client interface has no effect.

Expected behavior

If the HKEY_LOCAL_MACHINE\SOFTWARE\Wintun key is present the pia-wintun.msi MSI appears to no-op. It appears that this may occur with using an old version of the MSM provided by WireGuard (I have not confirmed this was been fixed, I just lost where the code moved to).

This appears to mainly occur due to the check done in the MSM: https://git.zx2c4.com/wintun/tree/installer/msi.c?id=27e4d334fcd6b8d706fb0921fe501812622ca988#n95

Normally MSI should be able to repair this problem, but it appears the MSI is using CustomAction's with side-effects preventing normal healing operations (and possibly cleanup on uninstallation).

It's likely dangerous to modify the MSM. I would propose one of the following self-contained solution:

  • When the PIA client is reinstalling the pia-wintun.msi, ensure the key HKEY_LOCAL_MACHINE\SOFTWARE\Wintun is removed before attempting to reinstall.

Observed on:

  • OS: Windows 10/11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant