Variable Not Defined
Posted: Thu Oct 07, 2010 6:48 am
I have two check scripts for prerequisites which I made. One for PowerShell and the other for Java Runtime Environment. They are pretty simple and modeled after IA included scripts. While creating an installer and including these two prerequisites I get "Variable Not Defined". So I created a blank project and just included these two scripts to eliminate the possibility that other scripts were somehow causing the issue.
Both scripts compile with not problem on their own, so each script stands on it's own. If I change the order of the include Lines then the reported missing variable changes.
if the PowerShell check runs first the message is "Variable not defined: JRENEEDINSTALL" and the cursor is on "if Variable PS10_INSTALLED Equals FALSE"
If the JRE check runs first the message is "Variable not defined: PS10_INSTALLED" and the cursor is on "if Variable JRENEEDINSTALL Equals TRUE"
I can package this project is anybody want to take a look. IA checks for missing if > end statements which was my first thought. each script is so short you can see the whole thing in one screen so checking the if > end statements is pretty easy.
I am stumped, it is probably something very easy that I am missing.
Both scripts compile with not problem on their own, so each script stands on it's own. If I change the order of the include Lines then the reported missing variable changes.
if the PowerShell check runs first the message is "Variable not defined: JRENEEDINSTALL" and the cursor is on "if Variable PS10_INSTALLED Equals FALSE"
If the JRE check runs first the message is "Variable not defined: PS10_INSTALLED" and the cursor is on "if Variable JRENEEDINSTALL Equals TRUE"
I can package this project is anybody want to take a look. IA checks for missing if > end statements which was my first thought. each script is so short you can see the whole thing in one screen so checking the if > end statements is pretty easy.
I am stumped, it is probably something very easy that I am missing.