Archive: Simply change component description?


Simply change component description?
Hello!

How can I change the component description? I have specified one by the wizard, but now I want to change it and dont know where, becuase I cant seem to find it in the script file.


if you're using the HMsoft editor - I don't think that it actually saves the descriptions for sections (but I'm on a possibly old version, v0.3).

If you're using the ModernUI, set descriptions using:


!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SectionName} "description text"
!insertmacro MUI_FUNCTION_DESCRIPTION_END


'SectionName' should be the name of the section.. i.e.


Section "A Section" SectionName
...
SectionEnd

Thanks for reply, but when I try this, MUI_FUNCTION_DESCRIPTION_BEGIN throws a compiler error saying "Function named .onMouseOverSection already exists.".

Do you know why?

As I said, i specified a description by the wizard, but cant find it in the generated code, although the desc. is displayed in the setup programme. But how can the setup know the description when its not written in the script??


it can't know - as I said, assuming you're using the HMsoft NSISeditor wizard, I don't think it actually writes out the description, a bug (or missing feature) in that editor :)

As for the error you got - perhaps you already have a "MUI_FUNCTION_DESCRIPTION_BEGIN" elsewhere in your script? Or a ".onMouseOverSection" defined in it explicitly?

I'm attaching a sample script that uses the MUI_FUNCTION_DESCRIPTION_* stuff for your perusal.


Thanks for your help! :) I used your suggestion to write the code on my own whithout using the wizard.