ncsengodi
4th January 2008 08:16 UTC
Progress bar position
The attachment is a sample script, which simulates my problem.
At the end of the installation process the progress bar doesn't reach the 100%.
In the last section a function updates the progress bar, but it returns to the previous position.
Afrow UK
4th January 2008 10:53 UTC
What happens when you don't Call DisableSec?
Setting section flags to 0 isn't right. Use the UnselectSection macro in Sections.nsh.
Stu
ncsengodi
4th January 2008 11:25 UTC
After replacing 'SectionSetFlags ${IDX_2} 0' with '!insertmacro UnselectSection ${IDX_2}' in the DisableSec, I got the same result.
Afrow UK
4th January 2008 11:27 UTC
Yes but what happens when you don't call DisableSec?
Maybe the progress bar is only calculated on page entry.
Stu
ncsengodi
4th January 2008 11:35 UTC
Compiler warning:
unknown variable/constant "{IDX_2}" detected, ignoring (macro:UnselectSection:3)
The code in SEC_2 section is executed, because the index of SEC_2 section doesn't exist when compiling the script in SEC_1 section.
Afrow UK
4th January 2008 11:43 UTC
Don't try to unselect section 2 and the progress bar should be fine. If you have to unselect section 2 from section 1, it would be better to do it before the page is displayed or in .onSelChange.
Stu
ncsengodi
4th January 2008 12:12 UTC
Thanks for your help.