Jump to content

Recommended Posts

Posted (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 by BinaryBrother
Removed link

SIGNATURE_0X800007D NOT FOUND

Posted

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

Posted
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.    :gathering: 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (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 by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Posted

I created the relay server myself and installed RustDesk using the auto install script via ps. It seems your UDF is not detecting it.

RD.png

Regards,
 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...