w10install/scripts/unpack-vnc.cmd

31 lines
609 B
Batchfile
Raw Normal View History

2021-02-28 14:10:59 +01:00
@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) ...
@echo on
cd %SOFTWARE%
msiexec /a %MSI% TARGETDIR=%T% /qn
cd %SCRIPTS%
@echo off
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%\tvnviewer.exe %TOOLS%\vnc.exe 2>nul
echo ####### %0 #######