if not exist c:\temp (mkdir c:\temp)
if not exist c:\temp\OpenVPN-2.5.6-I601-amd64.msi ( curl -C - -o c:\temp\OpenVPN-2.5.6-I601-amd64.msi https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.6-I601-amd64.msi)
REM if exist "%programfiles%\OpenVPN\Uninstall.exe" (start /wait "%programfiles%\OpenVPN\Uninstall.exe")
REM {E5931AF4-2A8F-48A5-AFC8-CE9B79C4B19D} OpenVPN 2.5.1-I601 amd64
msiexec.exe /x {E5931AF4-2A8F-48A5-AFC8-CE9B79C4B19D} /qn
REM {E5931AF4-2A8F-48A5-AFC8-0E8A268358A0} OpenVPN 2.5.2-I601 amd64
msiexec.exe /x {E5931AF4-2A8F-48A5-AFC8-0E8A268358A0} /qn
REM {919FC393-C79F-4043-ABD6-E80F81D3DD58} OpenVPN Connect
start /wait msiexec.exe /x {919FC393-C79F-4043-ABD6-E80F81D3DD58} /qn
REM {8B4BC420-3DCB-4018-A345-B24F7DBC30C3} OpenVPN Connect
start /wait msiexec.exe /x {8B4BC420-3DCB-4018-A345-B24F7DBC30C3} /qn
REM {B22FA658-C41E-4106-ADB2-B70F3C8FCED0} OpenVPN Connect
start /wait msiexec.exe /x {B22FA658-C41E-4106-ADB2-B70F3C8FCED0} /qn
REM {D9A6D3A5-13C0-5AC5-B3EF-BFDCA9C30D85} OpenVPN 2.5.4-i601 amd64
start /wait msiexec.exe /x {D9A6D3A5-13C0-5AC5-B3EF-BFDCA9C30D85} /qn
REM {D9A6D3A5-13C0-5AC5-B3EF-BFDCA9C30D85} OpenVPN 2.5.5-i601 amd64
start /wait msiexec.exe /x {EFF003D5-C9B6-5BAC-7A00-4F2D13E65E68} /qn
start /wait msiexec /qn /i c:\temp\OpenVPN-2.5.6-I601-amd64.msi
exit