Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1676ffd

Browse files
committed
Does not select a language for install if Windows default UI Language is not Russian
1 parente319695 commit1676ffd

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

‎nsis/postgresql.nsi

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,12 @@ Function SetDefaultTcpPort
21042104
${endwhile}
21052105
FunctionEnd
21062106

2107+
2108+
Function GetUIId
2109+
System::Call'kernel32::GetUserDefaultUILanguage() i.r10'
2110+
Push$R0
2111+
FunctionEnd
2112+
21072113
Function .onInit
21082114
Call CheckWindowsVersion
21092115
Call SetDefaultTcpPort
@@ -2116,9 +2122,19 @@ ${EndIf}
21162122
!endif
21172123
IntOp$3${SF_SELECTED} |${SF_RO}
21182124
SectionSetFlags${secClient}$3
2125+
2126+
21192127
;SectionSetFlags ${secClient} ${SF_RO}
2120-
!define MUI_LANGDLL_ALLLANGUAGES
2121-
!insertmacro MUI_LANGDLL_DISPLAY;select language
2128+
Call GetUIId
2129+
pop$R0
2130+
2131+
${if}$R0=="1049"
2132+
!define MUI_LANGDLL_ALLLANGUAGES
2133+
!insertmacro MUI_LANGDLL_DISPLAY;select language
2134+
${endif}
2135+
2136+
2137+
21222138
StrCpy$PG_OLD_DIR""
21232139
StrCpy$DATA_DIR"$INSTDIR\data"
21242140
StrCpy$OLD_DATA_DIR""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp