PDA

View Full Version : Build 2884: Compilere Directive #delete file does not resolve complier variable, whic



NewsArchive
02-26-2010, 03:14 AM
Hi Friedrich,

it seems that the Compilere Directive #delete file does not resolve
complier variable, which is defined in an include script.

See the following compiler log and script snippet.

------ Build started: Project: setver.sb7, Configuration: Release Win32 .
..
..
------ Developer Edition Version 7.2.2884
..
..
..
Recursive compile (0:18): C:\AidaWin\Setup\Scripts\Include\AskForVersion.sbi
askforversion.sbi
Deleting... [_FILE_VERSION_INI]
Executing... C:\AidaWin\Setup\InternalOut\AskForVersion.exe
Deleting... [_FILE_VERSION_INI]
Continue (0:2:19): C:\Aidawin\Setup\Scripts\SetVer\setver.sb7
..
..
..
--------------------------------------- Done
---------------------------------------




#ifcompvar [PRODUCTVER] Length Equal To "0" Then
#set compiler variable [_FILE_VERSION_INI] = "[_FOLDER_SETUP]\version.ini"
#delete file "[_FILE_VERSION_INI]"
#run [_FOLDER_INTERNALOUT]\AskForVersion.exe -- Default Folder:
[_FOLDER_INTERNALOUT] -- Options: [Wait]
#get ini("Version") from "[_FILE_VERSION_INI]" into [PRODUCTVER]
#delete file "[_FILE_VERSION_INI]"
#ifcompvar [PRODUCTVER] Equals "-1" Then
#msg "PRODUCTVER not set. Compilation aborted."
#halt(1)
#end
#end



Markus

NewsArchive
02-26-2010, 03:14 AM
Hi Markus,

> it seems that the Compilere Directive #delete file does not resolve
> complier variable, which is defined in an include script.

Fixed!

Thank you,
Friedrich