Create script for Tight-VNC server #55
This commit is contained in:
parent
dbb9858e4b
commit
ba2fe7df7c
24
optional/install-vncserver.cmd
Normal file
24
optional/install-vncserver.cmd
Normal file
@ -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 #######
|
||||||
|
|
@ -28,3 +28,4 @@ rem create symbolic link ...
|
|||||||
mklink %TOOLS%\vnc.exe %TOOLS%\tvnviewer.exe 2>nul
|
mklink %TOOLS%\vnc.exe %TOOLS%\tvnviewer.exe 2>nul
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user