w10install/scripts/unpack-vnc.cmd
2022-12-12 16:30:04 +01:00

32 lines
611 B
Batchfile

@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set T=c:\TEMP
set MSI=vnc-setup.msi
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
echo unpacking vnc (tvnviewer) ...
cd %SOFTWARE%
@echo on
msiexec /a %MSI% TARGETDIR=%T% /qn
@echo off
cd %SCRIPTS%
echo moving vnc binary to tools folder ...
move /Y %T%\PFiles\TightVNC\tvnviewer.exe %TOOLS%
del /S /Q /A %T%\%MSI% 1>nul 2>nul
rd /S /Q %T%\PFiles
rem create symbolic link ...
mklink %TOOLS%\vnc.exe %TOOLS%\tvnviewer.exe 2>nul
echo ####### %0 #######