Update _index.en.md

This commit is contained in:
dinger1986 2023-09-28 11:08:18 +01:00 committed by GitHub
parent f867a84943
commit 88a59a18c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ $ErrorActionPreference= 'silentlycontinue'
$rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
# Get your config string from your Web portal and Fill Below # Get your config string from your Web portal and Fill Below
rustdesk_cfg="configstring" $rustdesk_cfg="configstring"
################################### Please Do Not Edit Below This Line ######################################### ################################### Please Do Not Edit Below This Line #########################################
@ -54,6 +54,9 @@ $arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
if ($arrService -eq $null) if ($arrService -eq $null)
{ {
Write-Output "Installing service"
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service -wait -Verbose
Start-Sleep -seconds 20 Start-Sleep -seconds 20
} }
@ -65,7 +68,7 @@ while ($arrService.Status -ne 'Running')
} }
cd $env:ProgramFiles\RustDesk\ cd $env:ProgramFiles\RustDesk\
$rustdesk_id = (.\RustDesk.exe --get-id | out-host) .\RustDesk.exe --get-id | Write-Output -OutVariable rustdesk_id
.\RustDesk.exe --config $rustdesk_cfg .\RustDesk.exe --config $rustdesk_cfg