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

Skip to content

Commit 1f089ce

Browse files
committed
Make inidb output english during installation
1 parent 6aed931 commit 1f089ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nsis/postgresql.nsi

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ Section $(PostgreSQLString) sec1
389389
Pop $0 ; or "error"
390390
AccessControl::GrantOnFile "$DATA_DIR" "$0" "FullAccess" ;GenericWrite
391391
Pop $0 ;"ok" or "error" + error details
392+
System::Call 'Kernel32::SetEnvironmentVariable(t, t)i ("LC_MESSAGES", "C").r0'
392393
${if} "$Locale_text" == "$(DEF_LOCALE_NAME)"
393394
; Initialise the database cluster, and set the appropriate permissions/ownership
394395
nsExec::ExecToLog /TIMEOUT=90000 '"$INSTDIR\bin\initdb.exe" $tempVar \

0 commit comments

Comments
 (0)