Skip to content
⌘ NSIS Forum Archive

How to change a section description(MUI2) in a function?

3 posts

AMIB#

How to change a section description(MUI2) in a function?

Hi

I'm trying to change the description of a section at runtime based on a condition

It's not possible to run MUI_DESCRIPTION_TEXT macro inside a function
Any suggestions?

Thanks in advance
Anders#
var mydynamicdesc
function .onInit
strcpy $mydynamicdesc "The default text, change it later"
functionend
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${Section1} $mydynamicdesc
!insertmacro MUI_FUNCTION_DESCRIPTION_END