Merge pull request #496 from SchoppAx/master

Fix powershell invalid operation on NULL
This commit is contained in:
RustDesk 2025-02-18 21:10:08 +08:00 committed by GitHub
commit b96faa038f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,7 @@ if ($arrService -eq $null)
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service
Start-Sleep -seconds 20
$arrService = Get-Service -Name $ServiceName
}
while ($arrService.Status -ne 'Running')

View File

@ -107,6 +107,7 @@ if ($arrService -eq $null)
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service
Start-Sleep -seconds 20
$arrService = Get-Service -Name $ServiceName
}
while ($arrService.Status -ne 'Running')

View File

@ -107,6 +107,7 @@ if ($arrService -eq $null)
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service
Start-Sleep -seconds 20
$arrService = Get-Service -Name $ServiceName
}
while ($arrService.Status -ne 'Running')

View File

@ -104,6 +104,7 @@ if ($arrService -eq $null)
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service
Start-Sleep -seconds 20
$arrService = Get-Service -Name $ServiceName
}
while ($arrService.Status -ne 'Running')