From ba2fe7df7ca3548db75db6bc53f8e0631ca2af3d Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Mon, 12 Dec 2022 16:30:04 +0100 Subject: [PATCH] Create script for Tight-VNC server #55 --- optional/install-vncserver.cmd | 24 ++++++++++++++++++++++++ scripts/unpack-vnc.cmd | 1 + 2 files changed, 25 insertions(+) create mode 100644 optional/install-vncserver.cmd diff --git a/optional/install-vncserver.cmd b/optional/install-vncserver.cmd new file mode 100644 index 0000000..1b7a678 --- /dev/null +++ b/optional/install-vncserver.cmd @@ -0,0 +1,24 @@ +@echo off + +set SOFTWARE=..\software +set MSI=vnc-setup.msi +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing vnc (server) ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /qn +@echo off + +echo cleanup ... +del /F %STARTMENU%\"TightVNC\Visit TightVNC Web Site.lnk" 2>nul + +echo ####### %0 ####### + diff --git a/scripts/unpack-vnc.cmd b/scripts/unpack-vnc.cmd index 1531c64..e457c34 100644 --- a/scripts/unpack-vnc.cmd +++ b/scripts/unpack-vnc.cmd @@ -28,3 +28,4 @@ rem create symbolic link ... mklink %TOOLS%\vnc.exe %TOOLS%\tvnviewer.exe 2>nul echo ####### %0 ####### +