ssrgmbh / change-rustdesk-id

Scripts to change the Rustdesk ID to a custom ID
MIT License
6 stars 0 forks source link

bad toml path on some machines #1

Open gaby64 opened 1 week ago

gaby64 commented 1 week ago

I solved it by replacing the path with $tomlpath

$tomlpath = "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml"
if (!(Test-Path$tomlpath)) {
    $tomlpath = "$env:APPDATA\RustDesk\config\RustDesk.toml"
}
ssrgmbh commented 1 week ago

Hi, thanks for raising this issue. Can you provide your setup on the nonworking machines (Windows version, Rustdesk version, selfhosted, rustdesk installed or just started)?

As far as i tested it, the script works, when rustdesk is installed (windows 11, fresh install). To my understanding, rustdesk only uses the APPDATA of the user, when it is not installed. In this case, the script doesn't even get to the part, where the configuration is read, because the rustdesk windows service is not running.