Page 1 of 1

Runtime error: Attempting to get a value of undef. var.

Posted: Tue Jan 30, 2007 9:22 am
by andrejzr
In my installer, I get the error:
- Runtime error in install: Attempting to get value of undefined variable.

The strange thing is, that the error is displayed after the script calls "Terminate Install" command.

Do you have any hint, where could be the problem? I am using some persistant variables in the script - it shouldn't make any difference, but this is the only thing that I thought could be related to the issue (since installer is saving persistant variables after closing.

Best regards
Andrej.

Posted: Tue Jan 30, 2007 10:59 pm
by MichaelNesmith
The timing seems strange!

Did you try running the script in the debugger to see what happens there?

Posted: Wed Jan 31, 2007 2:51 am
by andrejzr
Hello,

I agree - timing is really strange.

I did check with debugger, and it showed me that the error is displayed after calling "Terminate Install" - after this the install should just terminate, but instead it shows the error.

Regards
Andrej

Posted: Wed Jan 31, 2007 1:00 pm
by MichaelNesmith
Got a minimum script to reproduce this error?

Posted: Fri Feb 02, 2007 5:59 am
by andrejzr
Hello,

I upgraded IA to 6.22, and first tests show that the issue might be resolved with this version.

When I checked the release notes, I suspect the following bugfix to be involved in the issue:

* Using the special variable $NEWLINE$ inside values of persistent variables caused loss of saved setup information during restart of setup. These persistent variables are now safely saved.

I had a persistent variable with $NEWLINE$ in the value.


Regards
Andrej