Changes

Jump to: navigation, search

OpenVPN

479 bytes added, 21:25, 15 May 2020
Alternative installation by Vince: Add some variables, update version, and some little changes
<source lang="xml">
<packages> <package id="Openvpnopenvpn" name="OpenVPN" revision="%versionPKG_VERSION%" reboot="false" priority="0"> <variable name="version" value="2.4.3-I602" /> <check type='uninstall' condition='exists' path='OpenVPN .+' /> <install cmd='certutil -addstore TrustedPublisher %SOFTWARE%\Openvpn\openvpn.cer' /> <install cmd='"%SOFTWARE%\Openvpn\openvpn-install-%version%.exe" /S /SELECT_SHORTCUTS=0 ' /> <install cmd='%COMSPEC% /c copy "%SOFTWARE%\Openvpn\config\*.*" "%PROGRAMFILES%\OpenVPN\config\"' /> <install cmd='ping -n 10 127.0.0.1' />
<variable name="PKG_VERSION" value="2.4.9" />
<variable name="PKG_FULL_VERSION" value="%PKG_VERSION%-I601" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\OpenVPN"/>
<variable name="PKG_NAME" value="openvpn-install-%PKG_FULL_VERSION%.exe" />
<variable name="PKG_INSTALL_SWITCH" value="/S" />
<variable name="PKG_REMOVE_SWITCH" value="/S" />
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\OpenVPN" />
<!-check type="uninstall" condition="versiongreaterorequal" path="OpenVPN .+" value="%PKG_FULL_VERSION%" /> <install cmd='certutil -addstore "TrustedPublisher" "%PKG_SOURCE%\openvpn.cer"' /> <install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' /> <install cmd='sc start config openvpnservicestart= auto' />--> <remove install cmd='%COMSPEC% /c del /q copy "%PROGRAMFILESPKG_SOURCE%\OpenVPN\config\*.*"' /> <remove cmd='"%PROGRAMFILESPKG_DESTINATION%\OpenVPNconfig\Uninstall.exe" /S' /> <remove install cmd='ping -n 10 127.0.0.1-n 3>NUL' />
<upgrade include="remove" /> <upgrade include="install" /> <remove cmd='%COMSPEC% /c del /q "%PROGRAMFILES%\OpenVPN\config\*.*"' /> <remove cmd='certutil -delstore "TrustedPublisher" "OpenVPN Technologies, Inc."' /> <remove cmd='"%PKG_DESTINATION%\Uninstall.exe" %PKG_REMOVE_SWITCH%' /> <remove cmd='ping 127.0.0.1 -n 3>NUL' /package>
</package>
</source>
74
edits

Navigation menu