Archive: How to use SMALLDESC (Modern UI)


How to use SMALLDESC (Modern UI)
Hello,

Before SMALLDESC option work great in the old version of NSIS.

Now smalldesc doesn't work!! :(

How to use it?

Solution 1:

!insertmacro MUI_COMPONENTSPAGE_SMALLDESC

Solution 2:

!insertmacro MUI_COMPONENTSPAGE
!define MUI_UI_COMPONENTSPAGE_NODESC

Solution 2:

!insertmacro MUI_COMPONENTSPAGE
!define MUI_UI_COMPONENTSPAGE_NODESC "${NSISDIR}\Contrib\UIs\modern-smalldesc.exe"

I don't find the answer!

Thank you!!!


!define MUI_COMPONENTSPAGE_SMALLDESC

The trick is, it must be placed before any of the other mui defines.


But how to change resources of this dialog?
If I do

!define MUI_UI_COMPONENTSPAGE_SMALLDESC "${NSISDIR}\Contrib\UIs\modern-smalldesc.exe"
!define MUI_COMPONENTSPAGE_SMALLDESC

then I get errors when I do

!insertmacro: MUI_PAGE_WELCOME
(or any other page)

Error: Can't find "IDD_SELCOM" in "C:\Program Files\NSIS\Contrib\UIs\modern-smalldesc.exe"!
Error in macro MUI_INTERFACE on macroline 56
Error in macro MUI_PAGE_INIT on macroline 3
Error in macro MUI_PAGE_WELCOME on macroline 5


"${NSISDIR}\Contrib\UIs\modern-smalldesc.exe"
That is a dash, it's an underscore! Use:

"${NSISDIR}\Contrib\UIs\modern_smalldesc.exe"

Yes! :)
BTW: in Modern UI readme dash is used, not underscore. Over and over again I promise myself not to use Copy-Paste :)


The filename in the Modern UI Readme is indeed incorrect. This has been fixed.


Hi. This is an old thread, but I have a question now about this as well.

I've tried to put

!define MUI_UI_COMPONENTSPAGE_SMALLDESC

before all the other page defines and macros, but it didn't take.

I then put

!define MUI_UI_COMPONENTSPAGE_SMALLDESC "${NSISDIR}\Contrib\UIs\modern_smalldesc.exe"

there instead, but that didn't take either. There's still the normal description area to the right of the Section window. Isn't SMALLDESC supposed to place the description area below the Section window?

I'm using NSIS 2.14

There's no error or warning message when I compile.


[edit] I guess I should mention that I have used !define MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO to change the grayed-out text in the description area, in case that has anything to do with this. [/edit]