Hello,
I need to create installer for my users which install OpenVPN client, import user VPN config and RDP connection file.
During setup I need to install OpenVPN-2.5.3-I601-amd64.msi.
But after OpenVPN install I have to copy OVPN config file to OpenVPN directory which path is in registry: HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN\config_dir - it points mostly to c:\Program Files\OpenVPN\config\ but you never know (drive letter, x86/x64, ...).
So I need:
1) Install OpenVPN-2.5.3-I601-amd64.msi
2) Read registry HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN\config_dir
3) Copy OVPN config file to path read from registry.
I can install MSI file and read registry, but I don't know how to copy file to path from registry.
How can I do that?
Thanks for help,
Martin