Semi-automatic installation

Here you will find help for frequently asked questions as well as for your specific question.

Semi-automatic installation

Postby extremesanity » 2006-06-27 21:30

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:

How to make your own UltraVNC Server MSI
Last edited by extremesanity on 2006-06-28 15:59, edited 3 times in total.
extremesanity
 
Posts: 2
Joined: 2006-06-27 20:50

Re: Semi-automatic installation

Postby 2tim3_16 » 2006-07-03 21:00

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.
2tim3_16
 
Posts: 2
Joined: 2006-07-03 20:50

Re: Semi-automatic installation

Postby robson-dasilva » 2009-08-14 10:38

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
robson-dasilva
8
8
 
Posts: 10
Joined: 2009-08-13 11:56

Re: Semi-automatic installation

Postby marcgistel » 2009-08-14 11:08

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.
marcgistel
40
40
 
Posts: 72
Joined: 2008-03-26 09:07
Location: Ulm, Germany

Re: Semi-automatic installation

Postby brad_kl » 2009-10-13 22:46

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?
brad_kl
 
Posts: 1
Joined: 2009-10-13 22:27

Re: Semi-automatic installation

Postby robson-dasilva » 2010-04-27 11:19

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
robson-dasilva
8
8
 
Posts: 10
Joined: 2009-08-13 11:56

Re: Semi-automatic installation

Postby Aergan » 2011-07-27 16:07

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.
Aergan
8
8
 
Posts: 14
Joined: 2011-02-22 11:12
Location: UK

Re: Semi-automatic installation

Postby Bonji » 2011-07-29 17:27

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
Bonji
100
100
 
Posts: 325
Joined: 2008-05-13 14:54

Re: Semi-automatic installation

Postby Aergan » 2011-11-03 08:39

In Autoit use #RequireAdmin
Aergan
8
8
 
Posts: 14
Joined: 2011-02-22 11:12
Location: UK

Re: Semi-automatic installation

Postby hasini » 2013-04-08 12:04

Hai i am new to this forum.
hasini
 
Posts: 1
Joined: 2013-04-08 12:02

Re: Semi-automatic installation

Postby zaza » 2013-05-23 09:22

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
zaza
 
Posts: 1
Joined: 2013-05-23 09:05

Re: Semi-automatic installation

Postby sbostedor » 2014-12-09 00:16

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
sbostedor
100
100
 
Posts: 273
Joined: 2005-02-02 19:30
Location: Jackson, MI, USA

Re: Semi-automatic installation

Postby Bonji » 2014-12-16 13:39

This thread just won't die. :P
-Ben
Bonji
100
100
 
Posts: 325
Joined: 2008-05-13 14:54


Return to General help

Who is online

Users browsing this forum: No registered users and 5 guests