Page 1 of 1

[Solved] Command Line Uninstall - OpenVPN-2.4.7-I603

Posted: Fri Jan 10, 2020 4:38 pm
by ivan_RH
Good morning,

I am an I.T. Support and have been tasked with installing OpenVPN-Connect-3.0.0.272 on our 150+ remote users Windows 10 machines. The issue is that the previous version installed, OpenVPN-2.4.7-I603 is not uninstalling silently through command line; more specifically, Powershell ISE script.

1. I have attempted uninstalling it directly by getting the name through installed applications:

Get-WmiObject -Class Win32_Product

but OpenVPN does not appear as an installed program on the list, therefore it cannot be selected to uninstall.

2. I noticed that in "C:\Program Files\OpenVPN\" there is an "Uninstall.exe" file that runs manually, so thinking along those lines:

msiexec.exe /x "C:\Program Files\OpenVPN\Uninstall.exe" /qn

and receive error "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package."

3. Uninstall attempt via

Start-Process -FilePath "C:\Program Files\OpenVPN\Uninstall.exe" -ArgumentList "/s /qn"

successfully launches the uninstall GUI but silent mode is not enabled so it requires user interface.

4. Attempting to uninstall via UninstallString GUID found in

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenVPN

only has a value data of "C:\Program Files\OpenVPN\Uninstall.exe" and not a GUID.

How can this be uninstalled silently?

Re: Command Line Uninstall - OpenVPN-2.4.7-I603

Posted: Fri Jan 10, 2020 8:33 pm
by ivan_RH
Solved.

Start-Process -FilePath "C:\Program Files\OpenVPN\Uninstall.exe" -ArgumentList "/S /qn"

Re: Command Line Uninstall - OpenVPN-2.4.7-I603

Posted: Fri Jan 10, 2020 9:40 pm
by TinCanTech
Nice, thanks 8-)

Re: [Solved] Command Line Uninstall - OpenVPN-2.4.7-I603

Posted: Tue May 12, 2020 5:14 pm
by luckman212
How about an uninstall command for OpenVPN Connect Client (v2)?

Re: [Solved] Command Line Uninstall - OpenVPN-2.4.7-I603

Posted: Tue May 12, 2020 5:55 pm
by TinCanTech
Maybe you should ask the right people ...

Openvpn Connect Client is a closed source product.