upgrade.bat

来自「PostgreSQL 是一种对象-关系型数据库管理系统(ORDBMS),也是目前」· Batch 代码 · 共 29 行

BAT
29
字号
@echo off
cls
echo This file will upgrade your PostgreSQL installation.
echo.
echo You must have PostgreSQL 8.3.x installed from the official
echo MSI installation to use this upgrade path.
echo.
echo If the PostgreSQL server or any client applications are running,
echo a reboot will be required once the upgrade is completed.
echo.
echo.
echo Press Ctrl-C to abort the upgrade or
pause

REM Parameters described:
REM  /i postgresql-8.3-int.msi - pick MSI file to install. All properties
REM                              will be read from existing installation.
REM  REINSTALLMODE=vamus       - reinstall all files, regardless of version.
REM                              This makes sure documentation and other
REM                              non-versioned files are updated.
REM  REINSTALL=ALL             - Reinstall all features that were previously
REM                              installed with the new version.

echo Upgrading Microsoft VC++ 2005 runtime libraries...
vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qb!"

echo Upgrading PostgreSQL...
msiexec /i postgresql-8.3-int.msi REINSTALLMODE=vamus REINSTALL=ALL /qr

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?