IPB

 
 
> WinBuilder 075 beta, Release notes
 
 psc
post Jul 13 2008, 08:06 AM
Post #1


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[Beta 1]

History

- Added - Version number next to script description
- Fix bug #32 (Retreive cmd)
- Fix bug with RegRead MULTI_SZ
- Implementation of REG_NONE
- Log generation accelerated; Fix of 'truncated log lines'
- Add Generation of API format lines to 'Convert from BartPE'
- Separate unit 'ConvertBart'
- ConvertBart now can handle most 'standard' app scripts including a start menu enty extracted from nu2menu???.xml
- New unit nu2menu
- Fix bug #7 with Access violation on double click
- Fix bug in StrFormat: Now last parameter can be %variable%
- Add string functions RTrim, LTrim, CTRim, Left, Mid, Right to StrFormat
- Fix bug in If,ExistSection and If,NotExistSection
- New enhanced variables handling
- Add If,ExistVar and If,NotExistVar
- Add Else command
- RegWrite,0x4 now accepts four binary hex bytes in addition to DWORD
- Unload open hive after clicking the stop button
- STOP button now works also during Exec command
- Fix bug in RegRead 0x3
- Accelerated creation of log HTMLs

Main features:
Building a PE needs about a third of the time used in last versions
Building a log HTML needs about a quarter of the time used in last versions

Script Command Changes:

- System,RefreshVars:
Obsolete. The results of this command are now included in the new variables handling.
If you still use the command, you will get an warning message.
But this warning is just a message. The resulting project will work.
- System,RebuildVars: New. In the current LiveXP scripts it seems to be not needed. It is necessary in this case:
Set,%First%,first
Set,%Result%,"Here is %first%"
Echo,Value of #$pResult#$p is: %Result% >> Here is first
Set,%First%,second
Echo,Value of #$pResult#$p is: %Result% >> Here is first
System,RebuildVars
Echo,Value of #$pResult#$p is: %Result% >> Here is second

- StrFormat
- All functions now accept either dedicated values (usually integers) or variables
- new string processing commands:
rtrim
ltrim
ctrim
left
right
mid

- If additions:
If,ExistVar,%Var%,Command
If,NotExistVar,%Var%,Command
Else,Command
Go to the top of the page
 
 
 psc
post Jul 13 2008, 08:07 AM
Post #2


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[Beta 2]

- Fixed bug in script macro resolving
- Add 'variable names can contain variables'
- Some cosmetics in log.html generation
- Multiple 'Else,If' possible
- Add 'Loop' statement
- Add %ExitCode% for ShellExecute
- Add System,Cursor,Wait / Normal
- InfConvert complete (?)
- Expand Echo,Message to optional Echo,Message[,Warn]
- GUI editor fixes
-- show greyed scrollbars area
-- fix bug with disappearing or moving components
-- fix bug with overwritten component, if wrong order
- Fixed bug in RegGetNext
- Removed If,License and If,NotLicense commands
- CopyOrExpand now works in W2000 host, too

*********************

'variable names can contain variables'
[Process]
Set,%index%,3
Set,%Root%,MyVar
Set,%%root%_%index%%,hallo
Echo,%myvar_3%
Echoes 'Hallo'

*********************

Multiple 'Else,If':
[Process]
If,1,Equal,5,Echo,1
Else,If,2,Equal,5,Echo,2
Else,If,3,Equal,5,Echo,3
Else,If,4,Equal,5,Echo,4
Else,If,5,Equal,5,Echo,5
Else,If,6,Equal,5,Echo,6
Else,If,7,Equal,5,Echo,7
Echoes '5'

*********************

Loop statement sample:
The code searches from oem1.inf to oem100.inf files for a certain key.
If it is found, the file name is set as result and the loop ends.

[Process]
Set,%Result%,?
Loop,%ScriptFile%,Try-OEM,1,100,SourceDisksFiles,VBoxUSB.sys
Echo,%Result%

[Try-OEM]
Set,%file%,C:\Windows\inf\oem#c.inf
If,ExistFile,%file%,IniRead,%file%,#1,#2,%Var%
If,-%var%,NotEqual,-,Set,%Result%,%file%
If,%Result%,NotEqual,?,Loop,Break

*********************

InfConvert:
Some .infs can be run w/o doing anything.
But some of the .infs require values WinBuilder cannot know. They have to be provided in variables:
(Maybe only one or a few variables are needed for a individual script)
In addition some .infs need Sherpya's RegExpander installed to the PE

[Variables]
%source_Build%=2600 ; XP > 2600 W2003 > 3790
%spFile%=SP2.cab ; highest service pack cab name
%drFile%=driver.cab ; driver cab name
%LocProgNam%=Programme ; localised 'programs' directory name
%LocProgSM%=Programme : localised (start menu) 'programs' directory name
%target_Lng%=German ; BartPE @language@

nativeEx based projects use the InfSupport.Script
Other projects must define the variables individually.

