Archive: Nsisdl::download 2 progress bar in install page


Nsisdl::download 2 progress bar in install page
I used nsisdl to download, while download i am getting progress bar but already in install dialog i am having another progress bar, so tollay there are 2 progress bar in same page which can make the user confused.How to remove the progess bar so that i can have only one progress bar in install page.I have attached the script please go through it.

I used download_quiet is not giving any progess bar it feel lke the application hanged.


Script

Function GetJRE
StrCpy $2 "$TEMP\Java Runtime Environment.exe"
nsisdl::download /TIMEOUT=30000 ${JRE_URL} $2
Pop $R0 ;Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Java Download failed: $R0 "
Goto end

MessageBox MB_ICONQUESTION|MB_OKCANCEL|MB_DEFBUTTON2 " JDK 1.6 downloaded, do you want to install now?" IDCancel +3
ExecWait $2
Delete $2
end:
FunctionEnd

Function DetectJRE
ReadRegStr $2 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" \ "CurrentVersion"
StrCmp $2 ${JRE_VERSION} done
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "You are having Java $2 in your system .${PRODUCT_NAME} uses Java ${JRE_VERSION}, Do you want to downloaded now?" IDNo +2
Call GetJRE
done:

FunctionEnd

Please help me to resolve this

Thanks,
Jayam


Use the banner plug-in.

Stu


Regarding Progressbar
Any pointer to which I can use.

I am having same issue, can I just show one progressbar instead of getting two of them. I am using Ultra Mordern UI and this looks really bad on that.

Please let me know.