I want to uninstall our old version of UVNC and install UVNC 188.8.131.52 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:
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:
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 184.108.40.206, 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?