Help - Search - Members - Calendar
Full Version: WinBuilder 075 - beta testing
The CD Forum > The CD Forum > WinBuilder
Nuno Brito
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 of 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.



Beta 5 (18-Sep-2008)


Download:
http://winbuilder.net/download.php?view.34

Log of changes
CODE
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.




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


Beta 3 (10-Jun-2008)


Download: http://winbuilder.net/download.php?view.32


Log of changes:

QUOTE
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:

CODE
[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:

QUOTE
[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.net/download.php?view.31

QUOTE
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.net/download.php?view.30

QUOTE
- 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 bartPE plugins inside a LiveXP/NativeEx or any other XP based project that supports app scripts.

Happy testing, hope you like this new version!

smile.gif
ordan
Greate beta. I can define variable from same variable. Huray
Nuno Brito
A new beta release was published! laugh.gif

Get it here: http://winbuilder.net/download.php?view.31

Log of changes:
QUOTE
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


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

This is an important release because it represents a big step of improvement when compared to the latest winbuilder version.


With this beta we can say that WinBuilder has reached a significant milestone and is now using a structured script language with the introduction of "loop", "else" and other functions that complete the most usual coding requests made by .script developers.

Many bugfixes on the script language were also introduced, making it more reliable and efficient. The details are mentioned on the log of changes but will soon be added to the official documentation at http://winbuilder.net/help

-----

It is also the return of support for Windows 2000 machines, in order for this to be possible we removed the IE component created by BSalsa and adopted the default ActiveX based IE component that comes as standard with delphi 7. This component is well supported under Windows 2000.
One other obstacle was the CopyOrExpand command which was based on a setupapi.dll function that was only available from XP and above. Peter has solved this matter with elegant simplicity and now this command is also available for Windows 2000.

With these two features corrected, it may open the way to run WinBuilder under a Windows 98 host if necessary (not possible to test at this time but would appreciate if someone with Win98 could provide some feedback).

One other good thing is that now WinBuilder is also running under Ubuntu/Linux - this is a preliminary support but WinBuilder.exe starts up just fine and more details will soon be posted for those interested in trying this feature for themselves.

-----

Support for BartPE plugins was also severely improved to a level in which it became possible to copy the whole plugin folder from a Bart's PE builder location into your project folder without any changes.

For our tests, we used the UBCD4win distribution since it is the one currently most up to date and all other plugins should also work fine.

Just a reminder that unlike bartPE - these plugins are not being executed with the MS INF processing engine. They are converted on-the-fly to app script language which allows most of them to run perfectly well in non-XP/2003 sources like VistaPE or any other project.

We used LiveXP as initial base project for testings. If there is interest in supporting VistaPE, please mention here or start a small work-team to start exploring this feature.

A small tutorial should soon be posted to explain step by step how this works.

-----


A major cleaning took place on WinBuilder's User Interface.

Many tools that were rarely used were removed (Backup, Web, FTP upload and such) and this made the overall look much simpler to use.


For .script developers - the create script, convert .inf plugin and upload tab remain available.

Upload tab no longer has a FTP client but the option to create updates.ini and index.html from the files inside the Projects folder remain exactly the same but it has a feature that I'm sure many developers will like.

.script developers now have the option to specify the support page for their projects so that you can include latest news, instructions or anything else you feel appropriate. A good example the is the default http://updates.boot-land.net server that is now showing the latest 10 topics on this forums, a link to the latest beta versions and some informations.

------


One remark - the download system will no longer use the proxy settings from your IE to download files, therefore you will need to use a direct web connection. There might also be cases where your firewall will ask if WinBuilder is allowed to access the internet - this happens because we are no longer downloading files directly throught Internet Explorer.

To add support for proxies, I'm considering the possibility of "extras" - small executables that wb can use instead of the internal functions (like download for example) and overcome this sort of limitations with external solutions. (that could also be provided by other members)

This method was mentioned when discussing the introduction of better compression techniques using externals tools and we may be using this concept in the future.

------

In conclusion..


Sorry for the very lengthy post - a lot of changes were added indeed.

Let's hope this beta can run well on your projects, please let us know how it behaves.


Thank you for testing!

smile.gif
singchung
I put the BartPE ghost32 plugin into the App\Disk Tools of VistaPE-Core v12 Beta, when executing it, it shows "Access violation at address 004047E in module 'Winbuilder.exe'. Read of address 00000001." sweatingbullets.gif
Nuno Brito
Let's debug it then! smile.gif

My initial testings were all done with LiveXP but I see no reason why we can't start testing with Vista projects.

To avoid confusions with script files, you should place all your plugins inside the plugin folder just like bartPE does.

Instructions: Create a folder called "plugin" inside your VistaPE project (assuming VistaPE is located on "C:\VistaPE" this would be "C:\VistaPE\Projects\VistaPE-Core\plugins" and place your plugin there or even all the other bartPE plugins you wish to try.


After this you can rebuild your project.

Look on the log section and find the entries related to your plugin, I've tested a few plugins under VistaPE and it was reported this message:
QUOTE
You must define %LocProgSM% to use this plugin!


VistaPE needs to have defined the %LocProgSM% variable (the developer of VistaPE should soon add this)


But we can try to add this for ourselves and this way save some time to Nightman.


Would you please open a new topic so that we can exclusively discuss support for bartPE plugins under VistaPE?

Thanks! smile.gif
TheHive
You have to make sure the apps youre trying to run in Vista actually work under Vista. Most plugins are made to work with XP and 2003 in mind. Well except the newer ones which most programs support Vista.
pedro_le15
QUOTE (singchung @ Jun 8 2008, 09:12 AM) *
I put the BartPE ghost32 plugin into the App\Disk Tools of VistaPE-Core v12 Beta, when executing it, it shows "Access violation at address 004047E in module 'Winbuilder.exe'. Read of address 00000001." sweatingbullets.gif

This error appear generaly when there is an error in the interface of a script
check the section interface in the script
Nuno Brito
Another beta released, this newer version address the issue that kept the webget command from working properly.

The issue seemed to be related to the case where a it's not a direct link that is specified but rather a redirection is required.

Also adds full support for "begin.. ..end" code blocks inside scripts and fixes some reported bugs about the "else" command also recently introduced.


Paraglider also requested to the script navigations buttons (left and rigth arrows buttons) to be (re)introduced to ease navigation between selected scripts.

This beta should prove itself to be fairly stable.


Download links and detailed log of changes was added on the first topic.

----


Still missing volunteers to test bartPE plugins under vistaPE and add the missing pieces, any takers?

smile.gif
The BlackBull
I found two errors in wb 0.75 (last beta) with vistape core v12:
a) the download center doesn't work. I can't download anything ( I tried all profiles and nothing!)
cool.gif after using the wb 0.74 to download the updated scripts, turned back to 075 and found that after build the iso I can't boot parted magic ( received error 15: file not found)
Nuno Brito
Hi BlackBull,

You are likely working from a network that uses a proxy to get onto the internet such as we usually see in companies or schools, right?

This issue was also reported yesterday by Phatboy: http://www.boot-land.net/forums/?showtopic=5160

On version 074 the download engine was working based on IE and inherited it's definitions to get online.

The previous version was working fairly well but it prevented winbuilder from running on linux and windows 2000 hosts so it had to be replaced with an internal solution to avoid IE related dependencies.

We are thinking about adding support for using an external download engine (whenever available) to overcome these limitations and still keep the IE depending code outside winbuilder.exe

Peter (PSC) already agreed to look onto this matter after finishing some code cleanup so I recommend looking on the link I mentioned above from time to time to see what is being done regarding this issue.

------
QUOTE
turned back to 075 and found that after build the iso I can't boot parted magic ( received error 15: file not found)


Please post your log.html file otherwise we are left with very little information to work with and see why it isn't working.

The latest VistaPE beta version is only working using some features introduced over the latest wb betas but the log.html file is crucial to be aware of your build conditions and recognize details that you might miss somehow.

And based on what you write I would suggest disabling multi boot on the configuration section or ensure that the Parted magic is available as a script to run during the project build.


Also recommend posting the bug on the VistaPE forum where other developers might be interested in reading and maybe find what is happening.

If you're having troubles building it the first time then it might also be due to misconfiguration of some sort.

Here are some things you can do:

- Run with UAC disabled and Admin privileges
- Use a short path (d:\VistaPE)
- Ensure to use a partition where you have full write permissions
- Disable agressive Antivirus / Firewall
- Check available disk space where you want to build the boot disk
- Download all recommended files without disabling any file downloads (sometimes users disable tool downloads like mkisofs.exe)
- Build the first project without changing anything to ensure it works before applying modifications
- Read the forums for similar incident reports
- In case of doubt, build from an emulated machine to ensure clean work conditions
- Avoid using any modified windows Vista DVD sources (modified by vLite for example)
- Try the WAIK to build the boot disk in alternative
- Check the log.html file to see any warnings or errors that were reported during the project build

---

There is also a SVN for VistaPE that should be ready to release an updated version of this project within a week or two, I'll likely post here a topic to let you know when it's ready.


Good luck.

smile.gif
The BlackBull
Hi Nuno!
Yes my internet access is at work and there we use a proxy. About the Parted magic issue first of all the downloaded iso (from exo.enarel.eu) doesn't have the files listed in the script: kernel.pml, initrd.pml and pmagic.fs. The files in iso are: bzimage, initrd and pmagic. I decided not copy any files to the pmagic folder and let the builder itself download the needed files, so run the winbuilder but this way was a fault: the builder create an empty folder (doesn't download any file from the internet) and of course produced a FileCopy error (see the log). Then I checked the isolinux.cfg from the iso and concluded that the kernel.pml should be the file bzimage so I did the needed modifications to the script run the builder and received the file not found error again.

Parted Magic section from the log file
CODE
WinBuilder [075 beta 4]

%BaseDir% = C:\VistaPE\
(winbuilder's path is replaced by the variable %basedir% to make the log easier to read)


[Script] This project is running, please wait until it is completed. Parted Magic Linux 2.2

[Info] File [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\PartedMagic.script] Version
[Info] Processing Parted Magic Linux...
[Ignore] IF - File exists: [%BaseDir%\Target\VistaPE-Core\menu.lst] evaluated string: [If,NotExistFile,"%MenuFile_GRUB%",Exit,"Please enable MuiltiBoot mode and Grub4Dos before using this script"]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/kernel.pml] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\kernel.pml]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/initrd.pml] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\initrd.pml]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/pmagic.fs] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\pmagic.fs]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/etc.7z] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\etc.7z]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/kernel_modules.7z] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\kernel_modules.7z]
[Failed] WebGet - Failed to download file: [http://www.vistape.net/project.addon/pmagic22/root.7z] to directory: [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\root.7z]
[Info] Processing Parted Magic Linux...
[Success] IF - Directory exists: [%BaseDir%\Target\VistaPE-Core\boot\plinux] executing command: [DirDelete,%targetdir%\boot\plinux]
[Success] DirDelete - Deleted directory [%BaseDir%\Target\VistaPE-Core\boot\plinux]
[Success] DirMake - Created directory: [%BaseDir%\Target\VistaPE-Core\boot\plinux]
[Success] DirMake - Created directory: [%BaseDir%\Target\VistaPE-Core\boot\plinux\pmodules]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\kernel.pml] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\initrd.pml] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\pmagic.fs] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\etc.7z] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux\pmodules]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\kernel_modules.7z] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux\pmodules]
[Failed] FileCopy - Failed to copy [%BaseDir%\Projects\VistaPE-Core\OtherOS\Parted Magic Linux\root.7z] to: [%BaseDir%\Target\VistaPE-Core\boot\plinux\pmodules]
[Success] TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-Core\menu.lst] line: [title Parted Magic Linux 2.2 (Runs from RAM)] Option:"Append"
[Success] TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-Core\menu.lst] line: [kernel /boot/plinux/kernel.pml vga=788 noapic root=/dev/ram0 squashfs=/boot/plinux/pmagic.fs pmodules=/boot/plinux//pmodules init=/linuxrc ramdisk_size=200000 keymap=us liveusb quiet toram] Option:"Append"
[Success] TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-Core\menu.lst] line: [initrd /boot/plinux/initrd.pml] Option:"Append"
[Success] TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-Core\menu.lst] line: [ ] Option:"Append"
[Done] Parted Magic Linux 2.2
[Clock] Script time: 2 minutes, 6 seconds and 797 miliseconds
[Done] Script has been sucessfully processed!

