Jump to content











Photo
- - - - -

build 048 - beta 4, preview of new features


  • Please log in to reply
34 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 27 July 2006 - 05:44 PM

Hi,

This is the beta 4 of build 048, in the attachement below follows only openbuilder.exe in order to be tested before the 048 package is released.

It's mostly intended for .script developers have a chance to adapt their work in order to use the new features included and have them properly added on the next release.


Hopefully this will allow to release a much more stable package on build 048.


What's new?


New features are added as beta versions are released
--------------------------------------------------------------------------------------------------

Beta 1


New variables:

%day%, %month%, %year% - will each output their respective date in numeric format (%year% ouputs 2006, %month% outputs 7..)

%username% will output the name of the current logged user

%userprofile% outputs the folder where the current user settings are located (to help on the adaware script)


new interface component:

FileBox, wich allows to select a file and display it on the interface. (for xoblite when choosing wallpaper)

In this beta, the action that showed the log after pressing a button in the interface was removed, making buttons run sections in silent mode.

ExtractAllFilesIfNotExist has also been fixed.

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

Beta 2

- Added %version% to show version of openbuilder
- Improved filebox - now it allows to write on the path box, and the hint will display the filename (usefull for long filenames)

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

Beta 3

- Improved filebox - allows to show a dir select window instead of file select.

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

Beta 4 (relevant changes)

- Added new command StrFormat, wich allows to format a string

Options for this command:

Date - will convert a %var% to present time values.
Inc - increase a number by determined value
Dec - decrease a number by a determined value
Bytes - convert a number in bytes to it's equivalent in Kb's, Mb's, Gb's...

All the correct syntax for this command is available on the right-click menu on the source editor window
--------------------------------------------------------------------------------------------------






Still missing to add support for number operations like decrease, increase, add, subtract, multiply and possibily string functions like string replace amongst a few others.


This is not the final build 048 exe, it's only meant to keep people who make scripts updated regarding these new features and let them use them right now instead of waiting for the final build in a couple of days.

Keep more suggestions coming..

Have fun!
:P

Attached Files



#2 pscEx

pscEx

    Platinum Member

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

Posted 27 July 2006 - 06:26 PM

PicoXP runs well with version 048

[Project]
ProjectName=PicoXP
ISORootName=PicoXP
RamISORootName=PicoXP_RAM
ValidRamISO=NO

[Created]
Date=27.07.2006
Time=20:18
HostOS=Microsoft Windows XP [Version 5.1.2600]
OpenBuilderVersion=048

[Scripts]
0 - Retrieve Extended Project Info=27.07.2006 - 20:18
1 - Make directories=27.07.2006 - 20:18
2 - Copy and Expand files=27.07.2006 - 20:19
3 - Hives=27.07.2006 - 20:19
4 - TxtSetup=27.07.2006 - 20:19
5 - Set Keyboard=27.07.2006 - 20:19
6 - Screen resolution=27.07.2006 - 20:19
7 - Set CMD.EXE as default shell=27.07.2006 - 20:19
8 - Replace dll files=27.07.2006 - 20:19
9 - UPX Compression=27.07.2006 - 20:20
10 - Create ISO=27.07.2006 - 20:20
Q - Run ISO in qEmu=27.07.2006 - 20:20

[OS]
Type=XP
OldOS=None
SubType=Pro
ServicePack=SP2

[Cabs]
SP_CAB=SP2.cab
DR_CAB=driver.cab

[CustomLogs]
KeyboardLayout=Deutsch
ScreenResolution=800 * 600

[UPXed]
File1=ADVAPI32.DLL
File2=CMD.EXE
File3=CRYPT32.DLL
File4=CRYPTDLL.DLL
File5=CSRSRV.DLL
File6=DNSAPI.DLL
File7=FRAMEBUF.DLL
File8=KBDGR.DLL
File9=KBDUS.DLL
File10=NDDEAPI.DLL
File11=NETAPI32.DLL
File12=NTDSAPI.DLL
File13=PROFMAP.DLL
File14=PSAPI.DLL
File15=RPCRT4.DLL
File16=SAMLIB.DLL
File17=SAMSRV.DLL
File18=SCESRV.DLL
File19=SETUPAPI.DLL
File20=SHELL32.DLL
File21=SXS.DLL
File22=UNTFS.DLL
File23=USERENV.DLL
File24=VERSION.DLL
File25=VGA.DLL
File26=WINLOGON.EXE
File27=WINMM.DLL
File28=WINTRUST.DLL
File29=WS2_32.DLL
File30=WS2HELP.DLL
File31=IMAGEHLP.DLL

I'm going to change the projectinfo script due to the new %day% etc. variables.

BTW: I still would like to have the Openbuilder version as variable.

That would save to start an external autoit.

Peter

#3 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 27 July 2006 - 06:35 PM

