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