Browse Source

Merge pull request #875 from gravitl/hotfix_v0.11.1_windows_powershell

Hotfix v0.11.1 windows powershell
dcarns 3 years ago
parent
commit
f513e043a0
1 changed files with 8 additions and 6 deletions
  1. 8 6
      scripts/netclient-install.ps1

+ 8 - 6
scripts/netclient-install.ps1

@@ -30,7 +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")
+                    # $env:Path +=  (";" + $env:ProgramFiles + "\WireGuard")
                     Write-Host "'$software' is installed."
                     Write-Host "'$software' is installed."
                 }
                 }
             } else {
             } else {
@@ -48,7 +48,7 @@ new-module -name netclient-install -scriptblock {
                 $loc = Get-Location
                 $loc = Get-Location
                 Copy-Item -Path "$env:userprofile\Downloads\netclient.exe" -Destination "$loc\netclient.exe"
                 Copy-Item -Path "$env:userprofile\Downloads\netclient.exe" -Destination "$loc\netclient.exe"
             }
             }
-            $runNum = "one","two"
+            $runNum = "one"
             foreach ($run in $runNum) { 
             foreach ($run in $runNum) { 
 
 
                 $NetArgs = @("join","-t",$token)
                 $NetArgs = @("join","-t",$token)
@@ -65,11 +65,13 @@ new-module -name netclient-install -scriptblock {
                         $env:Path += ";C:\ProgramData\Netclient\bin"
                         $env:Path += ";C:\ProgramData\Netclient\bin"
                     }
                     }
                 }
                 }
-                if($run -eq "one"){
-                    Write-Host "re-running setup to confirm all components are installed."
-                    Start-Sleep -s 1
-                }
+                #if($run -eq "one"){
+                #    Write-Host "re-running setup to confirm all components are installed."
+                #    Start-Sleep -s 1
+                #}
+                
             }
             }
+        Start-Sleep -s 5
         Write-Host "'netclient' is installed."
         Write-Host "'netclient' is installed."
     }
     }
 }
 }