Will do..

Your project info script outputs a really usefull set of informations.. :P

#4 pscEx

pscEx

    Platinum Member

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

Posted 27 July 2006 - 06:59 PM

Will do..

Your project info script outputs a really usefull set of informations.. :P



@dirkgently42
... and it writes to target before making ISO :P


Peter

#5 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 27 July 2006 - 07:26 PM

Beta 2 uploaded, details on first post.. :P


splash screen still shows as "beta 1", forgot to rename..

#6 pscEx

pscEx

    Platinum Member

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

Posted 27 July 2006 - 08:17 PM

Beta 2 uploaded, details on first post.. :P
splash screen still shows as "beta 1", forgot to rename..


Any important difference for my 'studies'?

Peter

#7 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 27 July 2006 - 09:49 PM

Beta 2

- Added %version% to show version of openbuilder


This should avoid an autoIT script.. :P

#8 dirkgently42

dirkgently42

    Newbie

  • Advanced user
  • 17 posts
  •  
    United States

Posted 28 July 2006 - 02:34 AM

@psc :P

Thanks! I like the projectinfo output.

#9 pscEx

pscEx

    Platinum Member

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

Posted 28 July 2006 - 07:03 AM

This should avoid an autoIT script.. :P


I'm voing do update Projectinfo.script accordingly.

Peter

#10 pscEx

pscEx

    Platinum Member

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

Posted 28 July 2006 - 08:41 AM

There is a difference between beta1 and beta2 causing me to concern:

In the PicoXP project ther is a link to the ProjectInfo script inside the Archive 'project'

The ProjectInfo script contains
%ProjectInfo%=%ProjectDir%\ProjectInfo.ini

In beta1 that evaluates to ...\PicoXP\ProjectInfo.ini. :P
In beta2 that evaluates to ...\Archive\ProjectInfo.ini. :P

I assume that a similar behaviour is with script file and directory, source and target directory etc.

I think that the beta1 version is logically correct.

Every script called by the Run command shoud have it's parent's environment.

Exception: %scriptfile% and %scriptDir%

Main.script: 

[process]

Run,child.script,process



Child.script: 

[subprocess]

Echo,%scriptfile%



[process]

Run,%scriptfile%.subprocess

Maybe in the future we'll have an additional %ParentScriptFile%? :P


Peter

Edited by psc, 28 July 2006 - 09:50 AM.


#11 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 28 July 2006 - 10:37 AM

In beta1 that evaluates to ...\PicoXP\ProjectInfo.ini.
In beta2 that evaluates to ...\Archive\ProjectInfo.ini.



On beta 2 I only added %version% and improved filebox, I wonder why it would give different results? :P


Every script called by the Run command shoud have it's parent's environment.


Will start working on this, I hope to give good news soon enough.. :P

#12 pscEx

pscEx

    Platinum Member

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

Posted 28 July 2006 - 11:57 AM

On beta 2 I only added %version% and improved filebox, I wonder why it would give different results? :P


I tried it again and now eveything ok. Both times created in the PicoXP directory.
I do not know what happened before, but let's say that the issue is closed.

Peter :P

#13 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 28 July 2006 - 12:16 PM

I was going to doublecheck everything again to see what could be happening..


Could this be a sabotage attempt by the famous mouse? :P

:P

#14 pscEx

pscEx

    Platinum Member

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

Posted 28 July 2006 - 12:47 PM

I was going to doublecheck everything again to see what could be happening..
Could this be a sabotage attempt by the famous mouse? :P

:P


Maybe :P

But another issue: The ProjectInfo shows processed scripts like:

[Scripts]
0 - Retrieve Project Info=28.07.2006 - 13:53

That is not possible with day, month, year only.

Suggestion:

What do you think about:
DTFormat,"format",%TargetVariable%
Where format is a string using the Delphi FormatDateTime conventions.

Besides the overhead you just need one line of code:
result := SysUtils.FormatDateTime(format, SysUtils.Now());

Test:
procedure TSDIAppForm.btnDoClick(Sender: TObject);

 var

   format, result: string;

begin

  format := txtFormat.Text;

  result := SysUtils.FormatDateTime(format, SysUtils.Now());

  lblResult.Caption := result;

end;


Peter

#15 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 28 July 2006 - 12:53 PM

That seems a good idea.. :P

It would save a lot of headaches, and thanks for the code snippets, they're very good for saving coding time and letting me know what you need.. :P

#16 FeReNGi

FeReNGi

    Member

  • Advanced user
  • 43 posts

Posted 28 July 2006 - 01:00 PM

keyboard Dutch (belgium) is missing

include my BARTPE plugin for it:

; PE Builder v3 plug-in INF file 

; KEYBOARD.inf 

 

[Version] 

Signature= "$Windows NT$" 

[PEBuilder] 

