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

Semi-automatic installation

Post Reply
extremesanity
Posts: 2
Joined: 2006-06-27 20:50

Semi-automatic installation

Post by extremesanity »

I just spent almost an entire day going through documentation so I could figure out how to automatically install this software. Figured I would share and try to get feedback if there is a better way.

This seems as close as we are going to get to automatic installation with the current version. This is semi automatic at best. Correct me if I'm wrong.

This covers a basic automated installation of the UltraVNC server on the client machine. The viewer component is not installed but is installed manually on another machine. The DSM encryption plugin is installed and configured automatically in this run through also. The video driver has to be installed manually. The program is set to install as a service and startup anytime the machine is on. This config run through sets MS Login II as the authentication scheme.

- download UltraVNC-101-Setup.exe

- run the exe with the command "UltraVNC-101-Setup.exe /saveinf=c:\someconfigfile.inf" , this will save the main config file to a path of your choosing.

- go through the setup changing config settings to how you want it installed (language, program path, etc).

Make sure to make the following selections
UltraVNC Server
Mirror Driver
DSM Encryption Plugin

and on the additional tasks page

select Register UltraVNC as service
DO NOT select Start or restart UltraVNC Service
select Configure MS-Logon II
DO NOT select Configure Admin Properties
DO NOT select Clean old VNC registry keys

Don't worry about the ACL settings, we will change those in a bit

Finish up the install.

Now that it is install, go to the start menu and click on UltraVNC > UltraVNC Server

Double click on the tray icon which will pull up the admin settings.

Make all the changes you want applied across all computers here. The password, MS Logon groups, and misc settings need to be set.

Now that you have made all your admin changes, go to your program path within DOS, by default c:\program files\ultravnc.

Type in MSLogonACL.exe /e c:\someaclconfigfile.acl - this will create your ACL file

close DOS and go to regedit - start > run > regedit

Export the hkey_local_machine > software > ORL key to a reg file

now, edit the someconfigfile.inf file you created many steps ago, and put this in for the acl and reg paths

AclFile=c:\pathtoacl\someaclfile.txt
PropertiesFile=c:\pathtoacl\someregfile.reg



Now, your setup is all done. Shut down VNC and uninstall it.

Start the automated install by typing in this
UltraVNC-101-Setup.exe /verysilent /loadinf=c:\pathtoinffile\ultravnc.inf

This will install all your basic settings.

now you must run a few more commands from DOS in order to put the DSM encryption plugin in the correct place. by default, the installation puts the plugin in a folder that ultravnc can not find. So you must run these commands

copy "C:\Program Files\UltraVNC\plugin\" "C:\Program Files\UltraVNC\"

Now, start up VNC and it should have kept your ACL and settings correctly for automated install.


This run through definately needs to be cleaned up a bit. It is a pretty big pain to automatically install.

Additional links, you might be able to build an automated installing using an MSI here:

[topic=5317][/topic]
Last edited by extremesanity on 2006-06-28 15:59, edited 3 times in total.
2tim3_16
Posts: 2
Joined: 2006-07-03 20:50

Re: Semi-automatic installation

Post by 2tim3_16 »

extremesanity,

Thanks for this post! It helped me out tremendously! I used your guide to set up an auto install with AutoIt. Here's the code if you'd like to try it. Install AutoIt, then compile the following script.

Code: Select all

; Install the Setup Configuration files.
FileInstall("c:\pathtoacl\vncaclconfig.acl", "c:\pathtoacl\vncaclconfig.acl", 1)
FileInstall("c:\pathtoacl\vncconfig.inf", "c:\pathtoacl\vncconfig.inf", 1)
FileInstall("c:\pathtoacl\vncconfig.reg", "c:\pathtoacl\vncconfig.reg", 1)

FileChangeDir("pathtoexecutable")
RunWait("UltraVNC-101-Setup.exe /verysilent /loadinf=C:\pathtoacl\vncconfig.inf")

; Delete the Setup Configuration files.
FileDelete("C:\pathtoacl\vncaclconfig.acl")
FileDelete("C:\pathtoacl\vncconfig.inf")
FileDelete("C:\pathtoacl\vncconfig.reg")

DirCopy("C:\Program Files\UltraVNC\plugin", "C:\Program Files\UltraVNC")

; Register UltraVNC server as a sytem service.
FileChangeDir("C:\Program Files\UltraVNC")
Run("winvnc.exe -reinstall")
Sleep(3000)

; Start the server.
FileChangeDir("C:\Program Files\UltraVNC")
Run("net start WinVNC")
Sleep(3000)

