Skip to content
⌘ NSIS Forum Archive

Progress bar of downloading on the custom page

4 posts

oldfriend#

Progress bar of downloading on the custom page

Hello.

Wasn't able to find answer among hundreds of topics, so excuse me if I've missed it.

Simple question. Is it possible to make such custom page where progress bar of downloading would appear?

I need progress exactly on the custom page instead of installation one.

Thank you for your attention and answers.
oldfriend#
OK, I figured it out:

...
Page custom ShowDownloadingPage PressButton
!insertmacro MUI_PAGE_INSTFILES
...
...
...
Function ShowDownloadingPage
    !insertmacro MUI_INSTALLOPTIONS_DISPLAY "DLPage.ini"
FunctionEnd
Function PressButton
    inetc::get /TIMEOUT 10000 /RESUME "One more time?" "http://mydomain/myfile" "$TEMP\\myfile" \
    Pop $0
FunctionEnd 
BUT!!! My question now is how to start downloading immediately right after my page is shown as now user should additionally start downloading by pressing "Install" button?

Hope for your help and thank you you again for your answers.
pospec#
You could do it nice in nsDialogs in "pre" function. Can you please post your .ini file? I'll try it.
oldfriend#
Thank you for your reply, pospec. Actually my ini file is almost empty as I need this page just for showing downloading:

[Settings]
NumFields=1
[Field 1]
Type=Label
Text=Label
Left=33
Right=304
Top=9
Bottom=162 
I've placed just label there.