diff --git a/start_service.ps1 b/start_service.ps1 index 85ace7d..ea0336c 100644 --- a/start_service.ps1 +++ b/start_service.ps1 @@ -3,4 +3,8 @@ Assert-Admin($MyInvocation.MyCommand.Definition) sc.exe start $ServiceName -Start-Process -FilePath $ProxyPath -ErrorAction Stop \ No newline at end of file +Start-Process -FilePath $ProxyPath -ErrorAction Stop +Write-Host "Success!" +Write-Host "It's recommended to restart your system as it otherwise sometimes won't work reliably." +Write-Host "Press any key to exit..." +$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown'); \ No newline at end of file diff --git a/variables.ps1 b/variables.ps1 index bd481a8..cda0136 100644 --- a/variables.ps1 +++ b/variables.ps1 @@ -10,6 +10,7 @@ function Assert-Admin($script_definition) { if (-not $IsAdmin) { Write-Output "Starting a new shell as admin..." + Write-Output "Sometimes this window will stay open even after install is finished." Start-Process "powershell" -Wait -Verb RunAs -ArgumentList ('-ExecutionPolicy Bypass -noprofile -file "{0}" -elevated' -f ($script_definition)) exit }