Archive: Show page, then skip to next page


Show page, then skip to next page
Hello all,

I am writing an installer which needs to show each page for a certain amount of time (less than a second), then skip to the next page. The purpose is to allow the user to see the progress without actually being involved in the installation (all default values will be set).

I've got both MUI and custom pages, and I have figured out how skip a page using this wiki article: http://nsis.sourceforge.net/Go_to_a_NSIS_page. However, I'm having trouble showing the page before skipping (the page is waiting for the user to do something).

Any ideas on how to do this?

Thanks in advance!


nsDialogs has a timer function included since v2.42:

http://nsis.sourceforge.net/Docs/nsD...ef-createtimer

I guess you'll have to create the timer in the page's show function?


I'm not sure what you mean by creating the timer in the show function. As far as I can tell, you can't pass a function to the nsDialogs::show command. Also, I'm using MUI pages as well, so these would need to be addressed.

I did find a bit of a gerry-rigged way to do this. I made a separate express.exe file which accepts the installer's HWNDPARENT number. express pauses for 500ms (i may make this a parameter as well), and then uses the HWNDPARENT number to change the installer's screen (See RelGotoPage on the wiki).

express is called in the Show function for the MUI pages, and right before the nsDialogs::Show function in the custom pages.

This works as expected, the only hangup is that we have to make sure the express.exe file is installed prior to running our installer, which is fine for our purposes


I said the page's show function, not nsDialogs's show function. See the MUI2 readme.