Skip to content

Commit 258c757

Browse files
committed
Added language selection for uninstall when Windows default UI Language is Russian
1 parent 1676ffd commit 258c757

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

nsis/postgresql.nsi

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

2107-
2108-
Function GetUIId
2107+
!macro GetUIId UN
2108+
Function ${UN}GetUIId
21092109
System::Call 'kernel32::GetUserDefaultUILanguage() i.r10'
21102110
Push $R0
21112111
FunctionEnd
2112+
!macroend
2113+
!insertmacro GetUIId ""
2114+
!insertmacro GetUIId "un."
21122115

21132116
Function .onInit
21142117
Call CheckWindowsVersion
@@ -2423,4 +2426,14 @@ Function nsDialogsMorePageLeave
24232426
; ${endif}
24242427

24252428

2429+
FunctionEnd
2430+
2431+
Function un.onInit
2432+
Call un.GetUIId
2433+
pop $R0
2434+
${if} $R0 == "1049"
2435+
;!define MUI_LANGDLL_ALLLANGUAGES
2436+
!insertmacro MUI_LANGDLL_DISPLAY ;select language
2437+
${endif}
2438+
24262439
FunctionEnd

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy