Skip to content

Commit

Permalink
Merge pull request #546 from TheJumpCloud/UN-1922_new_msi
Browse files Browse the repository at this point in the history
UN-1922 Increase Timeout for Agent Install
  • Loading branch information
jroos-jc authored Nov 30, 2023
2 parents fb19481 + 36591f5 commit 8c0fc0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/windows/InstallWindowsAgent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Function DownloadAndInstallAgent() {
InstallAgent

# Check if agent is running as a service
# Do a loop for 60 seconds to check if the agent is running as a service
for ($i = 0; $i -lt 60; $i++) {
# Do a loop for 5 minutes to check if the agent is running as a service
# The agent pulls cef files during install which may take longer then previously.
for ($i = 0; $i -lt 300; $i++) {
Start-Sleep -Seconds 1
#Output the errors encountered
$AgentService = Get-Service -Name "jumpcloud-agent" -ErrorAction SilentlyContinue
Expand Down

0 comments on commit 8c0fc0f

Please sign in to comment.