mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-21 02:08:12 +02:00
Fix powershell invalid operation is NULL
This commit is contained in:
parent
b83b7120b5
commit
dfde28cf65
@ -105,6 +105,7 @@ if ($arrService -eq $null)
|
|||||||
cd $env:ProgramFiles\RustDesk
|
cd $env:ProgramFiles\RustDesk
|
||||||
Start-Process .\rustdesk.exe --install-service
|
Start-Process .\rustdesk.exe --install-service
|
||||||
Start-Sleep -seconds 20
|
Start-Sleep -seconds 20
|
||||||
|
$arrService = Get-Service -Name $ServiceName
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($arrService.Status -ne 'Running')
|
while ($arrService.Status -ne 'Running')
|
||||||
|
@ -107,6 +107,7 @@ if ($arrService -eq $null)
|
|||||||
cd $env:ProgramFiles\RustDesk
|
cd $env:ProgramFiles\RustDesk
|
||||||
Start-Process .\rustdesk.exe --install-service
|
Start-Process .\rustdesk.exe --install-service
|
||||||
Start-Sleep -seconds 20
|
Start-Sleep -seconds 20
|
||||||
|
$arrService = Get-Service -Name $ServiceName
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($arrService.Status -ne 'Running')
|
while ($arrService.Status -ne 'Running')
|
||||||
|
@ -107,6 +107,7 @@ if ($arrService -eq $null)
|
|||||||
cd $env:ProgramFiles\RustDesk
|
cd $env:ProgramFiles\RustDesk
|
||||||
Start-Process .\rustdesk.exe --install-service
|
Start-Process .\rustdesk.exe --install-service
|
||||||
Start-Sleep -seconds 20
|
Start-Sleep -seconds 20
|
||||||
|
$arrService = Get-Service -Name $ServiceName
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($arrService.Status -ne 'Running')
|
while ($arrService.Status -ne 'Running')
|
||||||
|
@ -104,6 +104,7 @@ if ($arrService -eq $null)
|
|||||||
cd $env:ProgramFiles\RustDesk
|
cd $env:ProgramFiles\RustDesk
|
||||||
Start-Process .\rustdesk.exe --install-service
|
Start-Process .\rustdesk.exe --install-service
|
||||||
Start-Sleep -seconds 20
|
Start-Sleep -seconds 20
|
||||||
|
$arrService = Get-Service -Name $ServiceName
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($arrService.Status -ne 'Running')
|
while ($arrService.Status -ne 'Running')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user