Skip to content
⌘ NSIS Forum Archive

InstallOptions

9 posts

Afrow UK#

InstallOptions

I have just added a directory page using InstallOptions. However, I have hit many ugly problems...

On the InstallPage, everything is installed twice 🧟
On the new IO page, a Install > button is displayed. Clicking < Back will take you to the components page BUT it still has the Install > button on it (but greyed out)

I'm using Modern UI

It's a bit hard to show you the script, since it's split up into about 8 sections.


-Stuart
Joost Verburg#
I cannot reproduce any of your problems.

Please post your scrict code that handles the IO stuff.
Joel#
And also...

We need an app to create the proper:

Type=
Top=
Left=
Bottom=
Right=
I spend 45 min trying to get right one label and a textbox 🧟
I try IOcpt but it doesn't update 😢

Does anyone has a quick way to do this?

😎
Sunjammer#
I think you can use Dev Studio (or another dialog editor) to work out the dialog unit positions of controls, but those tools won't write out an IO ini file for you, that's still your job. I don't have a quick way I can tell you of I'm afraid to say.

IOcpt is very old now, I don't think it was updated even when NSIS started using dialog units instead of pixels for positioning the controls.
Joel#
Hey !

I found a tool in this site

a program called dlged200.zip for edit dialogs.
maybe It'll be a helpfull untill an Official tool.
Afrow UK#
Thanks for the replies, but it is not what I needed help for.
I fixed the problem by using...
Page Custom MyDirectoryPage

Instead of...
Page Directory etc...


Now, I have another small problem.
Modern UI transfers the Title and Subtitle from the window before it, and dumps it over my custom page. I'm not sure how to stop it from doing this.

?

-Stuart
Afrow UK#
Thanks KiCHiK, it works nice 🙂
Strange that the macro has to go before the InstallOptions:: command and not after.

-Stuart 🙂
Joost Verburg#
That's not weird. It stays on the InstallOptions command until the user has leaved the page.