You can post this log on the Boot Land forums whenever you need help to properly debug the errors on this project
More detailed documentation can be found on our wiki

WinBuilder © 2006-2007 Nuno Brito
jaclaz
Not what you want to hear (I guess), but parted magic has been recently modified as to be able to be booted and run directly from a .iso file, loaded via grub4dos:
http://www.boot-land.net/forums/?showtopic=5078
http://www.boot-land.net/forums/?showtopic=5041
http://www.boot-land.net/forums/?showtopic=4902
http://www.boot-land.net/forums/?showtopic=4902&st=68
http://www.boot-land.net/forums/?showtopic=4902&st=101

jaclaz
The BlackBull
Thanks jaclaz for your advice. As I understand the whole thing resolves burning the pmagic.iso as a file inside the iso generated by winbuilder and loading or booting the pmagic iso?
jaclaz
QUOTE (The BlackBull @ Jul 13 2008, 09:05 AM) *
Thanks jaclaz for your advice. As I understand the whole thing resolves burning the pmagic.iso as a file inside the iso generated by winbuilder and loading or booting the pmagic iso?


Yes, basically all you have to do is to add the pmagic.iso file (and hopefully in the future other Linux based minidistro's) to the CD/DVD or it's .iso image and have it loaded by grub4dos, it is not at all "limited" to Winbuilder projects, it is just an easier and "more compact" way to add pmagic to a multiboot something, that could as well your hard disk or a USB stick.
If one wants to automate it, creating a "normal" batch or a .script for winbuilder should be trivial.

jaclaz
The BlackBull
@jaclaz
I read all the topics that you pointed me about booting the pmagic iso from grub4dos, and now have an idea of what to do but I'm so confused on how to do. Can you or other member please put the whole proccess in a new post? Thanks

Edit:
@jaclaz
@nuno brito
Maybe the solution is put the pmagic.iso in the custom folder?
jaclaz
QUOTE (The BlackBull @ Jul 13 2008, 03:52 PM) *
Maybe the solution is put the pmagic.iso in the custom folder?


That may take into account the copying of the pmagic.iso, but you also need to add to menu.lst the entry detailed by ilko:
http://www.boot-land.net/forums/?showtopic=4902&st=68
and you must have the Winbuilder project boot (or be able to load) grub4dos.

Thus the suggested way is to write a very simple .script, here you can find an example on how to add some lines to menu.lst:
http://www.boot-land.net/forums/?showtopic=4708

jaclaz
The BlackBull
Thanks jaclaz. I modified the nightman script adding new folder in the root of cd named image and copying the pmagic.iso to that folder. Also copied the grub4dos.lst to the root. After all I run the resulting iso in vmware and WORKS!!!. I ended to late at night and left the modified script in my work's computer so later I will upload the new script for all the comunity. Thanks to ilko, samk and to the autor of the Parted Magic Linus (sorry I can't remember his name right now).
Nuno Brito
Beta 5 (18-Sep-2008)


