Skip to content
⌘ NSIS Forum Archive

Custom Pages different size

8 posts

The Glimmerman#

Custom Pages different size

Hi all,

I've a question.
I'm using three different custom pages. I altered the ui (105) for one of my custom page. But my 2 other pages do not need the big size of the UI window.

How can I , if its even possible, use three different ui window sizes?

Hope that someone has the answer.

thx
Backland#
I dont think you can have multiple versions of the 105 UI resource, but if you know the required size for the window, you can store that in your script and dynamically resize the installer window with the SetWindowPos API call.

You will probably need to reposition the back/next/etc button as well.
kichik#
Create another RECT just like 1018 in any size you want. Then, in [Settings], use Rect=<the new id>. The MUI does that, so you have an example in Contrib\UIs\modern.exe and Contrib\Modern UI\System.nsh.
The Glimmerman#
@ kichik

What do you mean by 1018. If I open modern.exe I see dialog 105 and 1033.

I copied dialog 105 to 1051 and changed size.
Then in my custom.ini added rect=1051. Build the installer and a no go. It doesn't show any dialog.

What did I wrong.
The Glimmerman#
Thx kichik.

I've got it to work. But that's not what I meant.
I want the complete dialog to resize and not the inner rectangle. Is it possible?