openvpn script finished
This commit is contained in:
parent
636e596d9d
commit
4e3f1d1c42
52
optional/install-openvpn.cmd
Normal file
52
optional/install-openvpn.cmd
Normal file
@ -0,0 +1,52 @@
|
||||
@echo off
|
||||
|
||||
set OPT=..\optional
|
||||
set SOFTWARE=..\software
|
||||
set MSI=openvpn-setup.msi
|
||||
set SETTINGS=..\personal\settings.cmd
|
||||
set openvpn_configfile=configfile
|
||||
set capicli="%ProgramFiles(x86)%\OpenVPN Technologies\OpenVPN Client\core\capicli.exe"
|
||||
|
||||
if NOT EXIST %SOFTWARE%\%MSI% (
|
||||
echo ERROR: %SOFTWARE%\%MSI% not found!
|
||||
exit /b
|
||||
)
|
||||
|
||||
rem ===================
|
||||
rem CONFIGFILE CHECK
|
||||
rem ===================
|
||||
|
||||
if NOT EXIST %SETTINGS% (
|
||||
echo.
|
||||
echo WARNING: %SETTINGS% NOT FOUND
|
||||
echo.
|
||||
) else (
|
||||
call %SETTINGS%
|
||||
)
|
||||
|
||||
|
||||
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
|
||||
|
||||
rem install configfile from folder personal ...
|
||||
if EXIST ..\personal\%openvpn_configfile% (
|
||||
echo importing OpenVPN configfile ...
|
||||
%capicli% -f ..\personal\%openvpn_configfile% ImportProfile
|
||||
) else (
|
||||
echo no configfile found!
|
||||
)
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
@ -20,8 +20,11 @@ if NOT EXIST %SETTINGS% (
|
||||
echo.
|
||||
echo WARNING: %SETTINGS% NOT FOUND
|
||||
echo.
|
||||
) else (
|
||||
call %SETTINGS%
|
||||
)
|
||||
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
cd %SOFTWARE%
|
||||
@ -107,7 +110,7 @@ if softmaker_license == 0 (
|
||||
) else (
|
||||
echo adding softmaker license ...
|
||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^
|
||||
/v "ProductKey" /d "115081474870" /t REG_SZ /f
|
||||
/v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f
|
||||
)
|
||||
|
||||
echo ####### %0 #######
|
||||
|
@ -22,3 +22,4 @@ https://swdl.bluejeans.com/desktop-app/win/2.31.114.0/BlueJeans.2.31.114u.msi bl
|
||||
https://www.sonos.com/redir/controller_software_pc sonospc-setup.exe
|
||||
https://download.lenovo.com/consumer/mobiles/rescue_and_smart_assistant_v5.7.0.16_prod_setup.exe motorescue-setup.exe
|
||||
https://github.com/winauth/winauth/releases/download/3.5.1/WinAuth-3.5.1.zip winauth.zip
|
||||
https://swupdate.openvpn.net/as/clients/openvpn-connect-2.7.1.111_signed.msi openvpn-setup.msi
|
||||
|
|
Loading…
Reference in New Issue
Block a user