PDA

View Full Version : Wrong value in a variable



NewsArchive
02-02-2010, 01:40 AM
Hi Friedrich,

I've found an suspect behaviour. Look at this code snippet:

===================
Set Variable %DLLFILE% to "%TMPDIR%\IsupBtrL.dll"
Text File: Insert Line "0" to "%LOGFILE%" -- Lade %DLLFILE%
Set Variable %ISUPBTRDLLHANDLE% to FUNCTION:Load DLL("%DLLFILE%")
Text File: Insert Line "0" to "%LOGFILE%" -- Fertig. Handle =
%_SB_ERRORCODE%)

Set Variable %AIDAREGISTRY% to ""
Set Variable %AIDAREGISTRY% to FUNCTION:Get Registry SubKey("0") from
"HKEY_LOCAL_MACHINE\SOFTWARE\Aida Orga"
Set Variable %ISCLIENT% to FUNCTION:Get Registry Key Value("isClient")
from "HKEY_LOCAL_MACHINE\SOFTWARE\Aida Orga"
If %AIDAREGISTRY% Greater Than "0" And %ISCLIENT% Does Not Equal (Ignore
Case) "Yes" Then
Text File: Insert Line "0" to "%LOGFILE%" -- Teile einer
AIDA-Installation gefunden. Weise Nutzer darauf hin und beende Setup.
AIDAREGISTRY = %AIDAREGISTRY%; isClient = %ISCLIENT%; ErrorCode =
%_SB_ERRORCODE%
Display Message Box "Auf diesem Rechner scheint bereits eine
AIDA-Insta..." -- "AIDA bereits vorhanden"
Exit Installation(0)
End
===================



And now look at this logfile snippet:
===================
Lade
C:\Users\Orga1\AppData\Local\Temp\c7356070-ae7c-11de-4823-002be5f90029\IsupBtrL.dll
Fertig. Handle = 71892992)
Teile einer AIDA-Installation gefunden. Weise Nutzer darauf hin und
beende Setup. AIDAREGISTRY = 71892992; isClient = No; ErrorCode = 0
===================


Th registry Key "HKLM\Software\Aida Orga" does not exist. So I expect,
that AIDAREGISTRY is "0", but it contains the PREVIOUS value of the
%_SB_ERRORCODE% variable. This doesn't happen every time on every
machine, but at the moment, I have a virtual machine, which produces the
error constantly.

Here are some informations about the machine:
Starte Client-Installation AIDA Client; PVSW V10.0 (2010-02-01T11:53:12)
aus Ordner "\\192.168.20.223\aida6\Client".
Datum = 20091001 Uhrzeit = 125248
Commandline:
Computer name: WIN-6DBM3GV7HAG
Machine GUID: a6e63dad-2771-428f-9523-514fbe6162b9
Java-Version: 1.6
Speicherausbau: 7166 MByte
Speicherauslastung: 3583 MByte (50 Prozent)
Prozessor: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Taktfrequenz: 2400 MHz
registrierte Firma: Microsoft
registrierter Nutzer: Microsoft
Nutzerkontext: Administrator
VMWare-Flag: 0
MS Virtual PC-Flag: 0
Windows-Version: 6.1 SP 0
ISWOW64 = 1

Do you have an idea, what is goiung wrong?

Thanks in advance.

Markus

NewsArchive
02-02-2010, 01:41 AM
Hi Markus,

>
> Do you have an idea, what is goiung wrong?
>

We can reproduce this behavior. This problem occurs because memory is not
correctly freed in this specific case :-(

The SetupBuilder 7.1 install images were ready to ship, but this is a major
issue so we'll update the installs with a new SB71 runtime.

We'll make the new SetupBuilder 7.1 available within the next 24 hours.

Very good finding. Thank you for bringing this to our attention!

Friedrich

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

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner