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.
Progress bar position
7 posts
What happens when you don't Call DisableSec?
Setting section flags to 0 isn't right. Use the UnselectSection macro in Sections.nsh.
Stu
Setting section flags to 0 isn't right. Use the UnselectSection macro in Sections.nsh.
Stu
After replacing 'SectionSetFlags ${IDX_2} 0' with '!insertmacro UnselectSection ${IDX_2}' in the DisableSec, I got the same result.
Yes but what happens when you don't call DisableSec?
Maybe the progress bar is only calculated on page entry.
Stu
Maybe the progress bar is only calculated on page entry.
Stu
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.
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.
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
Stu
Thanks for your help.