Archive: How to call a label in uninstall section?


How to call a label in uninstall section?
Try

Section Uninstall
Call :a
a:
;something to do
SectionEnd
or
Section Uninstall
Call un.:a
a:
;something to do
SectionEnd
but error when compile.

Why don't you just use Goto?

Edit: And if you're trying to jump from an install section to an uninstall section, well that's physically (logically) impossible.

-Stu


The reason using label is the label is a common code block. Goto can't return but Call can.
And I'm Call the label in one Uninstall section, not jump to anthoer section.
Is these a BUG?


Section Uninstall
label1:
GetLabelAddress $0 label1
IntOp $0 $0 + 3
goto a
;...

label2:
GetLabelAddress $0 label2
IntOp $0 $0 + 3
goto a
;...
goto end

a:
;...
goto $0

end:
SectionEnd

Thanks Instructor. Work fine. :P


Fixed in latest CVS version.