Download:
http://winbuilder.net/download.php?view.34

Log of changes
CODE
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.




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

This has been a long beta to finish, Peter almost reached all possible letters in the alphabet and beta 5 is a more mature version that is starting to be more turned towards a stable release.

Experimental support for writing/reading hives without resort to win32 functions was also added but is not yet finished due to some bugs in the code that will need to be solved with some luck in time for beta 6.

Other than this, hope you enjoy the beta and let us know what you think!

smile.gif
royalbox
Hello,
I downloaded winbuilder 0.75 beta 6 and have added no projects (trying to learn the hard way). I opened winbuilder and went to create script..., filled in a few values and thought I'd try and save the script. As I type in the Filename field, I get this DialogBox:

royalbox
Hello Again,
I was using the source tab to create a script and moved to the Interface Editor tab. When I moved back to the Source tab my additions had gone. I looked for a save button, the only one being Save script and launch another editor window which I know isn't what I really wanted but I clicked it nether-the-less. I got the standard windows error DialogBox and also this one:



and then this:



and then one after another until I closed winbuilder manually. Maybe the exception handling needs tweaking as well as the cause , but what do I know?. Anyway, still persevering!
jaclaz
Temporarily, use a non-beta version, namely 074:
http://winbuilder.net/download.php?list.3

