أوامر لتثبيت برنامج OpenVPN دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام 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 --silentحسب المثبّت
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i OpenVPN-2.7.9-I001-amd64.msi /qn /norestartكتابة ملف سجل
msiexec /i OpenVPN-2.7.9-I001-amd64.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"إلغاء التثبيت
msiexec /x {02055292-00B1-44C6-B3B0-B07E8565F308} /qn /norestart- رمز منتج MSI
- {02055292-00B1-44C6-B3B0-B07E8565F308}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{02055292-00B1-44C6-B3B0-B07E8565F308}
- UpgradeCode
- {461BDF86-D389-4471-BF36-99806B64C127}
- مجلد التثبيت
- %ProgramFiles%\OpenVPN
ARM64 · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i OpenVPN-2.7.9-I001-arm64.msi /qn /norestartكتابة ملف سجل
msiexec /i OpenVPN-2.7.9-I001-arm64.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"إلغاء التثبيت
msiexec /x {02055292-00B1-44C6-B3B0-B07E8565F308} /qn /norestart- رمز منتج MSI
- {02055292-00B1-44C6-B3B0-B07E8565F308}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{02055292-00B1-44C6-B3B0-B07E8565F308}
- UpgradeCode
- {1E8C4DDC-9E93-4AE2-9495-DF86821EAA3A}
- مجلد التثبيت
- %ProgramFiles%\OpenVPN
32 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i OpenVPN-2.7.9-I001-x86.msi /qn /norestartكتابة ملف سجل
msiexec /i OpenVPN-2.7.9-I001-x86.msi /qn /norestart /l*v "%TEMP%\openvpn-install.log"إلغاء التثبيت
msiexec /x {02055292-00B1-44C6-B3B0-B07E8565F308} /qn /norestart- رمز منتج MSI
- {02055292-00B1-44C6-B3B0-B07E8565F308}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{02055292-00B1-44C6-B3B0-B07E8565F308}
- UpgradeCode
- {1195A47B-A37A-4055-9D34-B7A691F7E97B}
- مجلد التثبيت
- %ProgramFiles(x86)%\OpenVPN
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-openvpn.ps1
$url = 'https://swupdate.openvpn.org/community/releases/OpenVPN-2.7.9-I001-amd64.msi'
$sha256 = '47ABC38A15C217B848FE099332A8523500FCBF2EBF8A1EAA7D5648C6E75079AA'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.9-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.9-I001-arm64.msi'
$sha256 = '41CD8DC2131BF5621EEB238ADE5BBF2DC7C91C4AB6009D74B034C41819E35898'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.9-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.9-I001-x86.msi'
$sha256 = '610C2C520F720ECC44644F4C1F403DCEDD5074F3B23D97B29BFBD13A736EBAE4'
$file = Join-Path $env:TEMP 'OpenVPN-2.7.9-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