Announcement

Collapse
No announcement yet.

!define MUI_WELCOMEPAGE_TEXT in .onInit ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • !define MUI_WELCOMEPAGE_TEXT in .onInit ?

    I would like to customize the MUI_WELCOMEPAGE_TEXT based on a function that I call in .onInit and which initializes some variables.

    Every example that I saw so far, has the
    !define MUI_WELCOMEPAGE_TEXT
    (and any other !define MUI_) appear before .onInit.

    I tried ignoring this fact by including such a variable (that is declared before !define MUI_WELCOMEPAGE_TEXT but initialized in .onInit) in the !define MUI_WELCOMEPAGE_TEXT but - not surprisingly, I receive the following compilation warning:
    unknown variable/constant "{oninit_var}" detected, ignoring (macro:MUI_FUNCTION_WELCOMEPAGE:42
    Is it possible at all to customize MUI_WELCOMEPAGE_TEXT with non-static text?

    If so, how do I do this?

    Thanks!

  • #2
    nope - but you can always use WM_SETTEXT to change the text of the control if you must

    Comment


    • #3
      Simply set it to a variable and set that variable in .onInit.
      NSIS FAQ | NSIS Home Page | Donate $
      "I hear and I forget. I see and I remember. I do and I understand." -- Confucius

      Comment


      • #4
        Thank you Animaethe and kichik.

        I ended up using the following approach and it works beautifully:
        Originally posted by kichik
        Simply set it to a variable and set that variable in .onInit.

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