Page 1 of 1

troubles with IA 6.6

Posted: Fri May 18, 2007 11:10 am
by crustyzz
I use a script developed with IA 5.5.
Everything was allright. Now I have to upgrade my install, that's why I upgrade IA to 6.6 but I met some troubles.
I explain to you my problem.

In my my script I use a sub-script A which calls a sub-script B like that:

Main script:

Code: Select all

include sub-scriptA
sub-scriptA:

Code: Select all

set Variable SPE to A
include sub-scriptB

set Variable SPE to B
include sub-scriptB

set Variable SPE to C
include sub-scriptB
subscriptB:

Code: Select all

Edit ini file $TARGETDIR$\\MyIniFile.ini, [PREFIX_$SPE$] title=blabla
Edit ini file $TARGETDIR$\\MyIniFile.ini, [PREFIX_$SPE$] description=blablabla
this was perfectly working with IA 5.5, but whith IA 6.6, I obtain only
[PREFIX_C] title=blabla
[PREFIX_C] description=blablabla

do you know what happened ?

Posted: Tue May 22, 2007 6:32 pm
by MichaelNesmith
The problem is that the command you are "looping over" is an MSI command. InstallAware will generate only one database entry for this command when setup is running. The 5.5 version used a less efficient database generation method, which ironically made this code work for you.

What happens at runtime is that the actual code runs, but only the last "iteration" of the code actually has any effect. Please read this whitepaper for the answers to "why":

http://www.installaware.com/msicode_scr ... nology.pdf

Posted: Mon Jun 04, 2007 5:51 am
by crustyzz
Thanks for your help.
I have "broken" the loop, and it's working.