คำสั่งสำหรับติดตั้ง Microsoft OLE DB Driver for SQL Server โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Microsoft.SQLServer.OLEDBDriver -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.SQLServer.OLEDBDriver -e --silentwinget uninstall --id Microsoft.SQLServer.OLEDBDriver -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน · de-DE
ติดตั้งแบบเงียบ
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YESบันทึกไฟล์ log
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"ถอนการติดตั้ง
msiexec /x {D18429DE-40A6-4F7E-9B18-F11A00BA9A90} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {D18429DE-40A6-4F7E-9B18-F11A00BA9A90}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D18429DE-40A6-4F7E-9B18-F11A00BA9A90}
- UpgradeCode
- {B1F32E34-48E0-426C-8B0F-9DB732A4C975}
64 บิต · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YESบันทึกไฟล์ log
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"ถอนการติดตั้ง
msiexec /x {B8F87A96-2998-43A5-93BC-379FF776784F} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {B8F87A96-2998-43A5-93BC-379FF776784F}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8F87A96-2998-43A5-93BC-379FF776784F}
- UpgradeCode
- {B1F32E34-48E0-426C-8B0F-9DB732A4C975}
64 บิต · MSI · ผู้ใช้ทุกคน · it-IT
ติดตั้งแบบเงียบ
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YESบันทึกไฟล์ log
msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"ถอนการติดตั้ง
msiexec /x {031C8E7C-114A-4AF1-A3A2-B8680671D2AE} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {031C8E7C-114A-4AF1-A3A2-B8680671D2AE}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{031C8E7C-114A-4AF1-A3A2-B8680671D2AE}
- UpgradeCode
- {B1F32E34-48E0-426C-8B0F-9DB732A4C975}
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-microsoft-ole-db-driver-for-sql-server.ps1
$url = 'https://download.microsoft.com/download/6afc73cd-aad7-4bab-876a-ab0dcc8a9001/amd64/1031/msoledbsql.msi'
$sha256 = 'B300A2735E306ADB3E6606E4D210B22CB36400E9F431F8463E49CA089A70F464'
$file = Join-Path $env:TEMP 'msoledbsql.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', '/qn IACCEPTMSOLEDBSQLLICENSETERMS=YES' -Wait install-microsoft-ole-db-driver-for-sql-server.ps1
$url = 'https://download.microsoft.com/download/bbb0d870-7a04-44d9-af17-af28575a0ed8/amd64/1033/msoledbsql.msi'
$sha256 = 'C1D5BD79C316588FB08C852ACF76628AB662426E763B68AEF4CFA25FA1DD7BEB'
$file = Join-Path $env:TEMP 'msoledbsql.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', '/qn IACCEPTMSOLEDBSQLLICENSETERMS=YES' -Wait install-microsoft-ole-db-driver-for-sql-server.ps1
$url = 'https://download.microsoft.com/download/1462d639-ae55-42d1-9f6b-c35235018be6/amd64/1040/msoledbsql.msi'
$sha256 = 'AEB50937D45A0D22EB6B200F95CFB9B1F28D72502CCF4B2B4FBF0703E64D191D'
$file = Join-Path $env:TEMP 'msoledbsql.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', '/qn IACCEPTMSOLEDBSQLLICENSETERMS=YES' -Wait