; Start the system tray icon.
FileChangeDir("C:\Program Files\UltraVNC")
Run("winvnc.exe -servicehelper")
Sleep(3000)
Let me know if you have any questions.
robson-dasilva
8
8
Posts: 10
Joined: 2009-08-13 11:56

Re: Semi-automatic installation

Post by robson-dasilva »

me_ben wrote:Oh! Nice I will also going to try unattended installation and let me try all steps one by one
Failed with me, I'm trying to install / or create a package, for version 1.6.0.4, anyone can help me please ?

Cheers

Robson
marcgistel
40
40
Posts: 72
Joined: 2008-03-26 09:07
Location: Ulm, Germany

Re: Semi-automatic installation

Post by marcgistel »

hi robson-dasilva

please give me more information what exactly you try to create or build.
Do you want to have a autoit-script like 2tim3_16 wrote?
You have to install autoit3 to compile this. You have to download the new files and an installer like 2tim3_16 used "UltraVNC-101-Setup.exe".
here:
http://sc.uvnc.com/download/click.php?id=27

please give me more infos :)


best regards,
marc
Last edited by marcgistel on 2009-08-14 11:09, edited 1 time in total.
brad_kl
Posts: 1
Joined: 2009-10-13 22:27

Re: Semi-automatic installation

Post by brad_kl »

Thanks very much for the instructions.

I am running vista 32bit and it seems to have worked exactly as expected for me, except for...
When i try to create the acl file, it brings up an error:

== Entering GetACL
== Error 0: RegQueryValueEx 1 ValueLength = 0

I've followed the instructions exactly, even named my acl file something short with no spaces or symbols in it.

I just left the ACL out of the INF file and it works ok without it. What functionality do i loose by doing this?

Also, the PC's i'll be deploying this on have restricted internet access. Is there anyway to package in the cab.exe and the drivers.zip in the installer or would i have to copy the files in manually after the install?
robson-dasilva
8
8
Posts: 10
Joined: 2009-08-13 11:56

Re: Semi-automatic installation

Post by robson-dasilva »

marcgistel wrote:hi robson-dasilva

please give me more information what exactly you try to create or build.
Do you want to have a autoit-script like 2tim3_16 wrote?
You have to install autoit3 to compile this. You have to download the new files and an installer like 2tim3_16 used "UltraVNC-101-Setup.exe".
here:
http://sc.uvnc.com/download/click.php?id=27

please give me more infos :)


best regards,
marc

Thanks for the help Marc.

In fact I´ve created a script to install the software by script logon
something like this code.

for the instalation file:

net use t: /del

net use t: \\mdb-ent03\vnc

c:

cd\

"%PROGRAMFILES%\realvnc\vnc4\unins000.exe" /silent

net stop uvnc_service

sc delete uvnc_service

start /w t:\UltraVNC_1.0.8.2_Setup.exe /verysilent /loadinf=t:\ultravnc.inf

net stop uvnc_service

xcopy t:\ultravnc.ini "c:\Arquivos de Programas\UltraVNC" /R /Y

net start uvnc_service

net use t: /del


for the .inf file:

[Setup]
Lang=en
Dir=c:\Arquivos de Programas\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=server
Components=ultravnc_server
Tasks=installservice,acl,properties
AclFile=t:\vncacl.txt
PropertiesFile=t:\vncreg.reg


And I solved the problem.

The only problem is , every time that the user reboot the computer, the software instalçl again,

If you know a command to input in the batch file, to skip instalation, in case of the software installed, would be nice.

Cheers

Robson
Aergan
8
8
Posts: 14
Joined: 2011-02-22 11:12
Location: UK
Contact:

Re: Semi-automatic installation

Post by Aergan »

Any tips on installing the video driver via CMD or Autoit?

I'm not having a lot of success with UAC enabled with either using the supplied batch scripts (Administrative CMD or Autoit with #RequireAdmin). How the installer gets awat with it is beyond me.
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Semi-automatic installation

Post by Bonji »

I would start a new thread instead of continuing this one as this one is quite old.

But to your point: I've found installing as the SYSTEM account gets around UAC because the SYSTEM account is elevated by default. Of course, this account has no access to network resources directly, so any files need to be available locally on the machine.
-Ben
Aergan
8
8
Posts: 14
Joined: 2011-02-22 11:12
Location: UK
Contact:

Re: Semi-automatic installation

Post by Aergan »

In Autoit use #RequireAdmin
hasini
Posts: 1
Joined: 2013-04-08 12:02

Re: Semi-automatic installation

Post by hasini »

