Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9db8e12

Browse files
committed
Checking pgpro_upgrade avaliblity before use
1 parent 80d9d43 commit 9db8e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nsis/postgresql.nsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Section $(componentServer) sec1
476476
ClearErrors
477477
FileOpen $0 $INSTDIR\scripts\pgpro_upgrade.cmd w
478478
IfErrors creatBatErr6
479-
FileWrite $0 '@echo off$\r$\nif "%PGDATA%"=="" set PGDATA=%~1$\r$\nif "%PGDATA%"=="" set PGDATA=$DATA_DIR$\r$\nPATH $INSTDIR\bin;%PATH%$\r$\nsh.exe "$INSTDIR\bin\pgpro_upgrade"$\r$\n'
479+
FileWrite $0 '@echo off$\r$\nif "%PGDATA%"=="" set PGDATA=%~1$\r$\nif "%PGDATA%"=="" set PGDATA=$DATA_DIR$\r$\nPATH $INSTDIR\bin;%PATH%$\r$\nif exist "$INSTDIR\bin\pgpro_upgrade" sh.exe "$INSTDIR\bin\pgpro_upgrade"$\r$\n'
480480
FileClose $0
481481

482482
creatBatErr6:

0 commit comments

Comments
 (0)