WinBuilder generates code to check, whether the necessary conditions are fullfilled.
Sample:
[Process]
If,ExistFile,%ProjectDir%\infconvert.ini,AddVariables,%ProjectDir%\infconvert.ini,variables
If,NotExistVar,%LocProgSM%,Exit,"You must define %LocProgSM% to use this plugin!"
If,NotExistVar,%LocProgNam%,Exit,"You must define %LocProgNam% to use this plugin!"
If,NotExistVar,%source_Build%,Exit,"You must define %source_Build% to use this plugin!"

Some .inf items cannot be converted.
Currently known:
@GetFolderDialog and @SetEnvVar in Nu2Menu.xml files
Here an abort code is generated:
Halt,@GetFolderDialog or @SetEnvVar cannot be converted.

**********************************

Removed If,License and If,NotLicense commands:
Currently there is no 'official' script containing the command.
Go to the top of the page
 
 
 psc
post Jul 13 2008, 08:08 AM
Post #3


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[Beta 3]

added - begin/end for If and Else commands
fixed - attachement context menu
fixed - multiple anchors in log
added - stepping through selected scripts
fixed - WebGet bug with redirection

********************************
begin/end for If and Else commands:
Sample:

[Variables]
%var%=2

[process]
If,%var%,Equal,2,begin
Echo,2-0
Echo,2-1
Echo,2-2
end
Else,begin
Echo,a-0
Echo,a-1
Echo,a-2
end
If,%var%,Equal,3,begin
Echo,3-0
Echo,3-1
Echo,3-2
end
Else,begin
Echo,x-0
Echo,x-1
Echo,x-2
end
Echo,"All Done"

Result:
[Success] IF - [(%var%)2] is equal to: [2] executing command: [begin]
[Info] 2-0
[Info] 2-1
[Info] 2-2
[Success] [end]
[Ignore] ELSE - [begin]
[Ignore] [Echo,a-0]
[Ignore] [Echo,a-1]
[Ignore] [Echo,a-2]
[Ignore] [end]
[Ignore] IF - [(%var%)2] is not equal to: [3] evaluated string: [If,%var%,Equal,3,begin]
[Ignore] [Echo,3-0]
[Ignore] [Echo,3-1]
[Ignore] [Echo,3-2]
[Ignore] [end]
[Success] ELSE - executing command: [begin]
[Info] x-0
[Info] x-1
[Info] x-2
[Success] [end]
[Info] All Done
Go to the top of the page
 
 
 psc
post Jul 13 2008, 08:09 AM
Post #4


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[075] beta 4

modified - log button will always be displayed when using codebox
fixed - Else,Set,%var%,xxx bug
added - output of localized strings
added - StrFormat,Ceil and StrFormat,Floor
fixed - Some (WB 75 new) issues fixed with spaces in the %BaseDir% name
added - folder linking (link to script folder trees of a different project)
added - Retrieve,FileVersion command
fixed - bug in FileByteExtract (popup error if sequence not found)
fixed - project tree bug with deselect on collapsing
added - WBZip by booty#1 as standard de/encoding
added - System,GetFreeDrive command
fixed - RegImport bug
fixed - interface bug with unshown labels
added - System,ErrorOff command
added - Webget of FTP:// URLs


***********************
output of localized strings

all strings defined in the language files can be used like variables,
identified by their ID number $#nnnn.

Sample:

If,Question,$#1541?,Command

If language is default (English) the appearing question dialog box shows:
'Save changes to disk?'

In case of German language choosen it would show:
'Änderungen auf Platte schreiben?'

The question mark is part of the TEXT, not part of the ID!

****************
StrFormat,Ceil and StrFormat,Floor

StrFormat,Ceil,%var%,size
StrFormat,Floor,%var%,size

size can be
- number e.g. 512
- character k meaning 1024
- character m meaning 1024 * 1024

*****************
Retrieve,FileVersion command

Retrieve,FileVersion,%var%

Fills %var% with the file version string, as it can be seen by viewing the file's properties

*************************

System,GetFreeDrive command

System,GetFreeDrive,%var%

fills %var% with the highest available free drive letter, mostly 'Z:'

***********************

System,ErrorOff command

If the immediatelly following command fails, it is flagged in the log as 'ignored' rather than as 'Failed'
Go to the top of the page
 
 
 psc
post Jul 13 2008, 08:10 AM
Post #5


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[075] beta 5

