Jump to content











Photo
* * * * * 2 votes

WinBuilder 075 - beta testing


  • Please log in to reply
727 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 9,912 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 12 May 2008 - 09:45 PM

Hi everyone!

I'm proud to announce the initial beta release of WinBuilder 075.

This is a very special release as it the first that showcases several improvements regarding the script engine and extensive bug fixes that have been reported on the bug tracker.

Peter (PSC) is the mentor for most these fixes and I would like to extend my personal thank you to him for all the good results that made possible such a good script performance.


------------


Please report back any issues that you find with this new beta version, lots of changes have been introduced on the engine so we need feedback to see if anything was left to be corrected.

If you find a bug on WinBuilder 074, please mention it on the bug tracker.

If you find a bug on WinBuilder 075, please post it here.

---------------------------------------------------------------------------------

Beta 6 (14-Jan-2009)


Download:
http://winbuilder.ne...oad.php?view.36

Log of changes
[codebox][075] beta 6fixed - bug in If,existregsectionfixed - bug in StrFormat,CTRIM if the SingleChar was an escape like #$q*** preview as beta 5 aadded - escape of escape. e.g. ##$p writes the three characters #$p rather than a percentage*** preview as beta 5 bfixed - bug in nested begin - endfixed - space in parameters*** preview as beta 5 cfixed - Bug ID #19: CPU 100% When double clicking an attachementadded - optional output of original lines in logspeed - in log html build, replaced if - else sequence by case statementfixed - RegRead no longer creates non existing key*** preview as beta 5 dfixed - bug in System,GETFREEDRIVE if variable was already definedfixed - bug in nested begin - end: Run and Exec disturbed the stack*** preview as beta 5 eadded - System,ONSCRIPTEXIT,commandadded - Custom logo size encrease, bug #89*** preview as beta 5 fadded - STOP, ERROR, DONE, COMMAND as #1 to ONSCRIPTEXIT runs*** preview as beta 5 gadded - System,ONBUILDEXIT,command*** preview as beta 5 hfixed - log listview now allows horizontal scollingadded - an log entry in the log listview can be copied to clipboard by pressing Ctrl+C or doubleclicking the entrychanged - internally split some objects from TScriptadded - add some system exceptions to the ONBUILDEXIT functionality. shown as #1 = EXCEPTION tracked exceptions will be completed more and morefixed - bug in ONBUILDEXIT when executing from a script buttonadded - codebox now with context menu &#39;magic wand&#39;*** preview as beta 5 ifixed - bug in ONBUILDEXIT: Run in a different script was not executedadded - now the exec command also can have parameters like Run commandfixed - bug #92: dropdown list not saved*** preview as beta 5 jadded - optional timeout for Message and If,Questionfixed - bug #94: edit of folder.projectfixed - bug #98: interface refresh issue when using XP stylefixed - bug #96: Now [Main]Description key may contain line breaks*** preview as beta 5 kfixed - bug #100: Save attachment directoryadded - optionally hide &#39;Source&#39; tabfixed - bug #103: Running functions from interface editoradded - some new functionality to the &#39;Set&#39; command*** preview as beta 5 lfixed - several bugs and misfeatures in GUI, especially when using XP-Style fixed - bug in macro translationfixed - bug #108: %ScriptTitel% not printed by magic wandfixed - bug #95: [process] in script.projectchanged - new project tree handling*** preview as beta 5 mfixed - several bugs introduced in beta 5 madded - bug #107: language dependent interfaceadded - StrFormat,REPLACE and StrFormat,SPLIT*** preview as beta 5 nfixed - bug in If,EXISTREGKEY and If,EXISTREGSECTION: Non existing keys were createdfixed - tree navigation by key strokeadded - %WBLanguage% variable*** preview as beta 5 ofixed - bug in IniWrite 0x7: #$S instead of spacesfixed - bug in language dependent interface which created new interface sectionfixed - smaller bug in BartPE inf processing: WB sometimes crashedfixed - RegDeleteKey of a single value*** preview as beta 5 pfixed - bug #113: key navigation in download pane*** preview as beta 5 qadded - optional confirmation of Build STOP button clickfixed - bug in If,Online*** preview as beta 5 rfixed - bug with #$s in regwrite multiple stringsfixed - bug in interface editor when resizing a FileBox*** preview as beta 5 sfixed - bug #116: entering text by cut&paste in interface editor destroys the interface if there is a CRLFfixed - bug #117: Return needed to add text by cut&pastefixed - 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 tchanged - escape handling in command dispatcher, hopefully prohibiting something like bug #119fixed - bug with space in macro definition*** preview as beta 5 uchanged - wait logic of ShellExecute*** preview as beta 5 vadded - ShellExecuteDelete commandfixed - bug in System,RefreshInterface*** preview as beta 5 wadded - Verbose realtime WinBuilder file-logging mechanism implemented (to enable it add "DebugLogEnabled=true" to WinBuilder.ini)fixed - bug in interface: checkbox text unchangable or lostadded - StrFormat,CharToOem and StrFormat,OemToChar commands*** preview as beta 5 xadded - Vista UAC warning to manifestadded - Proxy support, final version*** Preview as beta 5 yfixed - some interface bugs introduced by internal restructuring started with beta 5 xfixed - bug 128, Set commandchanged - reanimated If,Ping commandadded - WB size is saved in INI, and restored next startfixed - some old WB 074 scripts in WB 075 appear with scrollbarchanged - logic of &#39;Size Borders&#39; in GUI editor*** Preview as beta 5 z (next preview will start with UPPERCASE A)changed - logic of &#39;Size Borders&#39; in GUI editor: now measure scrollbar widthfixed - wrong color of GUI background*** Preview as beta 5 Achanged - some more internal structure, Interface editoradded - *.inf can contain WinBuilder sections. [Process] is processed, [Interface] is used for building GUI, [Variables] are evaluated*** Preview as beta 5 Bchanged - Source tab implementationchanged - Script editor form separated from WinBuilder&#39;s main form - re-implemented large partschanged - 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 Crecreated - 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 Dfixed - Fixed second editor (access violation, missing language, etc.)added - &#39;escape of escape&#39; functionality to &#39;Set,...,PERMANENT&#39; commandadded - Variables %ProcessorType% and %Wow64% to let scripts handle 64 bit specials*** Preview as beta 5 Erecreated - Magic Wand works in CodeBoxfixed - Variables %ProcessorType% and %Wow64% to let scripts handle 64 bit specialsadded - Variable %Wow64Dir% to let scripts handle 64 bit specialschanged - truncate debug log file (WinBuilder.log) on start of WinBuilder*** Preview as beta 5 Ffixed - bug in Convert BartPE, introduced by inserting apostrophes to the titlechanged - Click on picture in GUI now may be some more Wow64 friendlyadded - StrFormat,POS*** Preview as beta 5 Gadded - New variable %HostOS%fixed - Label font size bug with resolutions different from 96 DPIfixed - bug in System,GETFREEDRIVE: a &#39;not connected network drive&#39; was assumed to be free*** Preview as beta 5 Hadded - System,REGREDIRECTadded - System,FILEREDIRECT*** Preview as beta 5 Ifixed - reanimated fixed folder viewrebuilt - old ShellExecute functionality*** Preview as beta 5 Jfixed - Access violation when there is no projectfixed - bug with lost file level on GUI editfixed - bug with labeled edit box on GUI editadded - BartPE inf is skipped when [PEBuilder] contains WinBuilder=0fixed - new bug with nested If commandsadded - Indents in Begin ... End blocks*** Preview as beta 5 Krecreated - ShowSourceTab functionality which was lost in server transfer*** Preview as beta 5 Lfixed - bug with appearing &#39;Description&#39; tab on script errors*** Preview as beta 5 Madded - small grid facilities in interface editor*** Preview as beta 5 Nchanged - Wait command with process messagesadded - If,RUNS command*** Preview as beta 5 Orecreated - lost language dependent interfacefixed - some new issues with refresh interface on xp-stylefixed - autosave of script source on program exitfixed - bug in WebGet: If a file exists and WebGet of the same file failed with MD5 error, the existing file was deletedadded - On_Exit and On_Enter events to scriptsfixed - lost redirection in http download*** Preview as beta 5 Padded - System,GetFileSystem commandfixed - bug in magic wand: did not work in codebox after script edit has been usedfixed - correct WB startup coordinates when winbuilder.ini points outside desktop*** Preview as beta 5 Qfixed - Several lost download functionalityfixed - bug in magic wand: still did not work in codebox after source editor has been usedfixed - some new interface issues when working under xp-stylefixed - script was truncated when in attachement modus winbuilder has been exited *** Preview as beta 5 Rfixed - attachement &#39;delete folder&#39; did not delete files, toofixed - access violation after use of file boxadded - System,IsAdmin commandadded - System,GetEnv command*** Preview as beta 5 Sreanimated - If,License command*** Preview as beta 5 T****************System,ONSCRIPTEXIT,commandThis statement can be written anywhere inside the running part of a script.It is exexuted after the last script&#39;s statement has been executed.If command is &#39;Run&#39;, as parameter #1 the &#39;type&#39; of the exit is passedDONE > normal finishSTOP > the user clicked the STOP buttonERROR > the script has been finished because of an errorCOMMAND > the script has beeen finished because of a System,Halt or System,Exit commandEXCEPTION > a system exception occurred during process, e.g. &#39;index out of bounds&#39; 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...EndSystem,ONSCRIPTEXIT,Message,"Everything Done!",INFORMATION****************System,ONBUILDEXIT,commandThis 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 withSystem,ONBUILDEXIT,It is exexuted, after the last script in the project has been processed.If command is &#39;Run&#39; as parameter #1 the &#39;type&#39; of the exit is passedDONE > normal finish of the complete buildSTOP > the user clicked the STOP button. This has ended the buildERROR > a script has been finished because of an error. This has ended the buildCOMMAND > a script has beeen finished because of a System,Halt command. This has ended the buildEXCEPTION > a system exception occurred during process, e.g. &#39;index out of bounds&#39; 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,QuestionThe current syntax is still valid and holds the dialog open &#39;for ever&#39;:Message,MessageText,INFORMATIONIf,QUESTION,QuestionText,commandTimeout for Message and If,Question:Message,MessageText,INFORMATION,10The message dialog closes when clicking the &#39;OK&#39; or when it has been visible for 10 secondsIf,QUESTION,QuestionText,3,True,commandThe question dialog closes when clicking the &#39;Yes&#39; &#39;No&#39; or when it has been visible for 3 seconds.In the second case clicking of &#39;Yes&#39; is assumed to be TrueIf,QUESTION,QuestionText,5,False,commandThe question dialog closes when clicking the &#39;Yes&#39; &#39;No&#39; or when it has been visible for 5 seconds.In the second case clicking of &#39;Yes&#39; is assumed to be False***************optionally hide &#39;Source&#39; tab:Global: In WinBuilder.ini, manually set [Main]ShowSourceTab=FalseProject: In script.project, manually set [Main]ShowSourceTab=Falsescript.project values overwrite WinBuilder.ini values!If the &#39;Source&#39; tab is hidden, there is also no check for valid source!****************some new functionality to the &#39;Set&#39; commandCurrently:Set,%Var%,NewValueNew: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 &#39;NIL&#39; (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 &#39;If,EXISTVAR&#39; statement.Of course this causes that NIL as value for a variable is forbidden!****************StrFormat,REPLACE and StrFormat,SPLITStrFormat,REPLACE,String,CharsToReplace,ReplacementChars,%VarResult%StrFormat,SPLIT,String,DelimiterChar,Index,%VarResult%Index=0 > number of itemsSample:[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 interfaceAdditional to the [Interface] section a script can contain an &#39;unlimited&#39; number of [Interface-<language>] sections.<language> is the item you can choose in Tools > LanguageIf 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 clickIf 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 &#39;Yes&#39; and &#39;No&#39;.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 &#39;language dependent interface&#39;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 commandsSample:[process]StrFormat,CHARTOOEM,&#39;aüöäasf&#39;,%var%Echo,%var%StrFormat,OEMTOCHAR,%var%&#39;,%var%Echo,%var%Result: [Success] StrFormat - converted [CHARTOOEM(&#39;aüöäasf&#39;,%var%)] to variable: [%var%] with result: [&#39;a&#148;&#132;asf&#39;][Info] &#39;a&#148;&#132;asf&#39;[Success] StrFormat - converted [OEMTOCHAR(%var%&#39;,%var%)] to variable: [%var%] with result: [&#39;aüöäasf&#39;&#39;][Info] &#39;aüöäasf&#39;&#39;************************changed - Source tab implementationNow in the main window the &#39;Script&#39;, &#39;Paths&#39;, &#39;Codebox&#39;, &#39;Log&#39; tabs are independent from the project tree view.If in previous versions you are e.g. in the &#39;Codebox&#39; tab and clicked a different node in the tree view, you automatically switched to the &#39;Script&#39; 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,POSSample:[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,OFFadded - System,FILEREDIRECTSystem,FILEREDIRECT,OFFShellExecute,Hide,"cmd.exe","/c imdisk -d -m %FreeLetter%"System,FILEREDIRECT,ON****************added - On_Exit and On_Enter events to scriptsThis applies to navigating in the project tree ONLY. It does not have any influence on running the scriptsWhen 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.[/codebox]----------------------------------------------------------------------------------[size=3][b]Beta 5[/b] [i](18-Sep-2008)[/i][/size][b]Download:[/b][url="http://winbuilder.net/download.php?view.34"]http://winbuilder.net/download.php?view.34[/url][b]Log of changes[/b][codebox]fixed - double &#39;beta&#39; in form captionfixed - unsaved change of download server constellationfixed - default.txt is missingfixed - &#39;Index out of bounds&#39; when last download server is deletedfixed - &#39;feature&#39; how to remove custom program logo*** preview as beta 4 afixed - some smaller issues with download serversfixed - ExtractAndRun bugfixed - internal variables like %scriptDir% can contain commasadded - &#39;Stop Build on Error&#39; optionfixed - senceless &#39;v.&#39; in progress window*** preview as beta 4 bfixed - sort order bug with mapped foldersfixed - ShellExecuteEx bug when opening documents by associated appadded - Option to name log.html with additional time stampadded - Option to build log.html immediatelly after build w/o user interaction*** preview as beta 4 cfixed - Bug with If,(NOT)EXISTFILE/DIR checking empty floppy driveadded - Loop statement can run between characters, e.g. drive lettersadded - Strformat,INC and Strformat,DEC also work on charactersmodified - nicer output in log.html*** preview as beta 4 dfixed - bug with file type associationsfixed - Convert tool - wrong popup menuadded - Convert tool - remove file from listadded - suggestion how to have certain scripts be selected mandatory*** preview as beta 4 eadded - RegDelete of valuesadded - &#39;Not&#39; option to If command*** preview as beta 4 fadded - StrFormat can extract path, filename and extentions from URLs*** preview as beta 4 gfixed - bug in &#39;Exit on Error&#39; when extracting files*** preview as beta 4 hfixed - Minor code changes and corrections to clean the hint & warnings reported on compile timefixed - bug &#39;system error occurs&#39; in clicking log treeviewfixed - newly added web servers for download are not tracked in WinBuilder.ini*** preview as beta 4 ifixed - bug when running script from source editorfixed - delete temporary files after extracting an attachementadded - optional automatic log after clicking the STOP button*** preview as beta 4 jfixed - wrong parent&#39;s node check marks when selecting with space barchanged - RegDelete syntax*** preview as beta 4 kchanged - starting to clean up language supportchanged - remove &#39;charset&#39; from log.html meta content tagfixed - finally(?) wrong parent&#39;s node check marks when selecting with space bar*** preview as beta 4 l### some consolidation with respect to next beta releaseremoved - &#39;STOP&#39; in interface editor when using themes other than XDP-classicremoved - &#39;protected&#39; functionalityadded - about 30 items to language translationremoved - new RegDelete syntax, temporarily use old syntax (see magic wand)*** preview as beta 4 mchanged - new RegDelete syntax againfixed - some smaller GUI adjustementsadded - some more items to language translationadded - System,ERROROFF can get number of lines as optional argument*** preview as beta 4 nadded - files to be converted can be Drag&Drop-ed from exploreradded - files to be attached can be Drag&Drop-ed from exploreradded - If,ExistRegSection and If,ExistRegKeyadded - proxy supportadded - &#39;mandatory scripts&#39; functionality (replaces removed Protect functionality)cleaned - internal If command logic*** preview as beta 4 ochanged - WinBuilder always runs in CPU #0 only, also on multiprocessor and multicore systemsadded - internal variables %ProjectTitle% and %ScriptTitle%added - basic raw registry editor support*** preview as beta 4 pfixed - script was not shown if there was a folder with a name equal to the script&#39;s title*** preview as beta 4 qfixed - enable RegRead of expandable strings 0x2fixed - decode macro names only as first argumentfixed - store changed text in a fileboxadded - Show Progress Window also when processing codebox ot buttons.added - several smaller adjustementsadded - autosave option for source code editor*** preview as beta 4 rfixed - Changing source folder to a folder already on listchanged - parameter stack added for &#39;Run&#39; and &#39;Loop&#39; statementsfixed - bug occurring when a line contained a non-variable &#39;%&#39;*** preview as beta 4 sfixed - bug in If,QUESTION with space inside questionfixed - &#39;Use Path Rule&#39; now unchecked by defaultchanged - some smaller corrections*** preview as beta 4 tchanged - now nested &#39;begin&#39; - &#39;end&#39; is possible. &#39;begin&#39; stack addedchanged - no flushing window on missing sourcechanged - dont show scripts of 0 bytes size*** preview as beta 4 ufixed - bug in System,GETFREEDRIVEfixed - bug in previous / next selected: Changes were lost*** preview as beta 4 vfixed - bug in macro expanding*** preview as beta 4 w********************Loop statement can run between characters, e.g. drive lettersSample:[variables]%a_searchFile%=Program Files\BootStick_2008_001\Pstart.exe [process]Loop,%ScriptFile%,Try,a,zIf,EXISTFILE,%pstart%,ShellExecute,OPEN,%pstart% [try]Set,%pstart%,#c:\%a_searchFile%If,EXISTFILE,%pstart%,Loop,BREAK******************New Syntax:RegDelete,HKLM,Section,Key deletes &#39;Key&#39; under &#39;Section&#39;RegDelete,HKLM,Section deletes the complete &#39;Section&#39;Old Syntax:RegDelete,HKLM,Section,Key,Value deletes &#39;Value&#39; under &#39;Section\Key&#39;RegDelete,HKLM,Section,Key deletes the complete &#39;key&#39; under &#39;Section&#39;******************&#39;Not&#39; option to If commandYou negate an If command by inserting an &#39;Not&#39;If,someting,... > If,Not,something ...If,Not,%var1%,EQUAL,%var2%,commandhas the same result asIf,%var1%,NOTEQUAL,%var2%,commandThe current NOTEQUAL, NOTEXISTDIR, ... commands are still processes because of compatibility reasonsBut before processing they are internally changed into If,Not,...ThereforeIf,NOT,%var%,NOTEQUAL,%test%,...is invalid and may produce inpredictable resultsTry this in CodeBox:[Process]Set,%var%,3If,%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%,4If,%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,CommandIf,ExistRegKey,HKLM,Section,Key,Command***************Scripts having &#39;[Main] Mandatory=True&#39; are marked in the tree with a red exclamation mark and cannot be deselected.In the Interface editor there is a check box &#39;Mandatory&#39; 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 optionAutosave is On by default.You can switch it permanently On / Off by using the &#39;Options&#39; tab in Tools ModeThe &#39;save&#39; button in the source editor is only visible if autosave is off.[/codebox]--------------------------------------------------------------------------------------------------------------[size=3][b]Beta 4[/b] [i](29-Jun-2008)[/i][/size][b]Download:[/b] [url="http://winbuilder.net/download.php?view.33"]http://winbuilder.net/download.php?view.33[/url][b]Log of changes:[/b][quote]modified - log button will always be displayed when using codeboxadded - folder linking (link to script folder trees of a different project)added - Retrieve,FileVersion commandadded - output of localized stringsadded - StrFormat,Ceil and StrFormat,Flooradded - WBZip by booty#1 as standard de/encodingadded - System,GetFreeDrive commandadded - System,ErrorOff commandadded - Webget of FTP:// URLsfixed - Else,Set,%var%,xxx bugfixed - Some (WB 75 new) issues fixed with spaces in the %BaseDir% namefixed - bug in FileByteExtract (popup error if sequence not found)fixed - project tree bug with deselect on collapsingfixed - RegImport bugfixed - interface bug with unshown labels[/quote]***********************[b]Output of localized strings[/b]all strings defined in the language files can be used like variables,identified by their ID number $#nnnn.Sample:[code]If,Question,$#1541?,Command[/code]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!****************[b]StrFormat,Ceil and StrFormat,Floor[/b][code]StrFormat,Ceil,%var%,sizeStrFormat,Floor,%var%,size[/code]size can be - number e.g. 512 - character k meaning 1024 - character m meaning 1024 * 1024 *****************[b]Retrieve,FileVersion command[/b][code]Retrieve,FileVersion,%var%[/code]

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'