jaclaz
royalbox
Hello jaclaz,
Thanks. No more feedback required then on this version?
Nuno Brito
Hi RoyalBox, please do continue with feedback regarding the bugs you find and I will be trying to replicate them to confirm your findings. Of course that version 074 is the one recommended as stable even thought it also needs to be updated to reflect the changes made over the past year.

We will all be working to get a stable release within two weeks so your feedback is certainly welcome to help iron out the bugs!

QUOTE
downloaded winbuilder 0.75 beta 6 and have added no projects (trying to learn the hard way). I opened winbuilder and went to create script..., filled in a few values and thought I'd try and save the script. As I type in the Filename field, I get this DialogBox:


This is confirmed.

A bug occurs because the create new script tool is expecting to find at least one project along with the usual folder structure. At this point I'd suggest that a user shouldn't be allowed to leave the download center if there are no projects to use. Or at least if he does leave the download center, all these tools that expect a project to be available should be hidden from sight.

What do you think?

--------------
QUOTE
I was using the source tab to create a script and moved to the Interface Editor tab. When I moved back to the Source tab my additions had gone. I looked for a save button, the only one being Save script and launch another editor window which I know isn't what I really wanted but I clicked it nether-the-less. I got the standard windows error DialogBox and also this one:


This is confirmed. It's also being discussed today by other users - http://www.boot-land.net/forums/index.php?...ost&p=55459

