Attempting to get value of undefined variable

Got a problem you cannot solve? Try here.
Post Reply
stuartcrocker
Posts: 5
Joined: Mon Jun 08, 2009 5:03 am
Location: England, UK

Attempting to get value of undefined variable

Post by stuartcrocker »

All,

I'm having a problem when running our installaware implementation on virtual machines.

If the VM has a machine name greater than 8 characters in length the following error message is thrown during file install process of the installer:

Runtime error in setup script:

Line 267: Attempting to get value of undefined variable INSTALL_SERVER

INSTALL_SERVER is a boolean variable that is given that value of whether a component of the installer is selected for install or not. If the user has selected to install this component INSTALL_SERVER should be set to true. I've traced through the setup and it is correctly given the value if the component is selected and this can be seen on the VM because the variable is used in some decision making as to whether or not some UI should be shown.

When the variable is created it is not assigned a value. This could potentially be the problem however as this issue only ever happens on VMs with machine names longer than 8 characters (we have physical hardware with machine names longer than 8 characters on which this behaviour isn't found) I don't think it is the root cause of the problem.

I'd appreciate any help or pointed to a statement somewhere that this is a known limitation of InstallAware 7.

Thanks
Stu
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

You should use the persistent flag in Set Variable.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
stuartcrocker
Posts: 5
Joined: Mon Jun 08, 2009 5:03 am
Location: England, UK

Post by stuartcrocker »

Thanks for the quick response Michael.

Through what scope is the variable persisted? Is it for the life of the installation or is it persisted outside of the current session for use at some other time?

Have you any idea why this is linked to the 8 character VM name?

Thanks,
Stu
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

This ought to have nothing to do with the VM name. Please read the help file for further details on persistent variables.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply