Install UVNC via SCCM

Install UVNC via SCCM

Postby Vestfrost » 2011-02-28 12:49

Hi.

I want to uninstall our old version of UVNC and install UVNC 1.0.9.5 via our SCCM server. I've made a install.bat file that I want SCCM to run. I've tested the file by running the bat file manually on a computer. The bat-file looks like this:

@ECHO OFF
taskkill /f /im winvnc.exe
SC DELETE "uvnc_service"
REG DELETE HKEY_CURRENT_USER\Software\ORL /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\ORL /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\UltraVnc /f
REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\UltraVnc /f
RD /S /Q "%ProgramFiles%\UltraVNC"
RD /S /Q "%APPDATA%\UltraVNC"
SC DELETE "winvnc"
XCOPY "\\server\UltraVNC\Rev2\ultravnc.ini" "C:\Program files\UltraVNC\" /C /Q /Y
XCOPY "\\server\UltraVNC\Rev2\driver\*.*" "C:\Program files\UltraVNC\driver\" /C /Q /Y
XCOPY "\\server\UltraVNC\Rev2\UltraVNC.exe" "C:\TEMP\" /C /Q /Y
XCOPY "\\server\UltraVNC\Rev2\UltraVNC.inf" "C:\TEMP\" /C /Q /Y
START "" /wait "C:\Program files\UltraVNC\driver\setupdrv.exe" installs
START "" /wait C:\TEMP\UltraVNC.exe /norestart /verysilent /loadinf="C:\TEMP\UltraVNC.inf" /log
DEL /F /Q C:\TEMP\UltraVNC.exe
DEL /F /Q C:\TEMP\UltraVNC.inf
NET STOP "uvnc_service"
NET START "uvnc_service"

and our inf-file looks like this:

[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=UltraVNC
NoIcons=1
SetupType=full
Components=ultravnc_server
Tasks=installservice,startservice

When i run the bat-file manually it pops up with window that downloads something, but everythings works fine afterwards. But when I run it from our SCCM server, it uninstalls the old version, kill the services, copies the files to the computer and start the installation of 1.0.9.5, but the it never succed. What have i done wrong? or is there a easier way to uninstall our old UVNC and install the new one unattended?
Vestfrost
 
Posts: 5
Joined: 2010-05-25 10:30

Re: Install UVNC via SCCM

Postby redge » 2011-02-28 13:29

SC STOP "uvnc_service"

this winvnc.exe line not exist in services.msc except version uvnc before 1.0.3
SC DELETE "winvnc"
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
redge
Super-Mod
Super-Mod
 
Posts: 6815
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Install UVNC via SCCM

Postby Vestfrost » 2011-02-28 13:38

We are upgrading from a VNC version 1.0.2. So thats why :).
Vestfrost
 
Posts: 5
Joined: 2010-05-25 10:30

Re: Install UVNC via SCCM

Postby Vestfrost » 2011-03-02 09:58

Is there another way to install UVNC via SCCM?
Vestfrost
 
Posts: 5
Joined: 2010-05-25 10:30

Re: Install UVNC via SCCM

Postby bridge » 2011-03-04 13:46

I recommend creating a custom EXE or MSI and then deploying it from SCCM. See the following for more information:

complete offline installation ultravnc
Re: UltraVNC 1.0.8.2 Silent/Unattended Install
Automating the video driver installation
bridge
8
8
 
Posts: 26
Joined: 2008-09-05 11:46


Return to 1.0.9.5 (stable)

Who is online

Users browsing this forum: No registered users and 1 guest