Our projects consists of several script files each.
A handfull of our customers get the attached error message during the installation.
Is it possible to add the offending line, not just its number?
Or is there a way, to find out what line it actually is?
Runtime error in setup script
Runtime error in setup script
Best regards
pfennig
pfennig
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Runtime error in setup script
Currently there is no way to get the offending line (I'll try to forward such request).
Generally, this error is due the presence of an incorrect conditional nested sequence ("if/else/end" statements).
The error returns the number of the offending script line.
As first, you should check if you can verify the presence of an incorrect conditional sequence around the reported line.
Hope this helps you.
Generally, this error is due the presence of an incorrect conditional nested sequence ("if/else/end" statements).
The error returns the number of the offending script line.
As first, you should check if you can verify the presence of an incorrect conditional sequence around the reported line.
Hope this helps you.
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
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
Re: Runtime error in setup script
FrancescoT wrote:Currently there is no way to get the offending line (I'll try to forward such request).
Thank you. We use madExcept for error reporting. It gives more detailed information including the call stack to the point where the error occurs.
FrancescoT wrote:As first, you should check if you can verify the presence of an incorrect conditional sequence around the reported line.
It's hard to find out in a script that includes several others. That's why I posted my request to get more than just a number.
When there are incorrect conditional sequences I usually get the error message already during the build.
Since there are only few customers receiving this message, more information about the call in line 329 would be appreciated.
Best regards
pfennig
pfennig
Re: Runtime error in setup script
Your scripts are flattened at build-time.
You could deduce the exact script where the error occurs by manually simulating a "flattening" of your scripts (just pasting all includes into a single monolithic script) and then locating the offending line number in that merged single script (thus identifying the ultimate script and line number where the issue is likely occurring).
Please note that conditional compilation via compiler variables may affect line numbering, too.
You could deduce the exact script where the error occurs by manually simulating a "flattening" of your scripts (just pasting all includes into a single monolithic script) and then locating the offending line number in that merged single script (thus identifying the ultimate script and line number where the issue is likely occurring).
Please note that conditional compilation via compiler variables may affect line numbering, too.
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm
Who is online
Users browsing this forum: No registered users and 25 guests