--------------------------------------------------------------------------------------------------------------


Beta 3 (10-Jun-2008)


Download: http://winbuilder.ne...oad.php?view.32


Log of changes:

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



Example of the new code syntax for begin/end for If and Else commands:

&#91;Variables&#93;

%var%=2



&#91;process&#93;

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,&#34;All Done&#34;


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





--------------------------------------------------------------------------------------------------------------

Beta 2 (06-Jun-2008)


Download: http://winbuilder.ne...oad.php?view.31

added - 'variable names can contain variables'
added - Multiple 'Else,If' possible
added - 'Loop' statement
added - %ExitCode% for ShellExecute
added - System,Cursor,Wait / Normal
added - Expand Echo,Message to optional Echo,Message[,Warn]
added - button to open Download Center from main window
added - updates.ini can will open a custom website if specific info is found ([info] -> Website=http://myexample.com)
fixed - greyed scrollbars area
fixed - bug with disappearing or moving components
fixed - bug with overwritten component, if wrong order
fixed - bug in RegGetNext
fixed - bug in script macro resolving
fixed - CopyOrExpand now works in W2000 host
fixed - Main treeview has a stable behavior
modified - Some cosmetics in log.html generation
modified - GUI editor fixes
modified - Log tab is only visible whenever it is not empty
modified - wb License is now visible by default under the Tools menu
removed - If,License and If,NotLicense commands
removed - IE dependency to allow wb work on Windows 2000 (no proxy support based on IE settings)
removed - Web and Help tab were removed to keep GUI simpler and quickier to load
removed - All built-in FTP upload functions were removed since most developer prefer to use own FTP clients
removed - Backup Tool was removed since it was rarely used




--------------------------------------------------------------------------------------------------------------

Beta 1 (12-May-2008)

Download: http://winbuilder.ne...oad.php?view.30

- 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 entry 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
- Add ProcessMessages in RunLite loop
- STOP button now works also during Exec command
- Fix bug in RegRead 0x3
- Accelerated creation of log HTMLs



One of the biggest overall improvement are the variables handling and the introduction of direct support for running bartPE plugins as if they were app scripts. To test this feature, add your plugins inside a LiveXP/NativeEx or any other XP based project that supports app scripts.

Happy testing, hope you like this new version!

:lol:

Edited by Nuno Brito, 14 January 2009 - 08:57 PM.


#2 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 12 May 2008 - 09:51 PM

Thanks indeed!

Regards,
Galapo.

#3 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7,687 posts

Posted 12 May 2008 - 10:39 PM

String handling! :lol:
Peter, if it weren't totaly inappropriate, i could kiss you! :thumbup:


:thumbup:

#4 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 12 May 2008 - 10:43 PM

String handling! :lol:


Yes, now I can ditch my 'StringTrim.exe' "hack" I had to introduce with the WimPack script to remove a final slash from a variable! These are very handy new functions.

Regards,
Galapo.

#5 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 13 May 2008 - 04:40 AM

Hi everyone!

I'm proud to announce the initial beta release of WinBuilder 075.
......

One of the biggest overall improvement are the variables handling ....

Happy testing, hope you like this new version!

:lol:



Congratulation for new (finally) beta under new Project management!
It took some time and I hope it will worth it!

I have made initial test with VistaPE 12 beta2 and VistaUltSP1 as a source:

1. Reported 116 warnings and all of them are:
System - Unrecognized setting [Refreshvars] System - Unrecognized setting [Refreshvars]

Attached File  log.zip   59.56K   333 downloads

2. Building went well, but Networking could not be started:
1_1.JPG

#6 TheHive

TheHive

    Platinum Member

  • .script developer
  • 3,654 posts

Posted 13 May 2008 - 04:46 AM

- Added - Version number next to script description
- Accelerated creation of log HTMLs

Usefull to have version number easily visible.
the log creation did seem to freeze things when creating it. Have to tests this new acceleration to see if it makes a difference.


introduction of direct support for running bartPE plugins as if they were app scripts.

Wow! Have to test this.


Quick Test:
I used NativeEx barebones. Got some errors about missing tools. Had to place them by hand for now. Just want to check the BartPE thing right quick. It seems to have copied the files over but it does not know how to read the XPE shortcuts and create them in the PE, I also notice none of the regular shortcuts are there also. Just the Start Folder. This is just a quick test. I will post more details on test from scratch on the weekend if possible.

#7 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 13 May 2008 - 05:17 AM

Initial testing of LiveXP with XPCorpSP3 as a source:

1. CabCompressing and UPX counters look strange: (%i%/147)
and because of that 200 errors are generated!

2. Build freezes after boot splash screen?!

3. When I have started building LiveXP without restarting WinBuilder
after finishing building VistPE build, it displays old VistaPE log file!?!?

I have been forced to close and restart WinBuilder in order to get proper log file!!!

Attached File  log.zip   175.76K   351 downloads

#8 ispy

ispy

    Silver Member

  • Tutorial Writer
  • 586 posts
  • Location:PILGRIM

Posted 13 May 2008 - 06:32 AM

Hi Guys :lol: ,

Are there any significant changes within this new version of WinBuilder to warant writing a new tutorial or is it pretty much the same. I could amalgamate new features within the existing WinBuilder Tutorial if the main changes go on behind the scenes as it were? Or is it to soon yet?

Regards & Best Wishes,

ispy :thumbup:

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 May 2008 - 07:34 AM

1. Reported 116 warnings and all of them are:
System - Unrecognized setting [Refreshvars] System - Unrecognized setting [Refreshvars]

Nuno missed to add the release notes to the download.
I think this part of it will explain.

- 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


Peter

#10 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 13 May 2008 - 07:47 AM

Nuno missed to add the release notes to the download.
I think this part of it will explain.


Peter


"System,RefreshVars" is part of LiveXP and VistaPE APIs.
It doesn't make troubles in LiveXP but in VistaPE does!

So, what is the solution: to replace "System,RefreshVars"
with "System,RebuildVars" or what?

#11 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 13 May 2008 - 08:14 AM

Speed increase is amazing, to say the least!

Problems with BootSDI, though:

BootSDI_err_1.png

BootSDI_err_2.png

This with version 59 but should be the same result with version 58 on nativeEx server (but untested).

Regards,
Galapo.

#12 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 May 2008 - 01:40 PM

"System,RefreshVars" is part of LiveXP and VistaPE APIs.
It doesn't make troubles in LiveXP but in VistaPE does!

So, what is the solution: to replace "System,RefreshVars"
with "System,RebuildVars" or what?

In most cases it is not more necessary to replace RefreshVars by RebuildVars. In most cases it just can be deleted.

I intentionally did not change the functionality of RefreshVars but used a new name.

This gives the script developet tha ability to use it only there where it is necessary.
If all RefreshVars are just replaced by RebuildVars, you loose a lot of the speed increase.

Peter

#13 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 May 2008 - 02:42 PM

Speed increase is amazing, to say the least!

Problems with BootSDI, though:

BootSDI_err_1.png

BootSDI_err_2.png

This with version 59 but should be the same result with version 58 on nativeEx server (but untested).

Regards,
Galapo.

On my system with XP SP2 source, BootSDI version 057 runs in all options
  • Fixed size
  • % of target
  • Free Space
each with compress RAM drive
Peter

#14 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 May 2008 - 03:13 PM

Initial testing of LiveXP with XPCorpSP3 as a source:

1. CabCompressing and UPX counters look strange: (%i%/147)
and because of that 200 errors are generated!

This is caused by an unitil now unknown bug in autoUPX and autoCompress:
The variable %I% is not initialized. While the old version got a random start value (usually 0), the new variables logic treates this as error.

On the nativeEx server there are new version 6 of autoCompress and version 21 of autoUPX. (nativeEx_core > finish > optimizations)

2. Build freezes after boot splash screen?!

I do not understand this

3. When I have started building LiveXP without restarting WinBuilder
after finishing building VistPE build, it displays old VistaPE log file!?!?

Independent of the project there is always only one log file 'log.html'. But this file has to be created after a build, by clicking the 'SAve as log.htlm' button.

Peter

#15 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 May 2008 - 03:19 PM

Yes, now I can ditch my 'StringTrim.exe' "hack" I had to introduce with the WimPack script to remove a final slash from a variable! These are very handy new functions.

Regards,
Galapo.

I suggest to use instead of
StrFormat,RTrim,&#34;String&#34;,1,%VarResult%
StrFormat,CTrim,&#34;String&#34;,\,%VarResult%
While the first always removes the last character (maybe it can happen that it is not a backslash), the second one only removes one leading and one trailing backslash, if present.

Peter

#16 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 13 May 2008 - 09:28 PM

While the first always removes the last character (maybe it can happen that it is not a backslash), the second one only removes one leading and one trailing backslash, if present.


Peter, I must say that that is a very useful function indeed!

Thanks,
Galapo.

#17 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 13 May 2008 - 09:30 PM

On my system with XP SP2 source, BootSDI version 057 runs in all options


So is anyone else having issues with BootSDI? amalux, is it functioning for you?

EDIT: I just tested version 057 and same result as above. Seems like WB isn't passing a variable correctly to calculate. I'm also testing with xpsp2 as source.

Thanks,
Galapo.

#18 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 14 May 2008 - 01:11 AM

Quite strange. I started with a completely fresh LiveXP folder -- and BootSDI ran properly without error!

Only issue I can see now is with the MMC script. Shortcuts are not generated at all.

Regards,
Galapo.

#19 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 14 May 2008 - 04:36 AM

Peter, is it possible to include your stand-alone freeLetter into a WB internal function?

Can we have an example of the structuring of the 'Else' command? Can we use multiple 'Else' calls: If,...,Else,...,Else...?

Thanks,
Galapo.

#20 TheHive

TheHive

    Platinum Member

  • .script developer
  • 3,654 posts

Posted 14 May 2008 - 06:41 AM

- Added - Version number next to script description

Where is this located. I dont see any script version number next to the script description on the gui.
It seems the same.

#21 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 14 May 2008 - 06:45 AM

Where is this located. I dont see any script version number next to the script description on the gui.


Notice the "19" in the screenshot: this represents the script version number.

version_number.png

Regards,
Galapo.

#22 TheHive

TheHive

    Platinum Member

  • .script developer
  • 3,654 posts

Posted 14 May 2008 - 07:20 AM

Thanks! That escaped me when i was looking for it. That is very convinient.

#23 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 14 May 2008 - 07:41 AM

Can we have an example of the structuring of the 'Else' command? Can we use multiple 'Else' calls: If,...,Else,...,Else...?


See Forum 'Learn and Teach'

Peter

#24 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 14 May 2008 - 07:44 AM

Peter, is it possible to include your stand-alone freeLetter into a WB internal function?

Yes, it is possible.

But the decision whether to do so, has to be made by the Boss! :lol:
Maybe he does not like to include a functionality in WinBuilder which
  • Is used rather rarely
  • Can be reached by a bit 'ShellExecute'
Peter

#25 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 14 May 2008 - 08:13 AM

Only issue I can see now is with the MMC script. Shortcuts are not generated at all.

You found a big bug! :lol:
&#91;Variables&#93;

 $CreateShortcuts$=Run,%ScriptFile%,CreateMMCShortcuts
is not processed.

Peter

EDIT: Fixed

Will be available with next beta

Edited by psc, 14 May 2008 - 09:06 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users