We've had a few older discussions that removed the Save button, maybe it can be added back to solve issues like the ones you report.

MedEvil also referred the fact that there might be times where it is not desired to auto-save the modifications on the script.

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

I've sent a message to Peter (PSC) about your comments so that he can read your feedback.

--------

-- btw --
There's a poll to being held at this moment to decide if the save button should be brought back to life - http://www.boot-land.net/forums/index.php?showtopic=6810

smile.gif
royalbox
Just lost my long post because I wasn't logged in, I'll do a shorter one.

QUOTE
What do you think?

You've probably gathered by now that I'm not going to be the typical winbuilder user rolleyes.gif.
I'm currently trying to create a small core build from scratch by examining some of the existing scripts just for the fun of it and because I have this inbuilt aversion to just taking what's given. So I doubt I'll be using the download centre but I'm sure your idea will suit most people. Strange people like me can always start a script in notepad and then winbuilder will find it and be happy.

QUOTE
MedEvil also referred the fact that there might be times where it is not desired to auto-save the modifications on the script.

Perhaps you could catch Control + V . I'm always doing that out of habit but of course it isn't doing anything. Actually, I'm finding working in notepad (I'm using a replacement called notepad2) as I can use save, find and "find and replace".

Anyway, winbuilder is growing on me. When I finally get the minimal build set to my liking I'll replace pebuilder with it (sorry Bart). I see from Bart's website that he recently tried to release an update to pebuilder but the build failed and he didn't have time to sort it out.
Nuno Brito
QUOTE
Just lost my long post because I wasn't logged in, I'll do a shorter one.

Usually it's possible to click on the back button and get all text back, I know the feeling of losing a good text after writing it for some 30 minutes and then need to restart from scratch.

Peter has already read your comments ( http://www.boot-land.net/forums/index.php?...ost&p=55570 ) probably tomorrow we'll know what has been done regarding this matter. I'll also be helping him this week with wb coding so I'll be sure to remember checking these details.

-----
QUOTE
You've probably gathered by now that I'm not going to be the typical winbuilder user.
I'm currently trying to create a small core build from scratch by examining some of the existing scripts just for the fun of it and because I have this inbuilt aversion to just taking what's given. So I doubt I'll be using the download centre but I'm sure your idea will suit most people. Strange people like me can always start a script in notepad and then winbuilder will find it and be happy.


wb is a good tool but what really matters is learning more about the OS and this will always be a manual process to see how things work. It's not strange at all, even today we've talked about a similar case when debugging a portable windows 2000 edition with "caveman" methods - http://www.boot-land.net/forums/index.php?...ost&p=55479

QUOTE
Perhaps you could catch Control + V . I'm always doing that out of habit but of course it isn't doing anything. Actually, I'm finding working in notepad (I'm using a replacement called notepad2) as I can use save, find and "find and replace".

This is a good feature request, would you mind placing it on the tracker to avoid seeing it forgotten? http://www.boot-land.net/forums/index.php?...;showproject=12

smile.gif
royalbox
Hello Nuno, just a quick reply before going to bed. Just had to say that I meant Control + S of course oops.gif.
I will post the request tomorrow, really need some sleep now.

Thanks Nuno.
psc
royalbox!

Thanks for your reports
QUOTE (royalbox @ Jan 17 2009, 01:49 PM) *
Hello,
I downloaded winbuilder 0.75 beta 6 and have added no projects (trying to learn the hard way). I opened winbuilder and went to create script..., filled in a few values and thought I'd try and save the script. As I type in the Filename field, I get this DialogBox:



Fixed
QUOTE (royalbox @ Jan 17 2009, 04:06 PM) *
Hello Again,
I was using the source tab to create a script and moved to the Interface Editor tab. When I moved back to the Source tab my additions had gone. I looked for a save button, the only one being Save script and launch another editor window which I know isn't what I really wanted but I clicked it nether-the-less. I got the standard windows error DialogBox and also this one:



and then this:



and then one after another until I closed winbuilder manually. Maybe the exception handling needs tweaking as well as the cause , but what do I know?. Anyway, still persevering!

Loosing contents by clicking a different tab is fixed.

The other issue I could reproduce and will check.

'Fixed' means that it is on our development server and will be available next beta.

If you are curious, have a look here, but if you use it, please respect the rules.

Peter
royalbox
Thanks Peter, that sounds good.
Another thing, the grid doesn't seem for me on the interface editor. I know I should post in the other forum but I find it frustrating trying to find my way around there for some reason.
psc
QUOTE (royalbox @ Jan 21 2009, 06:19 PM) *
Thanks Peter, that sounds good.
Another thing, the grid doesn't seem for me on the interface editor. I know I should post in the other forum but I find it frustrating trying to find my way around there for some reason.

If you are in the Interface Editor, get a context menu with 'click right'

If the grid does not work in generally or if you have additional questions, please explain in more detail.

Peter
royalbox
QUOTE
If the grid does not work in generally or if you have additional questions, please explain in more detail.

Well, I did right-click and select a grid option but I see no grid and the controls were still free. don't worry about it though it's not that important. If it works for everyone else it must be something I'm doing wrong.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.