w10install/optional/install-openvpn.cmd

33 lines
531 B
Batchfile
Raw Normal View History

2022-11-13 22:12:39 +01:00
@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
2022-11-13 22:12:39 +01:00
set OPT=..\optional
set SOFTWARE=..\software
set MSI=openvpn-setup.msi
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
echo installing OpenVPN ...
cd %SOFTWARE%
@echo on
msiexec /i %MSI% /q
@echo off
cd %OPT%
echo removing Desktop icon ...
del /F "%PUBLIC%\Desktop\OpenVPN Connect.lnk" 2>nul
echo refreshing desktop (W10 style) ...
ie4uinit.exe -show
2022-12-29 17:01:45 +01:00
timeout /nobreak 5
2022-11-13 22:12:39 +01:00
echo ####### %0 #######
pause