PDA

View Full Version : Gen1006



NewsArchive
06-21-2012, 12:34 AM
After updating to latest version I suddenly get this:

INKA23010.sb7(951): error GEN1006: Reference to variable %SB_INSTALLDIR% has
not been previously defined.

I haven't touched the script, just re-compiling. Has something changed
without my knowing?

Peter

NewsArchive
06-21-2012, 12:35 AM
Peter,

> After updating to latest version I suddenly get this:
>
> INKA23010.sb7(951): error GEN1006: Reference to variable %SB_INSTALLDIR%
> has not been previously defined.
>
> I haven't touched the script, just re-compiling. Has something changed
> without my knowing?

%SB_INSTALLDIR% should be %_SB_INSTALLDIR% ;-)

Friedrich

NewsArchive
06-21-2012, 12:35 AM
Hi Friedrich,

Yes, that's what it should be. But it wasn't in my registry setting. And I'm
_sure_ because I've just checked some other scripts and they _all_ look like
this:

::Registry Value (REG_SZ) "HKLM\Software\ .... \Path\ (Default)" =
%SB_INSTALLDIR% (Always Install)

I'm puzzled.

Peter

NewsArchive
06-21-2012, 12:36 AM
Hi Peter,

> Yes, that's what it should be. But it wasn't in my registry
> setting. And I'm _sure_ because I've just checked some other
> scripts and they _all_ look like this:
>
> ::Registry Value (REG_SZ) "HKLM\Software\ .... \Path\ (Default)" =
> %SB_INSTALLDIR% (Always Install)
>
> I'm puzzled.

Yes, then you have it wrong in ALL previous scripts and the SetupBuilder
compiler can detect this bug in your script(s) now ;-)

Change it to the correct runtime variable name and you are done.
%SB_INSTALLDIR% is not the correct built-in variable name. It should read
%_SB_INSTALLDIR%

I think the following fix in 7.7 Build 3705 (May 31, 2012) detects the bugs
in your project now:

> FIX : [SB#204102] IDE: The compiler did not detect unreferenced
> variables in "Registry Visualizer..." items.

Does this help?

Friedrich

NewsArchive
06-21-2012, 12:36 AM
> Does this help?

Oh, yes!

Thanks.
Peter

NewsArchive
06-21-2012, 12:36 AM
>> Does this help?
>
> Oh, yes!
>

:-)

Friedrich