NewsArchive
07-13-2010, 01:35 AM
Hi Friedrich,
I'm really happy, that you give such a good support. This time, I have a
mystery thing, I don't understand, but I'm sure, you can help.
It's important, because it stops us from releasing a fix. I just added a
few lines of log writing and reimplement move files my own in script
(for the disappearing file problem - you know...) and now, my script
does something really crazy.
Here is a snippet form my movefiles.sbi:
==================== S N I P ==========================================
#include script "importsbhelperdll.sbi" from "[_PATH_INCLUDESCRIPTS]"
#set compiler variable [MOVEFILES_SOURCE] = "" [Custom Configuration]
Set Variable %VAL1% to "[MOVEFILES_SOURCE]"
#set compiler variable [MOVEFILES_TARGET] = "" [Custom Configuration]
Set Variable %VAL2% to "[MOVEFILES_TARGET]"
#set compiler variable [MOVEFILES_OVERWRITE] = "$FALSE$" [Custom
Configuration]
Set Variable %VAL3% to "[MOVEFILES_OVERWRITE]"
#include script "namespacestart.sbi" from "[_PATH_INCLUDESCRIPTS]"
[Custom Configuration]
Set Variable %[L]SOURCE% to "%VAL1%"
Set Variable %[L]TARGET% to "%VAL2%"
Set Variable %[L]OVERWRITE% to "%VAL3%"
! Define Variables
Set Variable %[L]_FILELIST% to ""
Set Variable %[L]_FILECOUNT% to ""
Set Variable %[L]_SOURCEFILE% to ""
Set Variable %[L]_SOURCEFOLDER% to ""
Set Variable %[L]_FILENAME% to ""
Set Variable %[L]_TARGETFILE% to ""
Set Variable %[L]_KERNEL32DLL% to ""
Set Variable %[L]_REMOVEOLDFILE% to ""
Set Variable %[L]_TEMPFILENAME% to ""
Set Variable %[L]_TEMPTEXT% to ""
Set Variable %[L]_BUFFERSIZE% to ""
Set Variable %[L]TARGET% to FUNCTION:Rslash(%[L]TARGET%)
Set Variable %[L]TARGET% to "%[L]TARGET%\"
Set Variable %[L]_SOURCEFOLDER% to FUNCTION:Extract Full Folder(%[L]SOURCE%)
Set Variable %[L]_SOURCEFOLDER% to FUNCTION:Rslash(%[L]_SOURCEFOLDER%)
Set Variable %[L]_SOURCEFOLDER% to "%[L]_SOURCEFOLDER%\"
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
Set Variable %[L]_BUFFERSIZE% to "$_BUFFERSIZE$"
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
Display Message Box "! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! !
!..." -- ""
#msg "! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! ! ! ! ! ! !"
Call DLL "%HANDLE_SBHELPERDLL%" -- Function "iFindFileFirst"
(*STRING,*STRING,*LONG) (%[L]SOURCE%,%[L]_FILENAME%,%[L]_BUFFERSIZE%)
==================== S N I P ==========================================
and here is a snippet of the importsbhelperdll.sbi
==================== S N I P ==========================================
#def IMPORTSBHELPERDLL = Increment by "1"
#ifdef IMPORTSBHELPERDLL Equals "1" Then
#include script "IncludeSupportFileInBin.sbi" from
"[_PATH_INCLUDESCRIPTS]" [Custom Configuration]
/* Set Variable %HANDLE_SBHELPERDLL% to FUNCTION:Load
DLL("%TMPDIR%\sbhelper.dll") */
#msg "! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! ! ! ! !"
Display Message Box "! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! !
!..." -- ""
Set Variable %HANDLE_SBHELPERDLL% to FUNCTION:Load DLL("C:\sbhelper.dll")
If %_SB_ERRORCODE% Equals "0" Then
#include script "erroroccured.sbi" from "[_PATH_INCLUDESCRIPTS]"
[Custom Configuration]
End
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
#end
==================== S N I P ==========================================
and now, a snippte of my compileroutput.txt:
==================== S N I P ==========================================
==================== S N I P ==========================================
------ Build started: Project: DBUpdater.sb7, Configuration: Release
Win32 ------
------ SetupBuilder (tm) Project Script Compiler and Linker for Windows
------ Copyright (c) 1997-2010 Lindersoft
------ SetupScript (tm) Installation Script Language
------ Copyright (c) 2003-2010 Lindersoft
------ All rights reserved.
------ Developer Edition Version 7.2.3015
------ SetupBuilder EXE (SBEXE) Compiler Version: 7.2.3015
Release Type: AIDA5
Init Globals...
..
..
..
Continue (0:17:369): C:\Aidawin\Setup\Scripts\080_DBUpdater\DBUpdater.s b7
Recursive compile (0:369): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
movefiles.sbi
Recursive compile (1:21):
C:\Aidawin\Setup\Scripts\Include\importsbhelperdll .sbi
importsbhelperdll.sbi
Recursive compile (2:30):
C:\Aidawin\Setup\Scripts\Include\IncludeSupportFil eInBin.sbi
includesupportfileinbin.sbi
Continue (2:19:31): C:\Aidawin\Setup\Scripts\Include\importsbhelperdll .sbi
[! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! ! ! ! !]
Recursive compile (2:35): C:\Aidawin\Setup\Scripts\Include\erroroccured.sbi
erroroccured.sbi
Recursive compile (3:28):
C:\Aidawin\Setup\Scripts\Include\namespacestart.sb i
namespacestart.sbi
..
..
..
[* * * Stelle Namespace wieder her MOVEFILES - 2]
Continue (2:12:83): C:\Aidawin\Setup\Scripts\Include\writelog.sbi
Continue (1:18:63): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
[! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! ! ! ! ! ! !]
Recursive compile (1:66): C:\Aidawin\Setup\Scripts\Include\erroroccured.sbi
erroroccured.sbi
Recursive compile (2:28):
C:\Aidawin\Setup\Scripts\Include\namespacestart.sb i
namespacestart.sbi
[* * * Rette Namespace MOVEFILES - 2]
[* * * Starte Namespace ERROROCCURED]
..
..
..
Continue (1:18:141): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
Continue (0:18:377): C:\Aidawin\Setup\Scripts\080_DBUpdater\DBUpdater.s b7
Script(s) processed
Generating Code...
Finished generating code
Building executable...
Approx. Stub size: 63,793 bytes
Linking kernel...
Code size: 132,677 bytes
Generating and optimizing [1031] string resources [@2]...
Linking [1031] language resource(s)...
Code size: 4,301 bytes
Linking dialog side bitmap...
Code size: 33,174 bytes
Linking dialog top bitmap...
Code size: 1,320 bytes
Including 1 service file(s)...
Compressing service file: C:\Program Files (x86)\Lindersoft\SetupBuilder
7 Developer\bin32\0001.lib
Code size: 936 bytes
Calculating Feature and Type sizes...
Resolving compiler variables...
Analyzing installation script (protection mode)...
Linking installation script...
Code size: 51,248 bytes
Linking loader...
Inject main setup icon... C:\AidaWin\Setup\SupportFiles\aidaicon.ico
Compile Version Resource...
Adding VERSIONINFO:LangID 0407
Code size: 55,296 bytes
Linking decompression library...
Code size: 9,387 bytes
Adding Digital Certificate...
Code signed successfully
--------------------------------------- Done
---------------------------------------
DBUpdater.sb7 - DBUpdater V05.16.16.10272.exe - 0 error(s), 0 warning(s)
Total file(s) : 144
Total data size: 117,240,941 bytes (111.81 MB)
Total .exe size: 14,643,088 bytes (13.96 MB)
Location: C:\Aidawin\Setup\Scripts\TempOut\DBUpdater V05.16.16.10272.exe
Compilation Time: 244.25 sec.
Date/Time: 7/12/2010 -- 6:36:36PM
------------------------------- Compilation finished
-------------------------------
Processing post compilation tasks...
Copying (wildcard)... C:\Aidawin\Setup\Scripts\TempOut\*.* to
C:\AidaWin\Setup\Out\
OK
--------------------------------------- Done
---------------------------------------
==================== S N I P ==========================================
As you can see in the compiler output, the "LADE SBHELPERDLL" comes
before "VERWENDE SBHELPERDLL".
But if I execute this. "LADE SBHELPERDLL" will never seen. This causes
the call after "VERWENDE SBHELPERDLL" to crash.
What can I do to find the problem. I'm trying since friday and can't
find the reason or a solution.
Thanks in advance.
Markus
I'm really happy, that you give such a good support. This time, I have a
mystery thing, I don't understand, but I'm sure, you can help.
It's important, because it stops us from releasing a fix. I just added a
few lines of log writing and reimplement move files my own in script
(for the disappearing file problem - you know...) and now, my script
does something really crazy.
Here is a snippet form my movefiles.sbi:
==================== S N I P ==========================================
#include script "importsbhelperdll.sbi" from "[_PATH_INCLUDESCRIPTS]"
#set compiler variable [MOVEFILES_SOURCE] = "" [Custom Configuration]
Set Variable %VAL1% to "[MOVEFILES_SOURCE]"
#set compiler variable [MOVEFILES_TARGET] = "" [Custom Configuration]
Set Variable %VAL2% to "[MOVEFILES_TARGET]"
#set compiler variable [MOVEFILES_OVERWRITE] = "$FALSE$" [Custom
Configuration]
Set Variable %VAL3% to "[MOVEFILES_OVERWRITE]"
#include script "namespacestart.sbi" from "[_PATH_INCLUDESCRIPTS]"
[Custom Configuration]
Set Variable %[L]SOURCE% to "%VAL1%"
Set Variable %[L]TARGET% to "%VAL2%"
Set Variable %[L]OVERWRITE% to "%VAL3%"
! Define Variables
Set Variable %[L]_FILELIST% to ""
Set Variable %[L]_FILECOUNT% to ""
Set Variable %[L]_SOURCEFILE% to ""
Set Variable %[L]_SOURCEFOLDER% to ""
Set Variable %[L]_FILENAME% to ""
Set Variable %[L]_TARGETFILE% to ""
Set Variable %[L]_KERNEL32DLL% to ""
Set Variable %[L]_REMOVEOLDFILE% to ""
Set Variable %[L]_TEMPFILENAME% to ""
Set Variable %[L]_TEMPTEXT% to ""
Set Variable %[L]_BUFFERSIZE% to ""
Set Variable %[L]TARGET% to FUNCTION:Rslash(%[L]TARGET%)
Set Variable %[L]TARGET% to "%[L]TARGET%\"
Set Variable %[L]_SOURCEFOLDER% to FUNCTION:Extract Full Folder(%[L]SOURCE%)
Set Variable %[L]_SOURCEFOLDER% to FUNCTION:Rslash(%[L]_SOURCEFOLDER%)
Set Variable %[L]_SOURCEFOLDER% to "%[L]_SOURCEFOLDER%\"
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
Set Variable %[L]_BUFFERSIZE% to "$_BUFFERSIZE$"
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
Display Message Box "! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! !
!..." -- ""
#msg "! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! ! ! ! ! ! !"
Call DLL "%HANDLE_SBHELPERDLL%" -- Function "iFindFileFirst"
(*STRING,*STRING,*LONG) (%[L]SOURCE%,%[L]_FILENAME%,%[L]_BUFFERSIZE%)
==================== S N I P ==========================================
and here is a snippet of the importsbhelperdll.sbi
==================== S N I P ==========================================
#def IMPORTSBHELPERDLL = Increment by "1"
#ifdef IMPORTSBHELPERDLL Equals "1" Then
#include script "IncludeSupportFileInBin.sbi" from
"[_PATH_INCLUDESCRIPTS]" [Custom Configuration]
/* Set Variable %HANDLE_SBHELPERDLL% to FUNCTION:Load
DLL("%TMPDIR%\sbhelper.dll") */
#msg "! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! ! ! ! !"
Display Message Box "! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! !
!..." -- ""
Set Variable %HANDLE_SBHELPERDLL% to FUNCTION:Load DLL("C:\sbhelper.dll")
If %_SB_ERRORCODE% Equals "0" Then
#include script "erroroccured.sbi" from "[_PATH_INCLUDESCRIPTS]"
[Custom Configuration]
End
#include script "writelog.sbi" from "[_PATH_INCLUDESCRIPTS]" [Custom
Configuration]
#end
==================== S N I P ==========================================
and now, a snippte of my compileroutput.txt:
==================== S N I P ==========================================
==================== S N I P ==========================================
------ Build started: Project: DBUpdater.sb7, Configuration: Release
Win32 ------
------ SetupBuilder (tm) Project Script Compiler and Linker for Windows
------ Copyright (c) 1997-2010 Lindersoft
------ SetupScript (tm) Installation Script Language
------ Copyright (c) 2003-2010 Lindersoft
------ All rights reserved.
------ Developer Edition Version 7.2.3015
------ SetupBuilder EXE (SBEXE) Compiler Version: 7.2.3015
Release Type: AIDA5
Init Globals...
..
..
..
Continue (0:17:369): C:\Aidawin\Setup\Scripts\080_DBUpdater\DBUpdater.s b7
Recursive compile (0:369): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
movefiles.sbi
Recursive compile (1:21):
C:\Aidawin\Setup\Scripts\Include\importsbhelperdll .sbi
importsbhelperdll.sbi
Recursive compile (2:30):
C:\Aidawin\Setup\Scripts\Include\IncludeSupportFil eInBin.sbi
includesupportfileinbin.sbi
Continue (2:19:31): C:\Aidawin\Setup\Scripts\Include\importsbhelperdll .sbi
[! ! ! ! ! ! ! ! ! ! ! LADE SBHELPERDLL ! ! ! ! ! ! ! !]
Recursive compile (2:35): C:\Aidawin\Setup\Scripts\Include\erroroccured.sbi
erroroccured.sbi
Recursive compile (3:28):
C:\Aidawin\Setup\Scripts\Include\namespacestart.sb i
namespacestart.sbi
..
..
..
[* * * Stelle Namespace wieder her MOVEFILES - 2]
Continue (2:12:83): C:\Aidawin\Setup\Scripts\Include\writelog.sbi
Continue (1:18:63): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
[! ! ! ! ! ! ! ! ! ! ! VERWENDE SBHELPERDLL ! ! ! ! ! ! ! !]
Recursive compile (1:66): C:\Aidawin\Setup\Scripts\Include\erroroccured.sbi
erroroccured.sbi
Recursive compile (2:28):
C:\Aidawin\Setup\Scripts\Include\namespacestart.sb i
namespacestart.sbi
[* * * Rette Namespace MOVEFILES - 2]
[* * * Starte Namespace ERROROCCURED]
..
..
..
Continue (1:18:141): C:\Aidawin\Setup\Scripts\Include\movefiles.sbi
Continue (0:18:377): C:\Aidawin\Setup\Scripts\080_DBUpdater\DBUpdater.s b7
Script(s) processed
Generating Code...
Finished generating code
Building executable...
Approx. Stub size: 63,793 bytes
Linking kernel...
Code size: 132,677 bytes
Generating and optimizing [1031] string resources [@2]...
Linking [1031] language resource(s)...
Code size: 4,301 bytes
Linking dialog side bitmap...
Code size: 33,174 bytes
Linking dialog top bitmap...
Code size: 1,320 bytes
Including 1 service file(s)...
Compressing service file: C:\Program Files (x86)\Lindersoft\SetupBuilder
7 Developer\bin32\0001.lib
Code size: 936 bytes
Calculating Feature and Type sizes...
Resolving compiler variables...
Analyzing installation script (protection mode)...
Linking installation script...
Code size: 51,248 bytes
Linking loader...
Inject main setup icon... C:\AidaWin\Setup\SupportFiles\aidaicon.ico
Compile Version Resource...
Adding VERSIONINFO:LangID 0407
Code size: 55,296 bytes
Linking decompression library...
Code size: 9,387 bytes
Adding Digital Certificate...
Code signed successfully
--------------------------------------- Done
---------------------------------------
DBUpdater.sb7 - DBUpdater V05.16.16.10272.exe - 0 error(s), 0 warning(s)
Total file(s) : 144
Total data size: 117,240,941 bytes (111.81 MB)
Total .exe size: 14,643,088 bytes (13.96 MB)
Location: C:\Aidawin\Setup\Scripts\TempOut\DBUpdater V05.16.16.10272.exe
Compilation Time: 244.25 sec.
Date/Time: 7/12/2010 -- 6:36:36PM
------------------------------- Compilation finished
-------------------------------
Processing post compilation tasks...
Copying (wildcard)... C:\Aidawin\Setup\Scripts\TempOut\*.* to
C:\AidaWin\Setup\Out\
OK
--------------------------------------- Done
---------------------------------------
==================== S N I P ==========================================
As you can see in the compiler output, the "LADE SBHELPERDLL" comes
before "VERWENDE SBHELPERDLL".
But if I execute this. "LADE SBHELPERDLL" will never seen. This causes
the call after "VERWENDE SBHELPERDLL" to crash.
What can I do to find the problem. I'm trying since friday and can't
find the reason or a solution.
Thanks in advance.
Markus