Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Add command line to instantsupport.exe

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
Yod4z
20
20
Posts: 55
Joined: 2006-10-18 15:08

Add command line to instantsupport.exe

Post by Yod4z »

is it possible to add command line param to instantsupport.exe? like -ID:
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Add command line to instantsupport.exe

Post by supercoe »

Yes, but what would be the benefit? If you require a specific ID or would like the user to enter an ID then just modify the code your needs.


Here is an example of command line code I've added to the SRC\InstantSupport.au3 file for an upcoming release:

Code: Select all

; Command line args.
If $cmdline[0] > 0 Then
	Switch $cmdline[1]
		Case "-disableuac"
			If IsAdmin() Then

				$ExtractFiles = False
				$GenerateID = False
				DisableUAC()
				ProcessWaitClose( "InstantSupportVNC.exe" )

			Else

				MsgBox( 0, $str_MsgBox_Error, $str_ErrorDisableUAC, 5 )
				Exit

			EndIf

		Case "-installservice"
			If IsAdmin() Then

				InstallService()

			Else

				MsgBox( 0, $str_MsgBox_Error, $str_ErrorInstallService, 5 )
				Exit

			EndIf

		Case "-removeservice"
			If IsAdmin() Then

				RemoveService()

			Else

				MsgBox( 0, $str_MsgBox_Error, $str_ErrorRemoveService, 5 )
				Exit

			EndIf

		Case Else
			MsgBox( 0 , $str_MsgBox_Error, $str_ErrorUnknownCommand, 5 )
			Exit

	EndSwitch
EndIf
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Yod4z
20
20
Posts: 55
Joined: 2006-10-18 15:08

Re: Add command line to instantsupport.exe

Post by Yod4z »

when you install service and you restart the PC to force chunkvnc to reconnect to the repeater with the same last ID
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Add command line to instantsupport.exe

Post by supercoe »

Sorry I'm confused, ChunkVNC already works in this way and once the service is installed InstantSupport.exe no longer exists.

When you choose the "Install Service" tray item it prompts you with the generated ID number which can be changed to whatever you wish.

If you wish to change the ID number after the service is installed edit the chunkvnc.ini file in the Program Files directory and reboot.
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Post Reply