I am using following code to download Wireguard .msi version, installing and creating tunnel with .conf file but the issue is its not working on Windows 7.
Basically When I execute PowerShell Script on Windows 7 the issue is its not even downloading wireguard .msi sometimes and if it download then it do not get install.
Start-Process msiexec.exe -ArgumentList '/q', '/I', 'wireguard-amd64-0.5.3.msi' -Wait -NoNewWindow -PassThru | Out-Null
Start-Process 'C:\Program Files\WireGuard\wireguard.exe' -ArgumentList '/uninstallmanagerservice' -Wait -NoNewWindow -PassThru | Out-Null
Start-Process 'C:\Program Files\WireGuard\wireguard.exe' -ArgumentList '/installtunnelservice', "$destinationConf" -Wait -NoNewWindow -PassThru | Out-Null
$source = "download.wireguard.com/windows-client/wireguard-amd64-0.5.3.msi"defines a local path. Usehttps://prefix to define a web source.Self-explained by running following script:
Result (note the self-explaining error message):