Bug: return from include script broken in batch build

Got a problem you cannot solve? Try here.
Damien
Posts: 14
Joined: Wed Dec 02, 2015 10:36 am

Bug: return from include script broken in batch build

Postby Damien » Thu Dec 01, 2016 7:36 am

Tests:

  • InstallAware X5 -build 8.4.2016
  • windows 10 - 1607

This is a simple project sample (one drive): https://1drv.ms/u/s!Aow6Mhpjb5xisXrmJTSUcsAA_ROH

It contains a readme.txt with detailed informations, but I ll give some here for future readers:

I founded a very strange bug with the return from include script function.
In some conditions,the function is not fired : no value returned, and code after the function is executed.
Conditions:
  • Nested include scripts (more than one level)
  • Build by command line (=/= build inside IDE)

The "strange" thing is it occurs only when command line build...
Bug occurs when there is nested scripts (more than one level: mainScript-script1-script2(fail)), also if you have disabled code by commenting it or with compiler var...

So the trick is to instanciate a var in the included script and call this var in parent script, and not use return with values.

I want to focus IA team on differences with IDE build and command line build, not the first time I face to it, detailed on this previous topic.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bug: return from include script broken in batch build

Postby FrancescoT » Thu Dec 01, 2016 1:29 pm

Let me check and I'll let you know.

Thanks for now.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bug: return from include script broken in batch build

Postby FrancescoT » Tue Dec 06, 2016 6:31 am

Dear Damien,

this should be fixed now.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10831

Many thanks for reporting this to us.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Damien
Posts: 14
Joined: Wed Dec 02, 2015 10:36 am

Re: Bug: return from include script broken in batch build

Postby Damien » Wed Dec 07, 2016 9:05 am

Nice job, happy to be helpful to IA :)

Is it possible to have some information about differences between IDE vs Command line build?
It may help me to investiguate on my previous problem of plugin working when build by IDE and not in command line (only on patch builds).

I have an other question, when do you plan te release a new major version of IA? I m working on a big project, and we ll rebuy IA (studio) in few weeks, but we may wait for next release if few month.
Thanks!

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bug: return from include script broken in batch build

Postby FrancescoT » Wed Dec 07, 2016 12:53 pm

Dear Damien,

there are no differences with the build process. The IDE uses the command line tool to build a package.

For now, there are no news about a possible next major version.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 57 guests