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

Got a problem you cannot solve? Try here.
Post Reply
andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

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

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

The timing seems strange!

Did you try running the script in the debugger to see what happens there?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Got a minimum script to reproduce this error?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

Post 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
Post Reply