Deploying the OpenVPN client with connection profile (.ovpn)
Since I didn’t find a documentation on how to deploy OpenVPN plus a connection profile, here’s how it worked for me.
Rename your ovpn file to bundled.ovpn
Place it in the same folder as the openvpn-connect-x.y.z.msi
Provide a script that starts the setup with /qn switch and runs a task that kills the application (it is launched by the setup)
The simple way:
timeout 5 > 0
taskkill /F /IM openvpnconnect.exe