Presumably, one could email them a self-extracting zip file that would, when
executed, automatically start a batch file running that would perform a
silent install of VNC. I have done something similar in the past and it
works well.

Just to get you going in the right direction, below is the batch file I
included in the self-extracting zip I sent someone a while back. It is
written to only run on Windows 2000/XP, but should give you the general
idea. Certainly you'd not want to use it as written. Use at your own risk,
as they say.

:::::::::::::: START OF BATCH FILE SETUP.BAT ::::::::::::::::
@echo off&setlocal ENABLEEXTENSIONS
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: SETUP.BAT to install VNC onto a computer (runs on Win2K/XP only!)
::
:: This program expects the following files to be in the same folder
:: as this batch file:
::
::   vnc-3.3.6-x85_win32.exe (downloaded from http://www.realvnc.com)
::   defaults.reg (exported registry keys from HKLM from a good
::                 installation (*not* from HKCU!))
::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
set /a true=1, false=0
set /a pushed=%false%
::
set folder=%~dp0%
pushd "%folder%" && set /a pushed=%true%
::
:: the program to install...
set vncsetup=vnc-3.3.6-x86_win32.exe
:: where the program gets installed to...
set vncpath=%ProgramFiles%\RealVNC\WinVNC
:: the name of the REG file to incorporate into the registry
set regfile=defaults.reg
::
if not exist "%vncsetup%" goto :NOVNCSETUP
if not exist "%regfile%" goto :NOREGFILE
::
:: In case VNC is already installed on the machine, we
:: should stop the service and remove it before attempting
:: to install a new version. This should not cause any 
:: problems even if VNC has never been installed onto
:: this computer before.
::
net stop winvnc
:: the original (pre Real) VNC
if exist "%ProgramFiles%\orl\vnc\winvnc.exe" (
  "%ProgramFiles%\orl\vnc\winvnc.exe" -remove
  )
:: TightVNC
if exist "%ProgramFiles%\tightvnc\winvnc.exe" (
  "%ProgramFiles%\tightvnc\winvnc.exe" -remove
  "%ProgramFiles%\tightvnc\unins000.exe"
  )
:: RealVNC
if exist "%ProgramFiles%\realvnc\winvnc\winvnc.exe" (
  "%ProgramFiles%\realvnc\winvnc\winvnc.exe" -remove
  "%ProgramFiles%\realvnc\unins000.exe"
  )
:: If you know of other versions of VNC and how they should
:: be removed, add additional commands here.
call :SLEEP 5
::
:: Before installing, add in all the registry entries needed 
:: by the program.
::
regedit -s "%regfile%"
::
:: Now, run the setup program in silent mode, so no input is neccessary
::
%vncsetup% /sp- /verysilent
call :SLEEP 5
if not exist "%vncpath%\winvnc.exe" goto :INSTALLFAILED
"%vncpath%\winvnc.exe" -install
net start winvnc
"%vncpath%\winvnc.exe" -servicehelper
::
:: Done.
::
echo VNC installed successfully.
::
:EXITING
if %pushed%==%true% popd
endlocal&goto :EOF

:NOVNCSETUP
:NOREGFILE
echo A file needed to install VNC is missing!
goto :EXITING

:INSTALLFAILED
echo The installation of VNC was not successful!
goto :EXITING

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:SLEEP number-of-seconds
::
:: Func: Pause the batch file for a certain number of seconds
:: 
:: Args: number of seconds to pause the batch file
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
setlocal ENABLEEXTENSIONS
set /a seconds=%1+0
if %seconds% LEQ 2 set /a seconds=2
set /a seconds-=1
ping -n %seconds% 127.0.0.1 >nul
:: another way to pause is to use the SLEEP.EXE program from
:: the Windows 2000 Recourse Kit, i.e.,
:: sleep %1
endlocal&goto :EOF
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::: END OF BATCH FILE SETUP.BAT ::::::::::::::::

The .REG file would look something like this:

;;;;;;;;;;;;;;;;;;;;;;; START OF DEFAULTS.REG ;;;;;;;;;;;;;;;;;;;;;
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL]

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3]
"ConnectPriority"=dword:00000001
"DebugMode"=dword:00000000
"DebugLevel"=dword:00000002
"LoopbackOnly"=dword:00000000
"EnableHTTPDaemon"=dword:00000001
"EnableURLParams"=dword:00000000
"AllowLoopback"=dword:00000000
"AuthRequired"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Administrator]
"AllowProperties"=dword:00000001
"AllowShutdown"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"AllowProperties"=dword:00000000
"AllowShutdown"=dword:00000000
"SocketConnect"=dword:00000001
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"IdleTimeout"=dword:00000000
"QuerySetting"=dword:00000002
"QueryTimeout"=dword:0000000a
"Password"=hex:fc,fc,fc,fc,fc,fc,fc,fc
"PollUnderCursor"=dword:00000000
"PollForeground"=dword:00000001
"PollFullScreen"=dword:00000001
"RemoveWallpaper"=dword:00000001
"OnlyPollConsole"=dword:00000001
"OnlyPollOnEvent"=dword:00000000
;;;;;;;;;;;;;;;;;;;;;;; END OF DEFAULTS.REG ;;;;;;;;;;;;;;;;;;;;;

It's not your ideal of an ActiveX control, but it's better than nothing.

Hope this helps.

-----Original Message-----
From: Partie Honteuse [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: How to install via internet...


Here's my idea.. I run a pc help site and I get a lot of users who want to
have me or one of the other techs connect to them to fix it for them...Well
i've been searching the internet and this (VNC) seems to be the program to
use.  What I really want to have is something like Windows XP Remote
Assistance type of thing...I direct the person to the spot to install VNC
via an ActiveX control or something (activex is hwo i want to install it
since my techs usually only work on windows OS's).  I just want something
easy for the end-user, everyday joe schmoe to be able to do so one of the
techs can connect...is there a way to do this and put it in terms i myself
(not a big
programmer) could understand?  I would very much appreciate it.

Thanks in advance.
Mike
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to