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
- 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

Silent Setup and Run (over Repeater) with Inno Setup

Post Reply
franc
20
20
Posts: 41
Joined: 2005-06-25 21:57

Silent Setup and Run (over Repeater) with Inno Setup

Post by franc »

Hello,

with InnoSetup it is easy possible to compile a UltraVNC-Setup where you just click once and after UltraVNC is running (and autostarting) in a NAT behind a Firewall connecting to your (own) Repeater (here: myserver.tld) with a special ID (here: 12345).
You need a repeater and following files from UltraVNC:

logmessages.dll
ultravnc.ini (see later in text)
vnchooks.dll
winvnc.bat (see later in text)
winvnc.exe


I use following Script in Inno Setup:
[Setup]
AppName=VNC
AppVerName=UltraVNC 1.0.5.6
VersionInfoVersion=1.0.5.6
VersionInfoCompany=myCompany
VersionInfoCopyright=me
VersionInfoDescription=Autostarting and installing UltraVNC via Repeater
VersionInfoProductName=UltraVNCStarter
DefaultDirName={pf}\VNC
UninstallDisplayIcon={app}\winvnc.exe
Compression=lzma
SolidCompression=yes
OutputDir=C:\Programme\Inno Setup\UltraVNC\Output\
OutputBaseFilename=ultravnc
AlwaysShowComponentsList=no
DisableDirPage=yes
DisableFinishedPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes

[Icons]
Name: {commonstartup}\UltraVNC; FileName: {app}\WinVNC.bat; Parameters: ""; WorkingDir: {app};


[Files]
Source: winvnc.exe; DestDir: {app};
Source: logmessages.dll; DestDir: {app};
Source: vnchooks.dll; DestDir: {app};
Source: ultravnc.ini; DestDir: {app};
Source: winvnc.bat; DestDir: {app};

[Run]
Filename: "{app}\winvnc.exe"; Parameters: ""; Flags: nowait
Filename: "{app}\winvnc.exe"; Parameters: " -autoreconnect ID:12345 -connect myserver.tld"; Check: Timer

Code: Select all

procedure CurPageChanged(CurPageID: Integer);
begin
   case CurPageID
      of
      wpWelcome: WizardForm.NextButton.OnClick(nil);
   end;
end;

function Timer():Boolean;
begin
  sleep(2000);
  result:=true;
end;[/quote]

my [b]ultravnc.ini[/b]:
[quote]
[dummy]
dummy=1
[admin]
FileTransferEnabled=1
FTUserImpersonation=1
BlankMonitorEnabled=1
CaptureAlphaBlending=0
BlackAlphaBlending=0
DefaultScale=1
UseDSMPlugin=0
SocketConnect=1
HTTPConnect=1
XDMCPConnect=0
InputsEnabled=1
LocalInputsDisabled=0
IdleTimeout=0
EnableJapInput=0
QuerySetting=2
QueryTimeout=0
QueryAccept=0
LockSetting=0
RemoveWallpaper=1
RemoveAero=0
DebugMode=0
DebugLevel=0
AllowLoopback=0
LoopbackOnly=0
AllowShutdown=1
AllowProperties=1
AllowEditClients=1
DisableTrayIcon=1
MSLogonRequired=0
NewMSLogon=0
ConnectPriority=0
AutoPortSelect=1
PortNumber=0
HTTPPortNumber=0
UseRegistry=0
AuthRequired=1
AuthHosts=
QueryIfNoLogon=0
[ultravnc]
passwd=1B2A1BCF17E01EEF33
[poll]
TurboMode=0
PollUnderCursor=0
PollForeground=0
PollFullScreen=0
OnlyPollConsole=0
OnlyPollOnEvent=0
EnableDriver=0
EnableHook=0
EnableVirtual=0
SingleWindow=0
SingleWindowName=
[admin_auth]
group1=Administratoren
group2=
group3=
locdom1=3
locdom2=0
locdom3=0
[/quote]

Password is 12345

[b]winvnc.bat:[/b]

[quote]start c:\programme\vnc\winvnc.exe
ping -n 1 localhost > nul
c:\programme\vnc\winvnc.exe -autoreconnect ID:12345 -connect myserver.tld::5500[/quote]

If i compile this and run it, nothing is visible but ultravnc is running and connecting to my repeater, waiting for connection. As everybody could connect you should change the ID in the Innoscript and in the Batchfile (winvnc.bat).
Or integrate the encryption (UseDSMPlugin=1), but then the connection might be a little unstable.

Regards, franc
Last edited by franc on 2009-06-15 12:37, edited 1 time in total.
Post Reply