أوامر لتثبيت برنامج psqlodbc دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id PostgreSQL.psqlODBC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PostgreSQL.psqlODBC -e --silentwinget uninstall --id PostgreSQL.psqlODBC -e --silentحسب المثبّت
64 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
psqlodbc-setup.exe /quiet /norestartإلغاء التثبيت
msiexec /x {0B75C5A6-6206-41CB-959B-B28DF3973761} /qn /norestart- رمز منتج MSI
- {0b75c5a6-6206-41cb-959b-b28df3973761}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0b75c5a6-6206-41cb-959b-b28df3973761}
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i psqlodbc_x64.msi /qn /norestartكتابة ملف سجل
msiexec /i psqlodbc_x64.msi /qn /norestart /l*v "%TEMP%\psqlodbc-install.log"إلغاء التثبيت
msiexec /x {6DA86BD0-4D3B-446C-8D93-B4F6048A3626} /qn /norestart- رمز منتج MSI
- {6DA86BD0-4D3B-446C-8D93-B4F6048A3626}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6DA86BD0-4D3B-446C-8D93-B4F6048A3626}
32 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
psqlodbc-setup.exe /quiet /norestartإلغاء التثبيت
msiexec /x {0B75C5A6-6206-41CB-959B-B28DF3973761} /qn /norestart- رمز منتج MSI
- {0b75c5a6-6206-41cb-959b-b28df3973761}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0b75c5a6-6206-41cb-959b-b28df3973761}
32 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i psqlodbc_x86.msi /qn /norestartكتابة ملف سجل
msiexec /i psqlodbc_x86.msi /qn /norestart /l*v "%TEMP%\psqlodbc-install.log"إلغاء التثبيت
msiexec /x {636505EB-0D71-4B8A-82AE-D0AAEBA0DCE3} /qn /norestart- رمز منتج MSI
- {636505EB-0D71-4B8A-82AE-D0AAEBA0DCE3}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{636505EB-0D71-4B8A-82AE-D0AAEBA0DCE3}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-psqlodbc.ps1
$url = 'https://github.com/postgresql-interfaces/psqlodbc/releases/download/REL-18_00_0005/psqlodbc-setup.exe'
$sha256 = 'F79DA87394AD6337C676DBEC444597BF679216100BBE2A497676FB6D8C8AA7D5'
$file = Join-Path $env:TEMP 'psqlodbc-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-psqlodbc.ps1
$url = 'https://github.com/postgresql-interfaces/psqlodbc/releases/download/REL-18_00_0005/psqlodbc_x64.msi'
$sha256 = '56345B91E41302271A7ECFC4F4819F49B0FE9FC061BD2B0D72338D81D30597A9'
$file = Join-Path $env:TEMP 'psqlodbc_x64.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-psqlodbc.ps1
$url = 'https://github.com/postgresql-interfaces/psqlodbc/releases/download/REL-18_00_0005/psqlodbc-setup.exe'
$sha256 = 'F79DA87394AD6337C676DBEC444597BF679216100BBE2A497676FB6D8C8AA7D5'
$file = Join-Path $env:TEMP 'psqlodbc-setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-psqlodbc.ps1
$url = 'https://github.com/postgresql-interfaces/psqlodbc/releases/download/REL-18_00_0005/psqlodbc_x86.msi'
$sha256 = '54564528317FD03C4176B837B9E21A38DB7B0B3FDD5300AA1440BD6E6C50B79A'
$file = Join-Path $env:TEMP 'psqlodbc_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