Browse Source

fix nm-win-installer - add WireGuard env

Nick81nrw 3 years ago
parent
commit
64d0660392
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/netclient-install.ps1

+ 1 - 0
scripts/netclient-install.ps1

@@ -30,6 +30,7 @@ new-module -name netclient-install -scriptblock {
                 If(-Not $installed) {
                 If(-Not $installed) {
                     Quit "Could not install WireGuard"
                     Quit "Could not install WireGuard"
                 } else {
                 } else {
+                    $env:Path +=  (";" + $env:ProgramFiles + "\WireGuard")
                     Write-Host "'$software' is installed."
                     Write-Host "'$software' is installed."
                 }
                 }
             } else {
             } else {