Update _index.en.md

This commit is contained in:
Mr-Update 2023-08-31 22:05:54 +02:00 committed by GitHub
parent bded62d623
commit 660076c058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,11 +104,11 @@ write-output "RustDesk $rdver is the newest version"
exit exit
} }
If (!(Test-Path c:\Temp)) { If (!(Test-Path C:\Temp)) {
New-Item -ItemType Directory -Force -Path c:\Temp > null New-Item -ItemType Directory -Force -Path C:\Temp > null
} }
cd c:\Temp cd C:\Temp
powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.1/rustdesk-1.2.1-x86_64.exe" -Outfile "rustdesk.exe" powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.1/rustdesk-1.2.1-x86_64.exe" -Outfile "rustdesk.exe"
Start-Process .\rustdesk.exe --silent-install -wait Start-Process .\rustdesk.exe --silent-install -wait
@ -230,8 +230,7 @@ sudo apt remove nginx
## How can I remove devices from the device list in the web console? ## How can I remove devices from the device list in the web console?
Disable and then delete will now be available. Disable and then delete will now be available.
## How Can I update RustDesk Wth Powershell? ## How can I update RustDesk with PowerShell?
```ps ```ps
$ErrorActionPreference= 'silentlycontinue' $ErrorActionPreference= 'silentlycontinue'
@ -239,18 +238,17 @@ $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Un
if($rdver -eq "1.2.2") if($rdver -eq "1.2.2")
{ {
write-output "RustDesk $rdver is the newest version" write-output "RustDesk $rdver is the newest version."
exit exit
} }
If (!(Test-Path c:\Temp)) { If (!(Test-Path C:\Temp)) {
New-Item -ItemType Directory -Force -Path c:\Temp > null New-Item -ItemType Directory -Force -Path C:\Temp > null
} }
cd c:\Temp cd C:\Temp
powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.exe" -Outfile "rustdesk.exe" powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.exe" -Outfile "rustdesk.exe"
Start-Process .\rustdesk.exe --silent-install -wait Start-Process .\rustdesk.exe --silent-install -wait
``` ```