Archive: Installer Options question


Installer Options question
I am trying to use the InstallerOptions plugin, but I can't get the installer to work correctly with it. I am using the one included with NSIS 2.0b0 but I also checked with the latest one in cvs and it behaves similarly. I create a dialog box with a label and a combobox, this all works fine, but after I click next the buttons become disabled and nothing displays in the center status area (I have to kill the process here).
In showCfgDlg() I changed the line
if (was_ok_enabled) EnableWindow(hNextButton,0);
to
if (was_ok_enabled) EnableWindow(hNextButton,1);
and the installer will then allow me to click next and exit the installer. However the center status area is still not shown, so I can't see the details window nor NSISdl progress bar (I've tried with this commented out to try and make sure it wasn't effecting things).

I am mostly testing using the Modern UI but similar issues occur without it (though instead of 'Next' I get a 'Close' button).

Any ideas? Is this something I did wrong, has it been fixed already, or is more information required?

Thank you,
Jeremy


Are you trying to call InstallOptions from a section? It was only designed to be called from a custom page creator function.

What does NSISdl have to do with it?

If you can attach the script this will all be a bit clearer.


Ok, that explains a lot.
Yes I was using it in a section, right before I made a call to NSISdl (I am trying to prompt the user to select a mirror site to download from), so I wasn't initially sure which plugin may have an error (or if it was just me -- which is what it is :-)

Thanks, I'll look into altering my approach then.


is it true IO uses units rather than pixels now?


Yep.