Kommandon för att installera psqlodbc utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
psqlodbc-setup.exe /quiet /norestartAvinstallation
msiexec /x {7948DA72-B182-44EB-9C71-562F38C1A805} /qn /norestart- MSI-produktkod
- {7948da72-b182-44eb-9c71-562f38c1a805}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7948da72-b182-44eb-9c71-562f38c1a805}
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i psqlodbc_x64.msi /qn /norestartSkriv en logg
msiexec /i psqlodbc_x64.msi /qn /norestart /l*v "%TEMP%\psqlodbc-install.log"Avinstallation
msiexec /x {65C26ABD-8773-43CD-89AE-31F08A23A3B6} /qn /norestart- MSI-produktkod
- {65C26ABD-8773-43CD-89AE-31F08A23A3B6}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65C26ABD-8773-43CD-89AE-31F08A23A3B6}
32-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
psqlodbc-setup.exe /quiet /norestartAvinstallation
msiexec /x {7948DA72-B182-44EB-9C71-562F38C1A805} /qn /norestart- MSI-produktkod
- {7948da72-b182-44eb-9c71-562f38c1a805}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{7948da72-b182-44eb-9c71-562f38c1a805}
32-bitars · MSI · Alla användare
Tyst installation
msiexec /i psqlodbc_x86.msi /qn /norestartSkriv en logg
msiexec /i psqlodbc_x86.msi /qn /norestart /l*v "%TEMP%\psqlodbc-install.log"Avinstallation
msiexec /x {BBF39B13-AC09-4088-8492-DC56842FF628} /qn /norestart- MSI-produktkod
- {BBF39B13-AC09-4088-8492-DC56842FF628}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{BBF39B13-AC09-4088-8492-DC56842FF628}
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-psqlodbc.ps1
$url = 'https://github.com/postgresql-interfaces/psqlodbc/releases/download/REL-18_00_0006/psqlodbc-setup.exe'
$sha256 = '8AAAB5C6CF697381DFCC14987238FB4437DA7AA72A16654504ADD67589DDDBFF'
$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_0006/psqlodbc_x64.msi'
$sha256 = '8962543113DF83410B74F113DB1EF80717B65A1DC7869E18C24BD852DD65535F'
$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_0006/psqlodbc-setup.exe'
$sha256 = '8AAAB5C6CF697381DFCC14987238FB4437DA7AA72A16654504ADD67589DDDBFF'
$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_0006/psqlodbc_x86.msi'
$sha256 = 'B5E3D749A148D56B184984B23305794C3D602317B30215945A5CA7C5233DC24A'
$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