Name="Default: Keyboard" 

Enable=1  

 

 

; KEYBOARD LOCALIZATION 



 

[Default.AddReg] 

0x1, "Keyboard Layout\Preload", "1", "00000813" 

0x1, "Keyboard Layout\Toggle", "Hotkey", "1"



[SetupReg.AddReg]

0x1, "ControlSet001\Control\Keyboard Layout\DosKeybCodes", "00000813", "be"

0x1, "ControlSet001\Control\Keyboard Layouts\00000813", "Layout Text", "Belgian (Period)"

0x1, "ControlSet001\Control\Keyboard Layouts\00000813", "Layout Display Name", "@%SystemRoot%\system32\input.dll,-5001"

0x1, "ControlSet001\Control\Keyboard Layouts\00000813", "Layout File", "KBDBE.DLL"





[SourceDisksFiles]

KBDBE.DLL=2,,4


#17 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 28 July 2006 - 02:16 PM

Thanks! :P

There are still a lot of keyboards missing to be added on the keyboard script, aren't they all listed in txtsetup.sif? :P


I'll check it for sure later, perhaps it would be possible to add those local keyboard settings still missing from there.. :P

#18 pscEx

pscEx

    Platinum Member

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

Posted 28 July 2006 - 02:21 PM

Thanks! :P

There are still a lot of keyboards missing to be added on the keyboard script, aren't they all listed in txtsetup.sif? :P
I'll check it for sure later, perhaps it would be possible to add those local keyboard settings still missing from there.. :P


Have a look to my Keyboard.script post.
It works for every undefined keyboard.

Peter

#19 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 28 July 2006 - 03:13 PM

You're completely right..

Sorry for not following your developement on the other post, I should have noticed it sooner.. (and learn that txtsetup is just not the way to go.. :P )

I will take a good look at it when I'm done with the beta improvements for 048.. :P

#20 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 29 July 2006 - 11:26 AM

psc

I was reading more your post regarding the code snippet for formatting strings, then I noticed one important detail..

There are some new variables that you can now use as %day%, %month%, %year% to output the current date, they're even available on the right click menu on the source editor window.. :P

#21 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 29 July 2006 - 11:49 AM

beta 3 is available

You can get it on the first post,

I've added the option to use a dir select window instead of a file select box - you can choose wich to use on the interface editor.

There are still plenty of things I intend to add/fix on the interface, but for now, I'll dedicate some time to catch up with the latest scripts.

In the meanwhile more suggestions of features to add or correct are more than welcome!

:P

#22 pscEx

pscEx

    Platinum Member

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

Posted 29 July 2006 - 01:52 PM

The PicoXP project runs well with beta3

In the ProjectInfo script still external files are used to catch vertain values.

I still need
DTFormat,"format",%TargetVariable%
and
Inc,%variable%

Suggestion:

Would be nice if in a .link file there is a Title tag to overwrite the target .script Title.

Currently on one project you may get the visual output in the progress window

1- Copy
2 - Add Explorer
3 - UPX

while on the other project you perhaps see

1 - Copy
5 - Add CDBurner
3 - UPX


Inspite technically everything is running well, this disturbes the user.

Peter

#23 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 29 July 2006 - 02:27 PM

I still need

DTFormat,"format",%TargetVariable%
and
Inc,%variable%


Will work on this right after 048, it's time to publish at least one build without the "famous mouse".. to get a more stable ground to work on for now..




Suggestion:

Would be nice if in a .link file there is a Title tag to overwrite the target .script Title.

Currently on one project you may get the visual output in the progress window

while on the other project you perhaps see
Inspite technically everything is running well, this disturbes the user.


I'll see if it can be applied without damages, I agree that it would be nice for custom projects to use their own title tags.. :P

#24 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 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 30 July 2006 - 01:37 PM

Beta 4 is available

Please check the first post to get the latest executable.


This beta will support a new command called strFormat, wich allows to convert a string to current date, increase/decrease the value of a %variable% and convert a number in bytes to a properly formatted number in Kb's, Mb's, Gb's, I hope this can ease the scripting of psc..


I've also done a few bugfixing on a few details, I'll start working on the next build release now.. :P

#25 pscEx

pscEx

    Platinum Member

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

Posted 30 July 2006 - 02:03 PM

Beta 4 is available

Please check the first post to get the latest executable.
This beta will support a new command called strFormat, wich allows to convert a string to current date, increase/decrease the value of a %variable% and convert a number in bytes to a properly formatted number in Kb's, Mb's, Gb's, I hope this can ease the scripting of psc..
I've also done a few bugfixing on a few details, I'll start working on the next build release now.. :P



:P Just before a few minutes I published a new PicoXP.

I will add these features. I think that finally PicoXP neds an external file only for getting driver.cab, sp<x>.cab
:P

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users