Befehle, um OpenVPN ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id OpenVPNTechnologies.OpenVPN -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenVPNTechnologies.OpenVPN -e --silentwinget uninstall --id OpenVPNTechnologies.OpenVPN -e --silentNach Installer
64-Bit · MSI · Alle Benutzer
Stille Installation
msiexec /i OpenVPN-2.7.7-I001-amd64.msi /qn /norestartProtokoll schreiben
msiexec /i OpenVPN-2.7.7-I001-amd64.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"Deinstallation
msiexec /x {94991384-92E2-41D4-B467-B45C47C31CD3} /qn /norestart- MSI-Produktcode
- {94991384-92E2-41D4-B467-B45C47C31CD3}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{94991384-92E2-41D4-B467-B45C47C31CD3}
- UpgradeCode
- {461BDF86-D389-4471-BF36-99806B64C127}
- Installationsordner
- %ProgramFiles%\OpenVPN
ARM64 · MSI · Alle Benutzer
Stille Installation
msiexec /i OpenVPN-2.7.7-I001-arm64.msi /qn /norestartProtokoll schreiben
msiexec /i OpenVPN-2.7.7-I001-arm64.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"Deinstallation
msiexec /x {94991384-92E2-41D4-B467-B45C47C31CD3} /qn /norestart- MSI-Produktcode
- {94991384-92E2-41D4-B467-B45C47C31CD3}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{94991384-92E2-41D4-B467-B45C47C31CD3}
- UpgradeCode
- {1E8C4DDC-9E93-4AE2-9495-DF86821EAA3A}
- Installationsordner
- %ProgramFiles%\OpenVPN
32-Bit · MSI · Alle Benutzer
Stille Installation
msiexec /i OpenVPN-2.7.7-I001-x86.msi /qn /norestartProtokoll schreiben
msiexec /i OpenVPN-2.7.7-I001-x86.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"Deinstallation
msiexec /x {94991384-92E2-41D4-B467-B45C47C31CD3} /qn /norestart- MSI-Produktcode
- {94991384-92E2-41D4-B467-B45C47C31CD3}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{94991384-92E2-41D4-B467-B45C47C31CD3}
- UpgradeCode
- {1195A47B-A37A-4055-9D34-B7A691F7E97B}
- Installationsordner
- %ProgramFiles(x86)%\OpenVPN
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-openvpn.ps1
$url = 'https://swupdate.openvpn.org/community/releases/OpenVPN-2.7.7-I001-amd64.msi'
$sha256 = '9069A48397C4FD4135FB9C9BAEA4863C74A465651F67E55A423A433E503100BB'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.7-I001-amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-openvpn.ps1
$url = 'https://swupdate.openvpn.org/community/releases/OpenVPN-2.7.7-I001-arm64.msi'
$sha256 = 'CEFDE0E99E226357109003A3577D1217ED938795B42F4F8BE69E9BE06C23293D'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.7-I001-arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-openvpn.ps1
$url = 'https://swupdate.openvpn.org/community/releases/OpenVPN-2.7.7-I001-x86.msi'
$sha256 = 'CCB8564AF0817B2A6BE5439A4976B339161B9CEB920AAEBA4E7E67F1F691C2E6'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.7-I001-x86.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait