troubles with IA 6.6

Got a problem you cannot solve? Try here.
crustyzz
Posts: 28
Joined: Thu Mar 16, 2006 4:18 am
Location: France

troubles with IA 6.6

Postby crustyzz » Fri May 18, 2007 11:10 am

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 ?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue May 22, 2007 6:32 pm

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
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

crustyzz
Posts: 28
Joined: Thu Mar 16, 2006 4:18 am
Location: France

Postby crustyzz » Mon Jun 04, 2007 5:51 am

Thanks for your help.
I have "broken" the loop, and it's working.


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 157 guests