flashpot
06-11-2008, 10:36 AM
I receive a frequent compiler error (it does not happen all the time, but enough that I cannot deploy the software) indicating [9] cannot find variable %JAVAINSTALLED% A screen clip of the error is attached.
In my script, I have the following code:
Set Variable %JAVAREGISTERED% to FUNCTION:Get INI Value("JavaInstalled") from "%_SB_INSTALLDIR%\CountOps.Ini"
If %PROGRAMFILESDIR%\JAVA\J2RE1.4.2_17 File or Folder exists Then
Set Variable %JAVAINSTALLED% to "1"
Else
Set Variable %JAVAINSTALLED% to "0"
End
If %JAVAINSTALLED% Not Equals "0" Then
Set Variable %INSTALLSHORTCUTS% to "0" [Append Value]
If %JAVAREGISTERED% Equals "0" Then
Set Variable %INSTALLSHORTCUTS% to "1" [Append Value]
Else
Set Variable %INSTALLSHORTCUTS% to "0" [Append Value]
End
Else
Set Variable %INSTALLSHORTCUTS% to "11" [Append Value]
End
Define Wizard Dialog "PROGRAMOPTIONS" (Check Boxes) (%INSTALLSHORTCUTS%) -- Program Shortcuts
Any ideas why the variable is not being set? Is it a reserved word? I have retyped the variable a number of times (with and without the bracketing "%s") to no avail.
I guess the next logical thing to do would be to change the variable to something else...
Thanks!
Rob
In my script, I have the following code:
Set Variable %JAVAREGISTERED% to FUNCTION:Get INI Value("JavaInstalled") from "%_SB_INSTALLDIR%\CountOps.Ini"
If %PROGRAMFILESDIR%\JAVA\J2RE1.4.2_17 File or Folder exists Then
Set Variable %JAVAINSTALLED% to "1"
Else
Set Variable %JAVAINSTALLED% to "0"
End
If %JAVAINSTALLED% Not Equals "0" Then
Set Variable %INSTALLSHORTCUTS% to "0" [Append Value]
If %JAVAREGISTERED% Equals "0" Then
Set Variable %INSTALLSHORTCUTS% to "1" [Append Value]
Else
Set Variable %INSTALLSHORTCUTS% to "0" [Append Value]
End
Else
Set Variable %INSTALLSHORTCUTS% to "11" [Append Value]
End
Define Wizard Dialog "PROGRAMOPTIONS" (Check Boxes) (%INSTALLSHORTCUTS%) -- Program Shortcuts
Any ideas why the variable is not being set? Is it a reserved word? I have retyped the variable a number of times (with and without the bracketing "%s") to no avail.
I guess the next logical thing to do would be to change the variable to something else...
Thanks!
Rob