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

Install UVNC via SCCM

Post Reply
Vestfrost
Posts: 5
Joined: 2010-05-25 10:30

Install UVNC via SCCM

Post by Vestfrost »

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?
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Install UVNC via SCCM

Post by redge »

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
Vestfrost
Posts: 5
Joined: 2010-05-25 10:30

Re: Install UVNC via SCCM

Post by Vestfrost »

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

Post by Vestfrost »

Is there another way to install UVNC via SCCM?
bridge
8
8
Posts: 26
Joined: 2008-09-05 11:46

Re: Install UVNC via SCCM

Post by bridge »

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

[topic=17101][/topic]
[post=68215][/post]
[topic=17587][/topic]
Post Reply