Archive: show MUI_TEXT_FINISH_INFO_REBOOT in MessageBox


show MUI_TEXT_FINISH_INFO_REBOOT in MessageBox
Hi,

How can I use a predefined localized string (here MUI_TEXT_FINISH_INFO_REBOOT) to be shown in a message box? In a section after following code:

Section 'Set_installer_to_silent'
HideWindow
SetAutoClose true
SectionEnd

; The stuff to install
Section 'Install_product'
<HERE>




Something like

MessageBox MB_OK "${MUI_TEXT_FINISH_INFO_REBOOT}"

(but that doesn't work)

Thanks and regards
Tobias

Try $(MUI_TEXT_FINISH_INFO_REBOOT).

Stu


Thanks for your help. This works but brought me to another problem caused by using MUI in non-MUI project. So I needed an approach without including the MUI localization (*.nsh).

Localizing with additional strings in the *.nlf files (e.g. Contrib\Language files\German.nlf) also didn't work (same as renaming existing ones e.g. Branding -> BrandingBlubb). Think that is by design.

So I switched to a custom include with e.g.

LangString MUI_TEXT_FINISH_INFO_REBOOT 1031 "Windows muss neu gestartet werden, um die Installation von $(^NameDA) zu vervollständigen. 
Möchten Sie Windows jetzt neu starten?""

for localizing (here named as German_custom.nsh and then included). That works as expected.