Results 1 to 4 of 4

Thread: Error 9 - "Cannot find variable" which exists

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Error 9 - "Cannot find variable" which exists

    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
    Attached Images Attached Images  
    Rob Mikkelsen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •