PDA

View Full Version : Compile Err Msg



NewsArchive
03-17-2007, 10:13 AM
I get this compiler error message:

error GEN1006: Reference to variable %EC6ACTIVE% has not been previously
defined.

This error started when I added these lines to the script to check for a
running instance of my program:

! General
Set Variable %EC6ACTIVE% to "" (also tried #const $EC6ACTIVE$ = "")


Loop
Set Variable %EC6ACTIVE% to ScriptItem->Detect Active
Application(ec60.exe)
If %EC6_ACTIVE% Equals "1" Then
Display Message Box "ENERCALC Structural Engineering Library Version 6
...." -- "Application Currently Running" [non-silent]
Else
Break Loop
End
End

Michael Brooks

NewsArchive
03-17-2007, 10:13 AM
Michael,

I've seen this a few times. Can you define the %EC6ACTIVE% variable near the
beginning of you script, for instance near "! --- Define standard installer
variables ---"? This has solved such problems for me. Also, if the variable is
in one include and the loop in another it might be a problem.

Greg

NewsArchive
03-17-2007, 10:13 AM
Michael,

I see two different variables in your script:

%EC6_ACTIVE% and %EC6ACTIVE%

I think you should change:

Set Variable %EC6ACTIVE% to ScriptItem->Detect Active Application(ec60.exe)

into:

Set Variable %EC6_ACTIVE% to ScriptItem->Detect Active Application(ec60.exe)

because you have:

If %EC6_ACTIVE% Equals "1" Then

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-19-2007, 05:19 AM
Oh I am so embarrased. What a stupid mistake of me.
I was making a lot of changes and was not tghorough enough.

Thank you!

Michael