diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 64c888c4..822d3a53 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -202,6 +202,21 @@ lang_again: my_SetWindowText(m_bgwnd, caption); #endif } + + // reload section names + { + section *sec = g_sections; + int x = num_sections; + + while (x--) + { + if (sec->name_ptr) + { + GetNSISString(sec->name, sec->name_ptr); + } + sec++; + } + } } FORCE_INLINE int NSISCALL ui_doinstall(void) @@ -303,20 +318,6 @@ FORCE_INLINE int NSISCALL ui_doinstall(void) set_language(); #endif - { - section *sec = g_sections; - int x = num_sections; - - while (x--) - { - if (sec->name_ptr) - { - GetNSISString(sec->name, sec->name_ptr); - } - sec++; - } - } - #ifdef NSIS_CONFIG_VISIBLE_SUPPORT #ifdef NSIS_CONFIG_SILENT_SUPPORT