Nsis changes.
This is what i have come up with so far.
I will have to work with the creation of the client.ovpn
Code:
Section "WindowsMobile" SecWindowsMobile
SetOverwrite on
SetOutPath "$INSTDIR\wm\OpenVPN\"
File "${Home}\wm\Doclist.dll"
File "${Home}\wm\langres.dll"
File "${Home}\wm\MFCCE300.DLL"
File "${Home}\wm\setup_cmgr.dll"
File "${Home}\wm\openvpn.exe"
File "${Home}\wm\ovpncmgr.exe"
SetOutPath "$INSTDIR\wm\OpenVPN\log"
File "${Home}\wm\log\client.log"
SetOutPath "$INSTDIR\wm\OpenVPN\Config"
#File /oname=${SITE_NAME}.ovpn "${MV_PACKAGE_DIR}/client-${COMMON_NAME}.ovpn"
File "${Home}\wm\Config\client.ovpn"
SetOutPath "$INSTDIR\wm\OpenVPN\config\untangle-vpn"
#File /oname=${SITE_NAME}-${COMMON_NAME}.crt "${MV_PKI_DIR}/client-${COMMON_NAME}.crt"
#File /oname=${SITE_NAME}-${COMMON_NAME}.key "${MV_PKI_DIR}/client-${COMMON_NAME}.key"
#File /oname=${SITE_NAME}-ca.crt "${MV_PKI_DIR}/ca.crt"
SetOutPath "$INSTDIR\wm\Windows"
File "${Home}\wm\windows\tap-ce.dll"
File "${Home}\wm\windows\ovpncmgr.en.htm"
SetOutPath "$INSTDIR\wm\Install"
File "${Home}\wm\install\cabwiz.ddf"
File "${Home}\wm\install\cabwiz.exe"
File "${Home}\wm\install\OpenVPN.inf"
nsExec::Exec 'cmd /C cabwiz.exe OpenVPN.inf'
SectionEnd