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

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

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

Postby andrejzr » Tue Jan 30, 2007 9:22 am

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:

Postby MichaelNesmith » Tue Jan 30, 2007 10:59 pm

The timing seems strange!

Did you try running the script in the debugger to see what happens there?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

Postby andrejzr » Wed Jan 31, 2007 2:51 am

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:

Postby MichaelNesmith » Wed Jan 31, 2007 1:00 pm

Got a minimum script to reproduce this error?
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

Postby andrejzr » Fri Feb 02, 2007 5:59 am

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


Return to “Technical Support”

Who is online

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