w10install/optional/install-vncserver.cmd

27 lines
514 B
Batchfile
Raw Permalink Normal View History

2022-12-12 16:30:04 +01:00
@echo off
2022-12-12 16:35:27 +01:00
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
2022-12-12 16:30:04 +01:00
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 ...
2023-01-27 16:36:38 +01:00
del /F /Q %STARTMENU%\"TightVNC\Visit TightVNC Web Site.lnk" 2>nul
2022-12-12 16:30:04 +01:00
echo ####### %0 #######