Unattended Installation of VNC on Win95 / WinNT

Duke Senter duke "at" co.kittitas.wa.us
Tue, 08 Sep 1998 17:22:37 +0000


I did the same thing, but a little differently.  Got it installed on one =
w95 pc (as a service) with all settings done properly.  opened up the =
registry with regedit and exported the branch of the tree as specified =
from the FAQ:
HKEY_USERS/.Default/Software/ORL/WinVNC3
then my batch file has:
@echo off
if exist c:\progra~1\orl\vnc\ver332r2 goto end
 =20
  regedit /s s:\admin.reg
 =20
  c:
  cd progra~1
  md orl
  cd orl
  md vnc
  cd vnc

  copy s:vnchooks.dll
  copy s:winvnc.exe
  copy s:uninst.isu

  copy s:omni*.dll c:\windows\system

  c:\progra~1\orl\vnc\winvnc -install
 =20
  echo verified > c:\progra~1\orl\vnc\ver332r2
:end

The "regedit /s" grafts the filename onto the existing tree as needed, =
AND does it silently.

The 'echo verified > c:\progra~1\orl\vnc\ver332r2' just creates a file =
for us called "ver332r2" so that we can check to see if we've installed =
on this machine before - if you don't, then you get all kinds of errors =
on your copying due to file in use, etc.  Also, I'm going to be editting =
this a little bit to allow for upgrades.  Something along the lines of =
(roughly pseudocode and from memory)

if not exist <oldver- e.g. ver331> then oldend
   winvnc -stop
   goto installnew
:oldend

So that you can upgrade all in one install.bat of sorts


Then you run from the login script (our's is netware so the '#' means =
execute):

IF MEMBER OF "VNCCLIENT" THEN
     MAP ROOT S:=3DSOL/VOL1:COMMON\VNCNET
     #command /c S:CUSTINST.BAT
     MAP DEL S:
END

You put the 'command /c' which calls command.com of the pc and will =
automatically close the window of the dos box when it is thru.

We are currently deploying this even now.  It is completely transparent =
to the users (they get a "VNC server installed successfully" with an ok =
button that auto disappears in a few seconds - if they glance away =
during login, they miss the thing completely).  It has our own (fairly =
difficult) password for all users.  No fuss, no muss.

Thanks ORL!!!!!!!
We admins LOVE you!
Also, thanks to those who responded to my requests over the last couple =
of weeks to get this in place.

Duke Senter
Network Admin
Kittitas County, WA

-----Original Message-----
From:	David Bussenschutt [SMTP:D.Bussenschutt "at" mailbox.gu.edu.au]
Sent:	Monday, September 07, 1998 8:33 PM
To:	'vnc-list "at" orl.co.uk'
Subject:	Re: Unattended Installation of VNC on Win95 / WinNT

>I wish to install the VNC server on 300 Win95 PCs without doing it by =
hand.=20
>VNC must run as a service with no password set on each server so that =
the=20
>PC can be taken-over without the hinderance of being asked for a =
password.=20
>Needless to say this is on a secure private network.
>I need some way of identifying which registry keys the VNC installer=20
>creates/updates, and which files and directories are created.=20

Hope this helps....

I created a batch file that installs the program files and sets the
registry correctly, and all that jazzy stuff:

Please ignore the rest if you aren't interested... and if you are, =
please
note that one line is really long and got wrapped by my e-mail program.

the install folder has these files:

install.bat      (the following file)
omnithread_rt.dll
reg.exe          (a useful dos registry utility)
VNCHooks.dll
vncviewer.exe
WinVNC.exe



contents of install.bat:

@echo off

echo *
echo * Please Wait while your system configuration is checked.=20
echo * This will only take a minute.....
echo *

mkdir c:\progra~1\orl >nul
mkdir c:\progra~1\orl\vnc >nul
copy .\vnc*.* c:\progra~1\orl\vnc >nul
copy .\winvnc*.* c:\progra~1\orl\vnc >nul
copy .\omni*.dll c:\windows\system >nul

rem add service=20
.\reg -AddKey \Machine\SOFTWARE\Microsoft\Windows\CurrentVersion >nul
.\reg -AddKey
\Machine\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices >nul
.\reg -set
\Machine\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices\WinVNC=3D"=
C:\Pr
ogram Files\Orl\VNC\WinVNC.exe -service" >nul=20

rem add keys
.\reg -AddKey \User\Software >nul
.\reg -AddKey \User\Software\ORL >nul
.\reg -AddKey \User\Software\ORL\WinVNC3 >nul
.\reg -AddKey \Users\.Default\Software >nul
.\reg -AddKey \Users\.Default\Software\ORL >nul
.\reg -AddKey \Users\.Default\Software\ORL\WinVNC3 >nul

rem add values (including password which is "password")
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\SocketConnect=3D1 >nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\PortNumber=3D5900 >nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\InputsEnabled=3D1 >nul
.\reg -set REG_BINARY
\Users\.Default\Software\ORL\WinVNC3\Password=3D"db,d8,3c,fd,72,7a,14,58"=
 >nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\PollUnderCursor=3D1
>nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\PollForeground=3D0
>nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\PollFullScreen=3D0
>nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\OnlyPollConsole=3D1
>nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\OnlyPollOnEvent=3D0
>nul
.\reg -set REG_DWORD =
\Users\.Default\Software\ORL\WinVNC3\AutoPortSelect=3D1
>nul

.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\SocketConnect=3D1 >nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\PortNumber=3D5900 >nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\InputsEnabled=3D1 >nul
.\reg -set REG_BINARY
\User\Software\ORL\WinVNC3\Password=3D"db,d8,3c,fd,72,7a,14,58" >nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\PollUnderCursor=3D1 =
>nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\PollForeground=3D0 >nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\PollFullScreen=3D0 >nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\OnlyPollConsole=3D1 =
>nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\OnlyPollOnEvent=3D0 =
>nul
.\reg -set REG_DWORD \User\Software\ORL\WinVNC3\AutoPortSelect=3D1 >nul



----------------------------------------------------------------
 David Bussenschutt            D.Bussenschutt "at" mailbox.gu.edu.au
 Health Computing Support.     Phone: (07) 3875 5407
 Information Services. Griffith University, Brisbane, Qld., Aust.
----------------------------------------------------------------

---------------------------------------------------------------------
The VNC mailing list     -   see http://www.orl.co.uk/vnc/intouch.html
---------------------------------------------------------------------

---------------------------------------------------------------------
The VNC mailing list     -   see http://www.orl.co.uk/vnc/intouch.html
---------------------------------------------------------------------