Local deployment of VPN Clients:
Start ApplicGate.exe with following argument: "/ClickOnce?param1=value1¶m2=value2&..." e.g.
ApplicGate.exe "/ClickOnce?server=vpn.testcomp.com:442"
For a description of the parameters of see here.
If no parameters are specified for the switch "/ClickOnce":
- The file ApplicGateClient.ini will be read
- If this file does not exist, a form will be shown to enter the parameters.
- The parameters will be written into the file ApplicGate Client.ini and the programm will be restarted.
Use ApplicGateClient.bat for start of ApplicGate.exe to allow restart of ApplicGate.exe:
:restart
ApplicGate.exe /ClickOnce
echo Errorlevel: %errorlevel%
if not "%errorlevel%" == "1" goto exit
echo ApplicGate restarted!
goto restart
:exit
echo ApplicGate stopped!