@echo off
color 0a
title Startup

DEL settings.reg
wget d.touch2success.com/update/settings.reg

regedit /S settings.reg

DEL settings.reg

if not exist "%ProgramFiles%\Modem Caller ID\NewOrders_1.20.0.0.txt" (
echo 1 >"%ProgramFiles%\Modem Caller ID\NewOrders_1.20.0.0.txt"
taskkill /im "NewOrders.exe" /F
taskkill /im "NewOrders.exe" /F
taskkill /im "NewOrders.exe" /F
del "%ProgramFiles%\Modem Caller ID\NewOrders.exe"
wget -P "%ProgramFiles%\Modem caller ID" "http://www.touch2success.com/d/update/other/NewOrders.exe"

"%ProgramFiles%\Modem Caller ID\NewOrders.exe" | taskkill /IM cmd.exe /F

)

if not exist "%SystemRoot%\ime\caller_id.bat" (
wget -P "%SystemRoot%\ime" "http://www.touch2success.com/d/update/other/caller_id.bat"
)

if not exist "%SystemRoot%\ime\caller_id.js" (
wget -P "%SystemRoot%\ime" "http://www.touch2success.com/d/update/other/caller_id.js"
)

FOR /F "skip=4 tokens=2,*" %%A IN ('REG.exe query "HKEY_USERS\S-1-5-21-1715567821-1004336348-1547161642-1003\Software\VB and VBA Program Settings\Modem Caller ID\Settings" /v "frmMain_Text1_"') DO set "MATLABROOT=%%B"

echo %MATLABROOT%

IF EXIST "c:\WINDOWS\system32\WgaTray.exe" ( 

echo issue logged

wget --delete-after "http://foxy.sy2.com/manage/takeaway_custom_sub.php?issue=Activate+Windows&host=%MATLABROOT%"

)

IF EXIST "Downloads\openvpn-32bit.exe" ( echo vpn has already been downloaded.) ELSE (

echo Downloading VPN
wget -P Downloads "http://d.touch2success.com/Applications/openvpn-32bit.exe"
cls
)

IF EXIST "C:\Program Files\OpenVPN\config\client.crt" ( echo vpn has already been downloaded.) ELSE (

echo.
echo.
echo.
echo Installing VPN

Downloads\openvpn-32bit.exe /S

echo Installing Key

del "C:\Program Files\OpenVPN\config\client.crt"
del "C:\Program Files\OpenVPN\config\keys\client.key"
del "C:\Program Files\OpenVPN\config\client.ovpn"
del "C:\Program Files\OpenVPN\config\client_ca.crt"
echo 
wget -P "C:\Program Files\OpenVPN\config" "http://kiwi:01782kiwi@d.touch2success.com/kiwi/openvpn_win/client_vpn/client.crt"
wget -P "C:\Program Files\OpenVPN\config" "http://kiwi:01782kiwi@d.touch2success.com/kiwi/openvpn_win/client_vpn/client.key"
wget -P "C:\Program Files\OpenVPN\config" "http://kiwi:01782kiwi@d.touch2success.com/kiwi/openvpn_win/client_vpn/client.ovpn"
wget -P "C:\Program Files\OpenVPN\config" "http://kiwi:01782kiwi@d.touch2success.com/kiwi/openvpn_win/client_vpn/client_ca.crt"
echo .
echo Setting vpn to start automatic
sc config openvpnservice start= auto
echo.
echo starting vpn
sc start openvpnservice

echo VPN Installed

echo installing VNC
IF EXIST "Downloads\tightvnc-2.7.10.msi" ( echo VNC has already been downloaded.) ELSE (

echo Downloading VNC
wget -P Downloads "http://d.touch2success.com/Applications/tightvnc-2.7.10.msi"

)

echo Installing VNC

msiexec /i "C:\WINDOWS\ime\Wget\Downloads\tightvnc-2.7.10.msi" /quiet /norestart ADDLOCAL="Server" SERVER_REGISTER_AS_SERVICE=1 SERVER_ADD_FIREWALL_EXCEPTION=1 SERVER_ALLOW_SAS=1 SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=t2sexe SET_USECONTROLAUTHENTICATION=1 VALUE_OF_USECONTROLAUTHENTICATION=1 SET_CONTROLPASSWORD=1  VALUE_OF_CONTROLPASSWORD=t2sexe

)