BinaryBrother Posted December 30, 2024 Posted December 30, 2024 (edited) I freelance in misc. computer repair. <snip> I wanted an open-source solution, or at least something I could use that wasn't illegal to use without a license, like TeamViewer. I found RustDesk and gave it a try, it's incredibly slow compared to TeamViewer (On my setup), but it'll get the job done. All it gave me for custom clients, was a PowerShell script that simply silent installed RustDesk and used my hosted server for the relay. I created a custom client in AutoIt and C# for the GUI (not included). So... Here it is. You'll notice some oddities in the temp path. This is only one part of a larger project that I'm working on, and it's slightly customized for my specific needs. _isInstalled() ; Tells whether it's installed. _GetLocalVersion() ; Retrieves the local version, if installed. _GetLatestVersion() ; Check github tags for latest version number. _Deploy_RustDesk() ; Auto pulls from current online version. _Run() ; Runs a program and returns console output. _Set_RustDesk_Password() _Get_RustDesk_ID() _Download() ; Quick and dirty download with progress. _DebugInit() ; Prepares log _Debug($pData) ; Console output & Debug log to desktop. _Error($pError) ; Handles all known errors. ServiceWrapper.au3 WTS.au3 Edited 4 hours ago by BinaryBrother Removed link dmob, argumentum and Trong 2 1 SIGNATURE_0X800007D NOT FOUND
BinaryBrother Posted December 30, 2024 Author Posted December 30, 2024 It needs to be slightly modified to use the MSI, instead of the EXE installer. The MSI handles firing up the service, instead of having to do it manually. This UDF is close enough for you guys to modify and use. I won't be maintaining unless interest is expressed. SIGNATURE_0X800007D NOT FOUND
argumentum Posted December 30, 2024 Posted December 30, 2024 1 hour ago, BinaryBrother said: I won't be maintaining unless interest is expressed. Global $g_RustDesk_CallForSupportStr = "Please call (XXX)-XXX-XXXX for support!" Func _RustDesk_CallForSupportStr($sStr = Default) If $sStr <> Default Then $g_RustDesk_CallForSupportStr = $sStr Return $g_RustDesk_CallForSupportStr EndFunc ;==>_RustDesk_CallForSupportStr That is a better idea. Maybe go the extra mile and add a function just for that. Making a UDF is a pain. In my case because I can hear the complains in my head and change the UDF to appease those in my mind. Shut up already !, am typing ! 🤪 But those ideas don't come to mind beforehand. Only after some exposure is that they pop-up. In either case, if you maintain it, you'll be a better coder. Even if no one uses it, so, thanks for sharing and do keep it up. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
BinaryBrother Posted Wednesday at 01:36 AM Author Posted Wednesday at 01:36 AM Yeah, I thought it was a pretty good foundation. I made a quick sc.exe "Service Control" wrapper, but if you use the MSI you don't need it. And yeah, I could definitely throw the repeated text into a variable. argumentum 1 SIGNATURE_0X800007D NOT FOUND
BinaryBrother Posted 4 hours ago Author Posted 4 hours ago (edited) I'm taking your advice, and maintaining, but I don't have the time to de-customize every aspect. Uploads on main post: Updated. Removed in-post static code. Edited 4 hours ago by BinaryBrother argumentum 1 SIGNATURE_0X800007D NOT FOUND
Trong Posted 18 minutes ago Posted 18 minutes ago I created the relay server myself and installed RustDesk using the auto install script via ps. It seems your UDF is not detecting it. Regards,
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now