fixed - double 'beta' in form caption
fixed - unsaved change of download server constellation
fixed - default.txt is missing
fixed - 'Index out of bounds' when last download server is deleted
fixed - 'feature' how to remove custom program logo
*** preview as beta 4 a
fixed - some smaller issues with download servers
fixed - ExtractAndRun bug
fixed - internal variables like %scriptDir% can contain commas
added - 'Stop Build on Error' option
fixed - senceless 'v.' in progress window
*** preview as beta 4 b
fixed - sort order bug with mapped folders
fixed - ShellExecuteEx bug when opening documents by associated app
added - Option to name log.html with additional time stamp
added - Option to build log.html immediatelly after build w/o user interaction
*** preview as beta 4 c
fixed - Bug with If,(NOT)EXISTFILE/DIR checking empty floppy drive
added - Loop statement can run between characters, e.g. drive letters
added - Strformat,INC and Strformat,DEC also work on characters
modified - nicer output in log.html
*** preview as beta 4 d
fixed - bug with file type associations
fixed - Convert tool - wrong popup menu
added - Convert tool - remove file from list
added - suggestion how to have certain scripts be selected mandatory
*** preview as beta 4 e
added - RegDelete of values
added - 'Not' option to If command
*** preview as beta 4 f
added - StrFormat can extract path, filename and extentions from URLs
*** preview as beta 4 g
fixed - bug in 'Exit on Error' when extracting files
*** preview as beta 4 h
fixed - Minor code changes and corrections to clean the hint & warnings reported on compile time
fixed - bug 'system error occurs' in clicking log treeview
fixed - newly added web servers for download are not tracked in WinBuilder.ini
*** preview as beta 4 i
fixed - bug when running script from source editor
fixed - delete temporary files after extracting an attachement
added - optional automatic log after clicking the STOP button
*** preview as beta 4 j
fixed - wrong parent's node check marks when selecting with space bar
changed - RegDelete syntax
*** preview as beta 4 k
changed - starting to clean up language support
changed - remove 'charset' from log.html meta content tag
fixed - finally(?) wrong parent's node check marks when selecting with space bar
*** preview as beta 4 l
### some consolidation with respect to next beta release
removed - 'STOP' in interface editor when using themes other than XDP-classic
removed - 'protected' functionality
added - about 30 items to language translation
removed - new RegDelete syntax, temporarily use old syntax (see magic wand)
*** preview as beta 4 m
changed - new RegDelete syntax again
fixed - some smaller GUI adjustements
added - some more items to language translation
added - System,ERROROFF can get number of lines as optional argument
*** preview as beta 4 n
added - files to be converted can be Drag&Drop-ed from explorer
added - files to be attached can be Drag&Drop-ed from explorer
added - If,ExistRegSection and If,ExistRegKey
added - proxy support
added - 'mandatory scripts' functionality (replaces removed Protect functionality)
cleaned - internal If command logic
*** preview as beta 4 o
changed - WinBuilder always runs in CPU #0 only, also on multiprocessor and multicore systems
added - internal variables %ProjectTitle% and %ScriptTitle%
added - basic raw registry editor support
*** preview as beta 4 p
fixed - script was not shown if there was a folder with a name equal to the script's title
*** preview as beta 4 q
fixed - enable RegRead of expandable strings 0x2
fixed - decode macro names only as first argument
fixed - store changed text in a filebox
added - Show Progress Window also when processing codebox ot buttons.
added - several smaller adjustements
added - autosave option for source code editor
*** preview as beta 4 r
fixed - Changing source folder to a folder already on list
changed - parameter stack added for 'Run' and 'Loop' statements
fixed - bug occurring when a line contained a non-variable '%'
*** preview as beta 4 s
fixed - bug in If,QUESTION with space inside question
fixed - 'Use Path Rule' now unchecked by default
changed - some smaller corrections
*** preview as beta 4 t
changed - now nested 'begin' - 'end' is possible. 'begin' stack added
changed - no flushing window on missing source
changed - dont show scripts of 0 bytes size
*** preview as beta 4 u
fixed - bug in System,GETFREEDRIVE
fixed - bug in previous / next selected: Changes were lost
*** preview as beta 4 v
fixed - bug in macro expanding
*** preview as beta 4 w


********************
Loop statement can run between characters, e.g. drive letters

Sample:

[variables]
%a_searchFile%=Program Files\BootStick_2008_001\Pstart.exe

[process]
Loop,%ScriptFile%,Try,a,z
If,EXISTFILE,%pstart%,ShellExecute,OPEN,%pstart%

[try]
Set,%pstart%,#c:\%a_searchFile%
If,EXISTFILE,%pstart%,Loop,BREAK

******************
New Syntax:
RegDelete,HKLM,Section,Key deletes 'Key' under 'Section'
RegDelete,HKLM,Section deletes the complete 'Section'
Old Syntax:
RegDelete,HKLM,Section,Key,Value deletes 'Value' under 'Section\Key'
RegDelete,HKLM,Section,Key deletes the complete 'key' under 'Section'

******************
'Not' option to If command

You negate an If command by inserting an 'Not'
If,someting,... > If,Not,something ...
If,Not,%var1%,EQUAL,%var2%,command
has the same result as
If,%var1%,NOTEQUAL,%var2%,command

The current NOTEQUAL, NOTEXISTDIR, ... commands are still processes because of compatibility reasons
But before processing they are internally changed into If,Not,...
Therefore
If,NOT,%var%,NOTEQUAL,%test%,...
is invalid and may produce inpredictable results

Try this in CodeBox:
[Process]
Set,%var%,3
If,%var%,EQUAL,3,Echo,"3 is equal to %var%"
If,Not,%var%,EQUAL,3,Echo,"3 is not equal to %var%"
If,%var%,NOTEQUAL,3,Echo,"3 is not equal to %var%"
Set,%var%,4
If,%var%,EQUAL,3,Echo,"3 is equal to %var%"
If,Not,%var%,EQUAL,3,Echo,"3 is not equal to %var%"
If,%var%,NOTEQUAL,3,Echo,"3 is not equal to %var%"

