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?
[Solved] Command Line Uninstall - OpenVPN-2.4.7-I603
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Jan 10, 2020 4:27 pm
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Jan 10, 2020 4:27 pm
Re: Command Line Uninstall - OpenVPN-2.4.7-I603
Solved.
Start-Process -FilePath "C:\Program Files\OpenVPN\Uninstall.exe" -ArgumentList "/S /qn"
Start-Process -FilePath "C:\Program Files\OpenVPN\Uninstall.exe" -ArgumentList "/S /qn"
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Command Line Uninstall - OpenVPN-2.4.7-I603
Nice, thanks
-
- OpenVPN User
- Posts: 46
- Joined: Fri Jun 10, 2011 12:03 am
Re: [Solved] Command Line Uninstall - OpenVPN-2.4.7-I603
How about an uninstall command for OpenVPN Connect Client (v2)?
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: [Solved] Command Line Uninstall - OpenVPN-2.4.7-I603
Maybe you should ask the right people ...
Openvpn Connect Client is a closed source product.
Openvpn Connect Client is a closed source product.