Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Some Questions About the source code

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
LFCavalcanti
8
8
Posts: 15
Joined: 2013-05-06 14:51

Some Questions About the source code

Post by LFCavalcanti »

Hello!

Well, like I said in the other thread, I'm coding the Chunck VNC to implement some things I want, I'll share the code here of course.

I have a few questions:

1 - Can I just use an "winvnc.exe", with the lastest version?
2 - I saw in the code that you only pass some parameter to the UltraVNC with the ID, repeater Ip etc... the thing is, there is a Wiki Page or some documentation about those parameter?
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Some Questions About the source code

Post by supercoe »

You should be able to drop in the newest winvnc.exe, others have reported success in doing so.
Really, as long as the UltraVNC server properties page doesn't change its fields the compiler will know where to put the info.

Keep in mind that I use XNResource Editor to remove unneeded components (java, icons, etc) from the executable to reduce its size.

You are correct that I'm only passing parameters to the UltraVNC executables, you can find more info here: http://www.uvnc.com/install/cmdline.html
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
LFCavalcanti
8
8
Posts: 15
Joined: 2013-05-06 14:51

Re: Some Questions About the source code

Post by LFCavalcanti »

Hi Again!

Two queestions:
1 - In the code there is a "InstantSupportVNC.exe", I can't find were in the compiler or instant suport files it converts the UltraVNC to this file.
2 - I created the main new screen, but comes up some questions about service installation. The InstantSupportVNC.exe will be running as a service, if I want to execute some command, like restart some service, have I to create another "exe" to run this commands?
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Some Questions About the source code

Post by supercoe »

SRC\InstantSupport.au3 LINE 106:

Code: Select all

; Extract files.
If $ExtractFiles Then

	DirCreate( $WorkingPath )
	FileInstall( "InstantSupport_Files\instantsupport.ini", $WorkingPath & "\instantsupport.ini", 1 )
	FileInstall( "InstantSupport_Files\logo.jpg", $WorkingPath & "\logo.jpg", 1 )
	FileInstall( "InstantSupport_Files\SecureVNCPlugin.dsm", $WorkingPath & "\SecureVNCPlugin.dsm", 1 )
	FileInstall( "InstantSupport_Files\ultravnc.ini", $WorkingPath & "\ultravnc.ini", 1 )
	FileInstall( "InstantSupport_Files\winvnc.exe", $WorkingPath & "\InstantSupportVNC.exe", 1 )
	FileInstall( "InstantSupport_Files\unblock.js", $WorkingPath & "\unblock.js", 1 )

	; Unblock InstantSupport.exe to prevent "Windows Security" messages.
	ShellExecuteWait($WorkingPath & "\unblock.js", "", @ScriptDir, "")

	FileCopy( @ScriptDir & "\" & @ScriptName, $WorkingPath & "\InstantSupport.exe", 9 )

EndIf

The FileInstall command in AutoIt will add those files to the InstantSupport.exe when compiling.


2) Currently only UltraVNC is running as a service, if you wish to control that service you will have to make a program to do so. InstantSupport does not run as a service and is only called again when you start the Uninstall InstantSupport link that is placed on the deskop.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
LFCavalcanti
8
8
Posts: 15
Joined: 2013-05-06 14:51

Re: Some Questions About the source code

Post by LFCavalcanti »

Hi!

Thanks for your support.

About item 1, I missed it... hell, the code is not that complicated. I need some vacation. haha

About item 2:
If I got it right, when installing as a service, it installs the UltraVNC as a service and copy the InstantSupport.exe to a directory in C:, then when the user call the InstantSupport, it will pass the perameters to the InstantSupportVNC.exe running as a service.
I want to create another script to do some things, like restart the spooler, renew the IP addres, show to the user his current IP and the External IP(Internet), that could help, at least for me. Then modify the InstantSupport.exe to pass parameters to this other script running as a service.
For the other script the issue is use the correct loop, waiting for some command from the InstantSupport.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Some Questions About the source code

Post by supercoe »

I had a similar idea awhile back which kept InstantSupport.exe running as a service so it could control the UltraVNC server (InstantSupportVNC.exe).
There would be a lot of cool things you could do as you mentioned, I just never wrapped my head around the service implementation in AutoIt.

Good luck, if you get it working I'd love to see it. :)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Post Reply