Hai i am new to this forum.
zaza
Posts: 1
Joined: 2013-05-23 09:05

Re: Semi-automatic installation

Post by zaza »

2tim3_16 wrote:extremesanity,

Thanks for this post! It helped me out tremendously! I used your guide to set up an auto install with AutoIt. Here's the code if you'd like to try it. Install AutoIt, then compile the following script.

Code: Select all

; Install the Setup Configuration files.
FileInstall("c:\pathtoacl\vncaclconfig.acl", "c:\pathtoacl\vncaclconfig.acl", 1)
FileInstall("c:\pathtoacl\vncconfig.inf", "c:\pathtoacl\vncconfig.inf", 1)
FileInstall("c:\pathtoacl\vncconfig.reg", "c:\pathtoacl\vncconfig.reg", 1)

FileChangeDir("pathtoexecutable")
RunWait("UltraVNC-101-Setup.exe /verysilent /loadinf=C:\pathtoacl\vncconfig.inf")

; Delete the Setup Configuration files.
FileDelete("C:\pathtoacl\vncaclconfig.acl")
FileDelete("C:\pathtoacl\vncconfig.inf")
FileDelete("C:\pathtoacl\vncconfig.reg")

DirCopy("C:\Program Files\UltraVNC\plugin", "C:\Program Files\UltraVNC")

; Register UltraVNC server as a sytem service.
FileChangeDir("C:\Program Files\UltraVNC")
Run("winvnc.exe -reinstall")
Sleep(3000)

; Start the server.
FileChangeDir("C:\Program Files\UltraVNC")
Run("net start WinVNC")
Sleep(3000)

; Start the system tray icon.
FileChangeDir("C:\Program Files\UltraVNC")
Run("winvnc.exe -servicehelper")
Sleep(3000)
Let me know if you have any questions.
I have downloaded autoit but this script is not working!

Which version do I have to download?


____________________________________________________________________________________________
See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too. Free hosting
sbostedor
100
100
Posts: 273
Joined: 2005-02-02 19:30
Location: Jackson, MI, USA
Contact:

Re: Semi-automatic installation

Post by sbostedor »

There are some great tools that can do this for you without all of the scripting headaches.
Steve Bostedor
http://www.vncscan.com
Super Simple UltraVNC Management
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Semi-automatic installation

Post by Bonji »

<edit>
Last edited by Bonji on 2021-05-11 12:29, edited 1 time in total.
-Ben
picodesica
Posts: 1
Joined: 2019-11-22 15:34

Re: Semi-automatic installation

Post by picodesica »

I have followed all the guide but it does not set the properties it only makes me the default installation

[Setup]
Lang=en
Dir=C:\Program Files (x86)\uvnc bvba\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=custom
Components=ultravnc_server
Tasks=installservice
AclFile=c:\vnc\someaclconfigfile.txt
PropertiesFile=c:\vnc\someregfile.reg
ggbce
Posts: 1
Joined: 2020-09-29 18:45

Full Automatic installation for Viewer only

Post by ggbce »

UltraVNC setup package doesn't install the shorcuts on "Public Desktop", but in the current user desktop (C:\Users\myuser\desktop\). Not useful when you want a global installation for all users. Then , in my Batch/CMD file I tweak the shortcuts. This is my personal version of UltraVNC Viewer silent installation script:

----------------------
INSTALLVNC.cmd:
----------------------

Code: Select all

@ECHO OFF
REM TO check if you have enough rights !
whoami /groups | find "S-1-16-12288" > nul
IF ERRORLEVEL 1 GOTO NotAdmin
IF ERRORLEVEL 0 GOTO ImAdmin

:NotAdmin
ECHO You must run this script with elevated privileges...
EXIT /b 1

:ImAdmin
@SETLOCAL enableextensions
@CD /d "%~dp0"
"%CD%\UltraVNC_X64_Setup.exe" /verysilent /loadinf="%CD%\uvnc.inf"

ECHO Create shortcut on Public Desktop...
COPY /Y "C:\Users\%USERNAME%\Desktop\UltraVNC Viewer.lnk" "C:\Users\Public\Desktop\UltraVNC Viewer.lnk"
DEL /F /Q "C:\Users\%USERNAME%\Desktop\UltraVNC Viewer.lnk"
DEL /F /Q "C:\Users\%USERNAME%\Desktop\UltraVNC Launcher.lnk"

:END
------------------------------

Where the "uvnc.inf" contain:

Code: Select all

[Setup]
Lang=fr
Dir=C:\Program Files\uvnc bvba\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=custom
Components=ultravnc_viewer
Tasks=desktopicon,associate
Post Reply