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

OpenVPN tutorials ranging from configuration to hacks to compilation will be posted here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ivan_RH
OpenVpn Newbie
Posts: 2
Joined: Fri Jan 10, 2020 4:27 pm

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

Post by ivan_RH » Fri Jan 10, 2020 4:38 pm

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?

ivan_RH
OpenVpn Newbie
Posts: 2
Joined: Fri Jan 10, 2020 4:27 pm

Re: Command Line Uninstall - OpenVPN-2.4.7-I603

Post by ivan_RH » Fri Jan 10, 2020 8:33 pm

Solved.

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

TinCanTech
OpenVPN Protagonist
Posts: 11138
Joined: Fri Jun 03, 2016 1:17 pm

Re: Command Line Uninstall - OpenVPN-2.4.7-I603

Post by TinCanTech » Fri Jan 10, 2020 9:40 pm

Nice, thanks 8-)

luckman212
OpenVPN User
Posts: 46
Joined: Fri Jun 10, 2011 12:03 am

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

Post by luckman212 » Tue May 12, 2020 5:14 pm

How about an uninstall command for OpenVPN Connect Client (v2)?

TinCanTech
OpenVPN Protagonist
Posts: 11138
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Tue May 12, 2020 5:55 pm

Maybe you should ask the right people ...

Openvpn Connect Client is a closed source product.

Post Reply