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