Page 1 of 1

How to implement looping in Installaware script.

Posted: Thu Feb 16, 2012 6:58 am
by chakresh
Hi,

I want to implement loop in the Installaware script, for this purpose I tried Label....Go To Label statement.
I works fine in normal case, but when I try to put this inside the conditional statement i.e. If..Then....ElseIf, it gives compilation error.
As per installaware help "You may not place a label inside an if/else if/else/end block.". Which means Go To Label cannot be used for looping
in this case.

Please suggest how I can implement loop in this case, is there any workaround for this problem.

Thanks & Regards,
Chakresh :)

Re: How to implement looping in Installaware script.

Posted: Thu Feb 16, 2012 8:33 am
by Chris_DMG
What version of InstallAware are you using?
If you have IA10 or newer there are while/wend and repeat/until script commands to implement loops inside of the script which can be nested inside if statements.