Archive: Progressbar not showing 100%


Progressbar not showing 100%
Hi,

when my installer finishes the progressbar doesn't show 100%.
Is there any instruction to be able to set it to finished / 100%?

I searched the forum (MUI_PAGE_INSTFILES progress bar doesn't show 100% ) and the main reason seems to be when 'Return' is used. One alternative was to introduce a NOP op at the end of each section. I mainly use logiclib exept the following construct:


Section someSection SEC0001
#Do lots of stuff here
#If everything is fine Return otherwise goto Error#
Return
warning1:
MessageBox MB_OK|MB_ICONSTOP "Warning1"
Return
error2:
MessageBox MB_OK|MB_ICONSTOP "Error2"
Abort
error3:
MessageBox MB_OK|MB_ICONSTOP "Error3"
SectionEnd


Can this cause the progressbar not to continue? I also tried NOPs but no effect...

Thanks for the help,
TeeWeTee

Instead of Return why not GoTo the end of the section?

Stu


like this - or is there another way to jump to the end?

Section someSection SEC0001
#Do lots of stuff here
#if everything is fine Return otherwise goto Error#
Goto End
warning1:
MessageBox MB_OK|MB_ICONSTOP "Warning1"
Return
error2:
MessageBox MB_OK|MB_ICONSTOP "Error2"
Abort
error3:
MessageBox MB_OK|MB_ICONSTOP "Error3"
Return
End:
SectionEnd[/QUOTE]

Yes like that.

Stu