****************
StrFormat can extract path, filename and extentions from URLs:

[Variables]
%DownloadURL1%=http://live.sysinternals.com/Bginfo.exe

[Process]
StrFormat,PATH,%DownloadURL1%,%fnam%
StrFormat,FILENAME,%DownloadURL1%,%fnam%
StrFormat,EXT,%DownloadURL1%,%fnam%

results in:

StrFormat - converted: [%DownloadURL1%] to variable: [%fnam%] with result: [http://live.sysinternals.com/]
StrFormat - converted: [%DownloadURL1%] to variable: [%fnam%] with result: [Bginfo.exe]
StrFormat - converted: [%DownloadURL1%] to variable: [%fnam%] with result: [.exe]

***************
New If commands:

If,ExistRegSection,HKLM,Section,Command
If,ExistRegKey,HKLM,Section,Key,Command

***************
Scripts having '[Main] Mandatory=True' are marked in the tree with a red exclamation mark and cannot be deselected.
In the Interface editor there is a check box 'Mandatory' to set or unset this property.
This protection mechanism can be switched off by the developer by adding [Main] Mandatory=False to WinBuilder.ini

***************
Autosave option

Autosave is On by default.
You can switch it permanently On / Off by using the 'Options' tab in Tools Mode
The 'save' button in the source editor is only visible if autosave is off.
Go to the top of the page
 
 
 psc
post Sep 24 2008, 02:12 PM
Post #6


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[075] beta 6

fixed - bug in If,existregsection
fixed - bug in StrFormat,CTRIM if the SingleChar was an escape like #$q
*** preview as beta 5 a
added - escape of escape. e.g. ##$p writes the three characters #$p rather than a percentage
*** preview as beta 5 b
fixed - bug in nested begin - end
fixed - space in parameters
*** preview as beta 5 c
fixed - Bug ID #19: CPU 100% When double clicking an attachement
added - optional output of original lines in log
speed - in log html build, replaced if - else sequence by case statement
fixed - RegRead no longer creates non existing key
*** preview as beta 5 d
fixed - bug in System,GETFREEDRIVE if variable was already defined
fixed - bug in nested begin - end: Run and Exec disturbed the stack
*** preview as beta 5 e
added - System,ONSCRIPTEXIT,command
added - Custom logo size encrease, bug #89
*** preview as beta 5 f
added - STOP, ERROR, DONE, COMMAND as #1 to ONSCRIPTEXIT runs
*** preview as beta 5 g
added - System,ONBUILDEXIT,command
*** preview as beta 5 h
fixed - log listview now allows horizontal scolling
added - an log entry in the log listview can be copied to clipboard by pressing Ctrl+C or doubleclicking the entry
changed - internally split some objects from TScript
added - add some system exceptions to the ONBUILDEXIT functionality.
shown as #1 = EXCEPTION
tracked exceptions will be completed more and more
fixed - bug in ONBUILDEXIT when executing from a script button
added - codebox now with context menu 'magic wand'
*** preview as beta 5 i
fixed - bug in ONBUILDEXIT: Run in a different script was not executed
added - now the exec command also can have parameters like Run command
fixed - bug #92: dropdown list not saved
*** preview as beta 5 j
added - optional timeout for Message and If,Question
fixed - bug #94: edit of folder.project
fixed - bug #98: interface refresh issue when using XP style
fixed - bug #96: Now [Main]Description key may contain line breaks
*** preview as beta 5 k
fixed - bug #100: Save attachment directory
added - optionally hide 'Source' tab
fixed - bug #103: Running functions from interface editor
added - some new functionality to the 'Set' command
*** preview as beta 5 l
fixed - several bugs and misfeatures in GUI, especially when using XP-Style
fixed - bug in macro translation
fixed - bug #108: %ScriptTitel% not printed by magic wand
fixed - bug #95: [process] in script.project
changed - new project tree handling
*** preview as beta 5 m
fixed - several bugs introduced in beta 5 m
added - bug #107: language dependent interface
added - StrFormat,REPLACE and StrFormat,SPLIT
*** preview as beta 5 n
fixed - bug in If,EXISTREGKEY and If,EXISTREGSECTION: Non existing keys were created
fixed - tree navigation by key stroke
added - %WBLanguage% variable
*** preview as beta 5 o
fixed - bug in IniWrite 0x7: #$S instead of spaces
fixed - bug in language dependent interface which created new interface section
fixed - smaller bug in BartPE inf processing: WB sometimes crashed
fixed - RegDeleteKey of a single value
*** preview as beta 5 p
fixed - bug #113: key navigation in download pane
*** preview as beta 5 q
added - optional confirmation of Build STOP button click
fixed - bug in If,Online
*** preview as beta 5 r
fixed - bug with #$s in regwrite multiple strings
fixed - bug in interface editor when resizing a FileBox
*** preview as beta 5 s
fixed - bug #116: entering text by cut&paste in interface editor destroys the interface if there is a CRLF
fixed - bug #117: Return needed to add text by cut&paste
fixed - downloads are written directly to disk (first with a .tmp added) if
the download succeeds it will be renamed to the final name, otherwise
the tmp file is deleted
*** preview as beta 5 t
changed - escape handling in command dispatcher, hopefully prohibiting something like bug #119
fixed - bug with space in macro definition
*** preview as beta 5 u
changed - wait logic of ShellExecute
*** preview as beta 5 v
added - ShellExecuteDelete command
fixed - bug in System,RefreshInterface
*** preview as beta 5 w
added - Verbose realtime WinBuilder file-logging mechanism implemented (to enable it add "DebugLogEnabled=true" to WinBuilder.ini)
fixed - bug in interface: checkbox text unchangable or lost
added - StrFormat,CharToOem and StrFormat,OemToChar commands
*** preview as beta 5 x
added - Vista UAC warning to manifest
added - Proxy support, final version
*** Preview as beta 5 y
fixed - some interface bugs introduced by internal restructuring started with beta 5 x
fixed - bug 128, Set command
changed - reanimated If,Ping command
added - WB size is saved in INI, and restored next start
fixed - some old WB 074 scripts in WB 075 appear with scrollbar
changed - logic of 'Size Borders' in GUI editor
*** Preview as beta 5 z (next preview will start with UPPERCASE A)
changed - logic of 'Size Borders' in GUI editor: now measure scrollbar width
fixed - wrong color of GUI background
*** Preview as beta 5 A
changed - some more internal structure, Interface editor
added - *.inf can contain WinBuilder sections. [Process] is processed, [Interface] is used for building GUI, [Variables] are evaluated
*** Preview as beta 5 B
changed - Source tab implementation
changed - Script editor form separated from WinBuilder's main form - re-implemented large parts
changed - default language now available as independent in-exe-resource (editable via resource editor after UPX decompressing WinBuilder.exe)
changed - script interface gui can now be aligned exactly with the beveled banner above (use "pBevel1,1,12,-1,0,557,318")
*** Preview as beta 5 C
recreated - escape of escape. e.g. ##$p writes the three characters #$p rather than a percentage (lost by introducing the VariablesManager class)
recreated - lost colored background in interface editor, when using non-classic style
*** Preview as beta 5 D
fixed - Fixed second editor (access violation, missing language, etc.)
added - 'escape of escape' functionality to 'Set,...,PERMANENT' command
added - Variables %ProcessorType% and %Wow64% to let scripts handle 64 bit specials
*** Preview as beta 5 E
recreated - Magic Wand works in CodeBox
fixed - Variables %ProcessorType% and %Wow64% to let scripts handle 64 bit specials
added - Variable %Wow64Dir% to let scripts handle 64 bit specials
changed - truncate debug log file (WinBuilder.log) on start of WinBuilder
*** Preview as beta 5 F
fixed - bug in Convert BartPE, introduced by inserting apostrophes to the title
changed - Click on picture in GUI now may be some more Wow64 friendly
added - StrFormat,POS
*** Preview as beta 5 G
added - New variable %HostOS%
fixed - Label font size bug with resolutions different from 96 DPI
fixed - bug in System,GETFREEDRIVE: a 'not connected network drive' was assumed to be free
*** Preview as beta 5 H
added - System,REGREDIRECT
added - System,FILEREDIRECT
*** Preview as beta 5 I
fixed - reanimated fixed folder view
rebuilt - old ShellExecute functionality
*** Preview as beta 5 J
fixed - Access violation when there is no project
fixed - bug with lost file level on GUI edit
fixed - bug with labeled edit box on GUI edit
added - BartPE inf is skipped when [PEBuilder] contains WinBuilder=0
fixed - new bug with nested If commands
added - Indents in Begin ... End blocks
*** Preview as beta 5 K
recreated - ShowSourceTab functionality which was lost in server transfer
*** Preview as beta 5 L
fixed - bug with appearing 'Description' tab on script errors
*** Preview as beta 5 M
added - small grid facilities in interface editor
*** Preview as beta 5 N
changed - Wait command with process messages
added - If,RUNS command
*** Preview as beta 5 O
recreated - lost language dependent interface
fixed - some new issues with refresh interface on xp-style
fixed - autosave of script source on program exit
fixed - bug in WebGet: If a file exists and WebGet of the same file failed with MD5 error, the existing file was deleted
added - On_Exit and On_Enter events to scripts
fixed - lost redirection in http download
*** Preview as beta 5 P
added - System,GetFileSystem command
fixed - bug in magic wand: did not work in codebox after script edit has been used
fixed - correct WB startup coordinates when winbuilder.ini points outside desktop
*** Preview as beta 5 Q
fixed - Several lost download functionality
fixed - bug in magic wand: still did not work in codebox after source editor has been used
fixed - some new interface issues when working under xp-style
fixed - script was truncated when in attachement modus winbuilder has been exited
*** Preview as beta 5 R
fixed - attachement 'delete folder' did not delete files, too
fixed - access violation after use of file box
added - System,IsAdmin command
added - System,GetEnv command
*** Preview as beta 5 S
reanimated - If,License command
*** Preview as beta 5 T


****************
System,ONSCRIPTEXIT,command

This statement can be written anywhere inside the running part of a script.
It is exexuted after the last script's statement has been executed.

If command is 'Run', as parameter #1 the 'type' of the exit is passed
DONE > normal finish
STOP > the user clicked the STOP button
ERROR > the script has been finished because of an error
COMMAND > the script has beeen finished because of a System,Halt or System,Exit command
EXCEPTION > a system exception occurred during process, e.g. 'index out of bounds'
This should not occur in a debugged script; it is a help for the .script developer.

Samples:

System,ONSCRIPTEXIT,Run,%ScriptFile%,Cleanup

[Cleanup]
If,#1,Equal,ERROR,Begin
...
End

System,ONSCRIPTEXIT,Message,"Everything Done!",INFORMATION

****************
System,ONBUILDEXIT,command

This statement can be written anywhere inside the running part of any script.
Always the last executed statement is valid.
So different scripts can define different actions or deactivate with
System,ONBUILDEXIT,

It is exexuted, after the last script in the project has been processed.

If command is 'Run' as parameter #1 the 'type' of the exit is passed
DONE > normal finish of the complete build
STOP > the user clicked the STOP button. This has ended the build
ERROR > a script has been finished because of an error. This has ended the build
COMMAND > a script has beeen finished because of a System,Halt command. This has ended the build
EXCEPTION > a system exception occurred during process, e.g. 'index out of bounds'
This should not occur in a debugged script; it is a help for the .script developer.

Sample:

System,ONBUILDEXIT,Run,%ProjectDir%\CleanupScript,Cleanup

***************
optional timeout for Message and If,Question

The current syntax is still valid and holds the dialog open 'for ever':
Message,MessageText,INFORMATION
If,QUESTION,QuestionText,command

Timeout for Message and If,Question:

Message,MessageText,INFORMATION,10
The message dialog closes when clicking the 'OK' or when it has been visible for 10 seconds

If,QUESTION,QuestionText,3,True,command
The question dialog closes when clicking the 'Yes' 'No' or when it has been visible for 3 seconds.
In the second case clicking of 'Yes' is assumed to be True

If,QUESTION,QuestionText,5,False,command
The question dialog closes when clicking the 'Yes' 'No' or when it has been visible for 5 seconds.
In the second case clicking of 'Yes' is assumed to be False

***************
optionally hide 'Source' tab:
Global: In WinBuilder.ini, manually set [Main]ShowSourceTab=False
Project: In script.project, manually set [Main]ShowSourceTab=False

script.project values overwrite WinBuilder.ini values!

If the 'Source' tab is hidden, there is also no check for valid source!

****************
some new functionality to the 'Set' command

Currently:
Set,%Var%,NewValue

New:
Set,%Var%,NewValue,GLOBAL: %Var% will be defined in all subsequent scripts of the current build.

Set,%Var%,NewValue,PERMANENT: %Var% will be defined in all subsequent scripts of the current build.
- Additionally %Var% is written into script.project and therefore valid for all subsequent builds.

If NewValue is 'NIL' (w/o the apostrophes) the variable will be removed (current script, current build or permanent like in the normal Set) and will not be detected in an 'If,EXISTVAR' statement.

Of course this causes that NIL as value for a variable is forbidden!

****************
StrFormat,REPLACE and StrFormat,SPLIT

StrFormat,REPLACE,String,CharsToReplace,ReplacementChars,%VarResult%

StrFormat,SPLIT,String,DelimiterChar,Index,%VarResult%
Index=0 > number of items

Sample:
[variables]
%from%=brown
%to%=yellow
%source%=The quick brown fox jumps over the lazy dog

[process]
StrFormat,REPLACE,%source%,%from%,%to%,%VarResult%
Echo,%VarResult%
StrFormat,SPLIT,%source%,#$s,0,%count%
Loop,%ScriptFile%,Section,1,%count%

[section]
StrFormat,SPLIT,%source%,#$s,#c,%VarResult%
Echo,%VarResult%

result:
[Success] StrFormat - converted [REPLACE(%source%,%from%,%to%)] to variable: [%VarResult%] with result: [The quick yellow fox jumps over the lazy dog]
[Info] The quick yellow fox jumps over the lazy dog
[Success] StrFormat - converted [SPLIT(%source%, ,0)] to variable: [%count%] with result: [9]
Loop [Section] From file: [%BaseDir%\Projects\nativeEx_barebone_075\CodeBox.txt]
[Parameter] with parameters: [1]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [The]
[Info] The
[Parameter] with parameters: [2]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [quick]
[Info] quick
[Parameter] with parameters: [3]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [brown]
[Info] brown
[Parameter] with parameters: [4]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [fox]
[Info] fox
[Parameter] with parameters: [5]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [jumps]
[Info] jumps
[Parameter] with parameters: [6]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [over]
[Info] over
[Parameter] with parameters: [7]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [the]
[Info] the
[Parameter] with parameters: [8]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [lazy]
[Info] lazy
[Parameter] with parameters: [9]
[Success] StrFormat - converted [SPLIT(%source%, ,#c)] to variable: [%VarResult%] with result: [dog]
[Info] dog
Loop - Processed section [Section] in file: [%BaseDir%\Projects\nativeEx_barebone_075\CodeBox.txt]

************************
language dependent interface

Additional to the [Interface] section a script can contain an 'unlimited' number of [Interface-<language>] sections.
<language> is the item you can choose in Tools > Language

If the user has choosen a language different from "_default" (English) and [Interface-<language>] exists,
the the GUI is drawn unsing this section rather than using [Interface].

CAUTION: The [Interface-<language>] section must contain ALL [Interface] items, not only those which are different!

IMPORTANT: If you edit the interface, only the currently active one is changed, either [Interface] or [Interface-<language>]

************************
added - optional confirmation of Build STOP button click

If in WinBuilder.ini a key like
StopAgree=Realy stop the build?
is defined, this question comes up after clicking the STOP button during build, and the user can decide between 'Yes' and 'No'.
This gives e.g. the possibility to interrupt the build for a while to do some other tasks.

There is a language mechanism like in 'language dependent interface'

Sample:

StopAgree=Really stop the build?
StopAgree-German=Wirklich abbrechen?
StopAgree-Portuguese=Você quer interromper-se realmente?

If the language is German, the German question comes up.
If the language is Portuguese, the Portuguese question comes up.
With ALL other languages the English Question comes up


************************
added - StrFormat,CharToOem and StrFormat,OemToChar commands

Sample:
[process]
StrFormat,CHARTOOEM,'aüöäasf',%var%
Echo,%var%
StrFormat,OEMTOCHAR,%var%',%var%
Echo,%var%

Result:

[Success] StrFormat - converted [CHARTOOEM('aüöäasf',%var%)] to variable: [%var%] with result: ['a”„asf']
[Info] 'a”„asf'
[Success] StrFormat - converted [OEMTOCHAR(%var%',%var%)] to variable: [%var%] with result: ['aüöäasf'']
[Info] 'aüöäasf''

************************
changed - Source tab implementation

Now in the main window the 'Script', 'Paths', 'Codebox', 'Log' tabs are independent from the project tree view.
If in previous versions you are e.g. in the 'Codebox' tab and clicked a different node in the tree view, you automatically switched to the 'Script' tab.

Now in this case you remain in the Codebox tab, but in the background everything is changed to the new active tree view node.
You can see: If the new node belongs to a different project, the Codebox contents changes to the snippets of that different project.

Switching to other tabs, you see the contents belonging to the new node.

************************
added - StrFormat,POS

Sample:
[Process]
StrFormat,POS,"Hello World",orl,%var%
Echo,%var%

Result:
StrFormat - converted [POS(Hello World,orl,%var%)] to variable: [%var%] with result: [8]
8

****************
added - System,REGREDIRECT

System,REGREDIRECT,64
System,ERROROFF,2
RegRead,HKLM,SOFTWARE\InnoTek\VirtualBox,InstallDir,%VBPath%
If,NOTEXISTVAR,%VBPath%,RegRead,HKLM,"SOFTWARE\Sun\xVM VirtualBox",InstallDir,%VBPath%
System,REGREDIRECT,OFF

added - System,FILEREDIRECT

System,FILEREDIRECT,OFF
ShellExecute,Hide,"cmd.exe","/c imdisk -d -m %FreeLetter%"
System,FILEREDIRECT,ON

****************
added - On_Exit and On_Enter events to scripts

This applies to navigating in the project tree ONLY. It dos not have any influence un running the scripts
When in the project tree by mouse click on by key stroke you enter a script:
If the script has the section [On_Enter] the section is processed.
Corresponding functionality with [On_Exit] when leaving the script.
Go to the top of the page
 
 
 psc
post Jan 15 2009, 03:19 PM
Post #7


Guru
******

Group: .script developer
Posts: 6,395
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


[075] beta 7

changed - Dialogbox with timeout now has progressbar and seconds countdown
fixed - filebox in directory mode showed backslash at single drive letter (D:\) but no backslash at path (D:\mypath\subpath)
fixed - filebox in directory mode now shows last directory
fixed - indenting begin / end blocks confused on comment lines
added - enhanced WebGet functionality
fixed - 'No Network Support' functionality
added - GLOBAL and PERMANENT options to AddVariables command
fixed - Editor changes have been lost when switching tabs in source edit mode
changed - log by default in English, optional in user language (checkbox on Tools > Language)
*** preview as beta 6 a
added - API functions to magic wand
fixed - bug in WebGet with ftp protocol
changed - on IniWrite inifile is created if not exists
changed - Check button in source editor for begin / end indenting
fixed - script.project.sav files has been also treated as project root
changed - autosave logic: now with On, Off, On and Ask, Off and Ask (combobox on Tools > Options)
fixed - bug in indenting with 'Else,Begin'
*** preview as beta 6 b
changed - WebGet function enhanced
*** preview as beta 6 c
changed - options as first tab
removed - lblAdvLaunch to make room for additional option
removed - language entry !#1621=Launch a separate process for running projects.
removed - exit cross at the license tab to make tab look simpler
added - checkbox to enable visibility of Code Box tab (disabled by default)
added - language entry !#1625=Enable Code Box
changed - cosmetic improvements on Tools, now it's possible properly use all tools when window is maximized
changed - proxy tab moved to download center
changed - server tab in download center moved to frontpage
removed - buttons on server list (edit and visit webserver)
fixed - bug in evaluating RadioGroup
*** preview as beta 6 d
added - during build you cannot exit WB using the upper left 'x'. Build must be stopped before.
added - treeview to progress window, shown during project build (experimental)
added - System,GetFreeSpace command
*** preview as beta 6 e
fixed - escape of escape handling in TXTfile commands
changed - some smaller adjustements in User Interface
*** preview as beta 6 e (overwritten)
fixed - escape of escape handling in IniWriteTextLine command
added - some visual changes to progress window
changed - for mandatory scripts replaced red exclamation icon by locker icon
fixed - bug in Source window which let the $sourcedir% variable sometimes undefined
fixed - bug in 'launch external processs'
fixed - bug in copying directories recursive
added - in Convert BartPE, added BartPE [strings] section to WinBuilde [Variables] section
fixed - I/O error 6 when exiting WinBuilder with folder selected (after editing a script)
added - warning when WinBuilder is started w/o admin privileges
fixed - bug that comment and API lines are not indented
added - Fast DirDelete
*** preview as beta 6 f


****************
added - enhanced WebGet functionality
WebGet,FileToDownload,FileOnDisk,[MD5],[comment],[TimeOut]
WebGetIfNotExist,FileToDownload,FileOnDisk,[MD5],[comment],[TimeOut]

If optional comment is defined it is displayed in the progress page rather than the URL.
If optional timeout is defined, a dialogbox with countdown is shown, and the user has the choice whether he wants to download.

****************
added - GLOBAL and PERMANENT options to AddVariables command

AddVariables,%ScriptFile%,section,GLOBAL: Additional new variables list will be defined in all subsequent scripts of the current build.

AddVariables,%ScriptFile%,section,PERMANENT: Additional new variables list will be defined in all subsequent scripts of the current build.
- Additionally all added variables are written into script.project and therefore valid for all subsequent builds.

****************
added - System,GetFreeSpace command
Returns the free space of Path's drive in megabytes
megaybtes = free bytes / 1024 / 1024

System,GETFREESPACE,Path,%var%

Samples:
System,GETFREESPACE,%BaseDir$,%var%
System,GETFREESPACE,C:,%var%
System,GETFREESPACE,C,%var%

****************
added - Fast DirDelete
Syntax: DirDelete,DirToDelete,FAST

WinBuilder renames the directory to a name with a part randomly generated.
Then it deletes the renamed directory asyncronous in the background.

If any file in the directory or a subdirectory is in use (maybe open hive in the %Target% directory), the same error appears like it would be in 'normal' delete.
Go to the top of the page
 
 
 
 

 
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

Collapse

>

  Topic Replies Topic Starter Views Last Action
No new Posts Topic has attachments WinBuilder 076
The new generation of stable editions
94 Nuno Brito 5,397 Yesterday, 07:54 PM
Last post by: JonF
No New Posts Winbuilder 076, VistaPE & Acronis True Image 11
Licence key being corrupted
1 lamarkii 110 5th February 2009 - 06:13 PM
Last post by: psc
No new Posts Topic has attachments WinBuilder 075 - beta testing
beta 6 - Proxy working, the best script engine EVER!
727 Nuno Brito 46,766 31st January 2009 - 10:32 PM
Last post by: psc
No New Posts Beta Questions
Created for wrong placed posts
2 kukubau 48 31st January 2009 - 07:11 PM
Last post by: psc
No New Posts WinBuilder extreme slow download
Trying to get VistaPE - need hours for 1 file to get
4 :: tripeX :: 178 20th January 2009 - 11:46 AM
Last post by: ctmag


 
menu_build_menu( "topicreferrals", new Array( img_item + " winbuilder access violation   2 clicks", img_item + " php+$treeview->scriptfolder   2 clicks", img_item + " winbuilder regredirect   2 clicks", img_item + " http://boot-land.net/foru...s/wb_server.php   2 clicks", img_item + " winbuilder script to st...yle xp in vista   1 clicks", img_item + " locprogsm plugin   1 clicks", img_item + " winbuilder 075   1 clicks", img_item + " winbuilder 75 beta6   1 clicks", img_item + " winbuilder addvariables... was not found!   1 clicks", img_item + " locprogsm winbuilder   1 clicks", img_item + " winbuilder 075 beta6   1 clicks", img_item + " winbuilder parameter   1 clicks", img_item + " winbuilder beta6 075   1 clicks", img_item + " define proxy in winbuilder   1 clicks", img_item + " fix winbuilder regread ...ead - failed to   1 clicks", img_item + " themes on winbuilder   1 clicks", img_item + " vistape + strformat - f...e is not valid:   1 clicks", img_item + " winbuilder locprogsm   1 clicks", img_item + " uilder 075   1 clicks", img_item + " uilder access violation inf   1 clicks", img_item + " winbuilder locprogsm   1 clicks" ) );

RSS "Boot-Land.net", "WinBuilder" Lo-Fi Version Time is now: 7th February 2009 - 01:08 AM