Archive: NSISdl dialog problem


NSISdl dialog problem
I'm using NSISdl to download files between two pages. Since I have a fast internet connection, I never see the NSISdl box appearing, but those that tested the app for me on a 56k modem saw that the NSISdl dialog came up as just a white box.
I assume this is because it appears between two pages, but it isn't because it is appearing after the user clicks next on an IO page and it just moves to the next line where the command to NSISdl is.

Is there away to fix this without having to use an InstFiles window, and calling NSISdl within a Section?

-Stu


It probably goes too fast, so Windows does not draw the dialog.

Do you need the dialog? Otherwise use NSISdl::download_quiet


Well, I'm using it to download various files from 60kb's-20mb's
I'll download a larger file and see how it goes.

And yes, I need the dialog to display - don't want 56k users to think that the program has crashed!

-Stu


Maybe you should create an extra custom page for it.


I'm guesing what is causing it; it must be because I'm calling it after the io dialog has shown.
This will be a tough one.
I can't really put it in another page, because I need to be able to go back and forth between points on the same page, so I shall try putting the NSISdl call into a function or something.

-Stu


Putting it in a function will make no difference.


NSISdl is not built to work outside of sections.


Well, what can I do now?

Should I have an InstFiles page with the pre function set to an IO page, where the user can select the download url, click next and then the log window will appear, or will this not work at all?
I'd like to try this out, but I'm not in my own environment right now :(

-Stu


InstallOptions doesn't work outside of a custom page function and NSISdl doesn't work outside of sections. You can use multiple instfile pages, enabling/disabling the approriate sections on the pre function or calling the right function from the section.


This is going to be a bit tricky!
The current thing is all in one whole function, allowing me to jump up and down so that it is possible to download one file, goto loop, then download the next and so-on.

I will get something working. Maybe having an extra ini file for the purpose of transfering information between the two windows, or just saving things in pure variables.

Do you think NSISdl will ever work outside of the InstFiles page? It seems a shame to have to use the InstFiles page at all (I'd like my program to be custom-page-only):(

-Stu


I'm sure you'll figure something out :cool:

Do you think NSISdl will ever work outside of the InstFiles page? It seems a shame to have to use the InstFiles page at all (I'd like my program to be custom-page-only)
Someday :)

Is it on the To-Do list :)
I will stick with what is possible now, and whenever NSISdl is any-page compatible, then I can impliment it then.

Grr. I don't feel like doing some nsis now (I want to play some games but my bro is hogging the mother PC)

-Stu