There are many scripts that do so, and every time they search for the architecture, which costs time...
Edited by Darijo, 18 May 2011 - 12:43 PM.
Posted 18 May 2011 - 12:43 PM
Edited by Darijo, 18 May 2011 - 12:43 PM.
Posted 18 May 2011 - 01:34 PM
Posted 18 May 2011 - 01:42 PM
I give up. Apparently a perfect PE to most, depends on the right names for scripts and variables and pretty code, while the project does not necessarly needs to create a useable PE, it seems.
There are many features that should not be provided by WinBuilder. After so many years whinning for advanced scripting, by now we should have had enough features to make everyone happy. But look how difficult it is for a single person to upgrade the engine or project to a more recent version..Why do you think, there are batch and Autoit scripts used in some of the scripts?
Wimb even abandoned WB all together.
Posted 18 May 2011 - 03:31 PM
I was referring to the expanded unpack pedrole15 wrote that adds download/unpackUnpack is useful, that was the reason why I have created it: http://goo.gl/mC4k4
If you use 30 lines of code to replace the use of unpack, then something is definitively wrong. I would also prefer 30 lines of code that I can read, than one single line code that is plain hieroglyphs to me..
That is also one of the reasons why each command should be kept as simple as possible, cramming up too much functionality per each command makes life harder on everyone.
[Download] If,NotExistDir,%GlobalTemplates%\%ProgramFolder%,DirMake,%GlobalTemplates%\%ProgramFolder% Echo,"Downloading %ProgramTitle%..." WebGet,%DownloadURL%,"%GlobalTemplates%\%ProgramFolder%\%ProgramTitle%.zip" If,ExistFile,"%GlobalTemplates%\%ProgramFolder%\%ProgramTitle%.zip",Begin Run,%ScriptFile%,Unpack Else,Begin // something didn't work. DirDelete,%GlobalTemplates%\%ProgramFolder% DirDelete,%Target_Prog%\%ProgramFolder% Exit,"Failed downloading %ProgramTitle%!!" End End [Unpack] Echo,"Processing files..." ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%GlobalTemplates%\%ProgramFolder%\%ProgramTitle%.zip#$q -o#$q%GlobalTemplates%\%ProgramFolder%\#$q" If,ExistFile,%GlobalTemplates%\%ProgramFolder%\%ProgramEXE%,Begin FileDelete,"%GlobalTemplates%\%ProgramFolder%\%ProgramTitle%.zip" Else,Begin Exit,"Failed to unpack %ProgramTitle%!!" End End
If,NotExistDir,%GlobalTemplates%\%ProgramFolder%,DirMake,%GlobalTemplates%\%ProgramFolder% Echo,"Downloading %ProgramTitle%..." // common api download/unpack Unpack,%DownloadURL%,URL,%GlobalTemplates%\%ProgramFolder%,%GlobalTemplates%\%ProgramFolder%
most app scripts I have seen are simple, you are familiar with my work and know that my app scripts are kept as simple as possible as well, however some of the apps are not so simple and require services, extensive registration, dependencies, etc. that must be considered. this all adds to the work the app script must do if the program is to so much as start in PE. Also adding to complexity is the effort to avoid encoding (often large and/or frequently updated) applications into the app script itself. the apps are download from the programs website and must be unpacked from the installer, often containing x86/x64 specific files which must then be sorted out depending on the architecture of the PE being built. see my wireshark/winpcap script for a good example of this.Coding app scripts became a complex task without reason to be that way. The simpler an app script is, the more odds for survival in the future. You are now enjoying what we have been defending since a long time.
If there wasn't so much flexibility on winbuilder and respective API, I am sure that the end user results would be better. Many people would complain but they would follow a standard path to create projects and scripts that could be improved and reused by others.
So, everyone complains that user experience is bad and we are aware of this fact but have no way of making developers follow standards or even rules that they don't "like".
nobody is forcing anyone to use the api. most do because it IS easier than writing redundant code. if something doesn't work as you need/expect either fix the problem or do what you do when coding C++ or any other language. hook the api and write your own handler. use only the functions that you need and write your own code to do the rest. simple.Yes a script should be seperate developed and not bindet on others this would it make much easier for the developer of the script itselves, if something doesn't work as expected he could improve his code on his own, and have not to wait, the bugs are fixed in the capi.
I see you did not take my advice and spend time learning why things are done the way they are.And yes the winbuilder naming of scripts is terrible, 1- ... 3- .. 9- ... as filename no problem but why in the WinBuilder, makes this not as easier as it is, when i read 1-50_optimizations i have no idea what the dev menat with this, than under that comes 3-postconfig and 4-iso where is the 2-?? or the build has no default shell integrated some parts are splittet in seperate scripts that are still important for a fine running pe.
THANK YOU!I give up. Apparently a perfect PE to most, depends on the right names for scripts and variables and pretty code, while the project does not necessarly needs to create a useable PE, it seems.
@Darijo
Do me the favour and just write a bunch of scripts or, if you prefer, have a private discussion with Nuno, about how things work in WinBuilder. At the moment a lot of your comments show, that you have no real idea about imposed limitations.
Why do you think, there are batch and Autoit scripts used in some of the scripts?
Wimb even abandoned WB all together.
you are wrong. the preconfg script uses an autoit script to detect the source CD language. the last time I checked Winbuilder can't do a While loop and the alternative was to write about 80 lines ofSo i give you one example why everything has no sense in this way. Maybe you understand me yet, i was thinking you are a good Developer.
Is it not easier, to use the Variable that is built in Winbuilder? Or are you only talking here to protect the developer "lancelot"? I see no sense in your postings.
The PreConfig Script checks the Local OS Architecture with an external Autoit Script, that is on the fly created, and that generates an Ini-File, where than at least WinBuilder reads the Variable. You think WinBuilder can't do that, no it can do that since 077RC2 or even more, i have started trying the WinBuilder since this Version and this possibility was there.
then remove it and let us know how your build turns out...No of course not, for you not, but for an starter sure, i cannot believe it that it take days to remove all unaccessary stuff from the scripts, it is to much that is no needed.
I really don't believe that the name of the api has anything to do with anything. call it the super-duper-multi-project-api for all I care. it won't make any more difference than calling a horse an equine.Complexity always grows to a point where allowing "ugly" code and wrong names stalls development. On the current situation, we don't have pretty code, we don't have right names, we don't even have a result than can be called usable.
Some seem to enjoy and defend this situation, but I am quite sure that you don't like it as well.
There are many features that should not be provided by WinBuilder. After so many years whinning for advanced scripting, by now we should have had enough features to make everyone happy. But look how difficult it is for a single person to upgrade the engine or project to a more recent version..
The same apply for Wimb's work. He coded his own tool and matches his own expectations: fine. We are creating a tool to match the expectations of many people and we are also aware that wb should not be a shoe aiming to fit everyone's feet. Trying to bulk too much functionality is what got us in the mess at the first place.
My apologies. I am very picky about keeping the code simple/readable for others to build upon, and I would like to see more people following this practice.
Posted 18 May 2011 - 03:44 PM
Posted 18 May 2011 - 04:00 PM
Here a bit of creativity is missing.you are wrong. the preconfg script uses an autoit script to detect the source CD language. the last time I checked Winbuilder can't do a While loop and the alternative was to write about 80 lines of
If,ExistFile,%BootSRC%\Windows\System32\<somelanguage>\bcdedit.exe.mui,Set,%DistLang%,<somelanguage>
which is not efficient in at all.
If,<some condition>,Loop,BREAK
Posted 18 May 2011 - 04:13 PM
[variables] ... %LangList%="1031,1033,1034,1036,1037,1038,1040,1041,1045,1049,1051,1052,1053,1055,1059,1066,1067,1079,2070" %LocaleList%="00000407,00000409,0000040A,0000040C,0000040D,0000040E,00000410,00000411,00000415,00000419,0000051B,0000041C,0000041D,0000041F,00000423,0000042A,0000042B,00000437,00000816" %IDList%="de-de,en-us,es-es,fr-fr,he,hu,it-it,ja,pl,ru,lv,sq,sv-se,tr,be,vi,hy,lv,pt-pt" ... [SetLanguage] Set,%LangDLL%, If,EXISTVAR,%SourceLocale%,Run,%ScriptFile%,Find,%LocaleList%,%SourceLocale%,OUT:%LangDLL% Else,If,EXISTVAR,%DistLang%,Run,%ScriptFile%,Find,%IDList%,%DistLang%,OUT:%LangDLL% If,%LangDLL%,EQUAL,,Set,%LangDLL%,1033 ExtractFile,%ScriptFile%,Language,lang-%LangDLL%.dll,%Target_Prog%\%ProgramFolder%\lang [Find] Set,%ftmp%, StrFormat,SPLIT,#1,#$c,0,%Num% Loop,%ScriptFile%,Loop,1,%Num%,#1,#2 Set,#3,%ftmp% [Loop] StrFormat,SPLIT,#1,#$c,#c,%Item% If,%Item%,EQUAL,#2,Begin StrFormat,SPLIT,%LangList%,#$c,#c,%ftmp% Loop,BREAK EndPeter
Posted 18 May 2011 - 04:55 PM
thats a good example. thank you.BTW:
One sample of exiting a loop (from my Speccy.Script):[variables] ... %LangList%="1031,1033,1034,1036,1037,1038,1040,1041,1045,1049,1051,1052,1053,1055,1059,1066,1067,1079,2070" %LocaleList%="00000407,00000409,0000040A,0000040C,0000040D,0000040E,00000410,00000411,00000415,00000419,0000051B,0000041C,0000041D,0000041F,00000423,0000042A,0000042B,00000437,00000816" %IDList%="de-de,en-us,es-es,fr-fr,he,hu,it-it,ja,pl,ru,lv,sq,sv-se,tr,be,vi,hy,lv,pt-pt" ... [SetLanguage] Set,%LangDLL%, If,EXISTVAR,%SourceLocale%,Run,%ScriptFile%,Find,%LocaleList%,%SourceLocale%,OUT:%LangDLL% Else,If,EXISTVAR,%DistLang%,Run,%ScriptFile%,Find,%IDList%,%DistLang%,OUT:%LangDLL% If,%LangDLL%,EQUAL,,Set,%LangDLL%,1033 ExtractFile,%ScriptFile%,Language,lang-%LangDLL%.dll,%Target_Prog%\%ProgramFolder%\lang [Find] Set,%ftmp%, StrFormat,SPLIT,#1,#$c,0,%Num% Loop,%ScriptFile%,Loop,1,%Num%,#1,#2 Set,#3,%ftmp% [Loop] StrFormat,SPLIT,#1,#$c,#c,%Item% If,%Item%,EQUAL,#2,Begin StrFormat,SPLIT,%LangList%,#$c,#c,%ftmp% Loop,BREAK EndPeter
Posted 18 May 2011 - 05:03 PM
Posted 18 May 2011 - 05:13 PM
Edited by Darijo, 18 May 2011 - 05:20 PM.
Posted 18 May 2011 - 06:39 PM
Thanks, Allanf, for your hint.(Hi psc. F@ck off! LOL!)
Good luck, Nuno! Breathe deeply!
Posted 18 May 2011 - 07:29 PM
Here the note: The current original WinBuilder betas are deleted from my f@cked off (or following your edit: --F.ck_Off) server. Maybe anywhere in the world there are copies.Oops! Link updated. Send me a note.
Posted 18 May 2011 - 07:42 PM
Posted 18 May 2011 - 08:54 PM
Posted 18 May 2011 - 09:07 PM
Hi Allan,Should the API/CAPI be completely re-written (or abandoned all together)!? Years of hard work down the drain? That is the question.
Posted 19 May 2011 - 12:34 AM
Posted 19 May 2011 - 02:31 AM
Very good effort, the online version is handy and an enjoyable reading as well.I have spent a lot of effort to document it in the winbuilder help
Yep, I know what you mean. I've created a pinned topic at the "Developer notes" forum section to help raise awareness for the existence of this documentation: http://reboot.pro/14542/Don't why people continue to say the capi is not documented.
Posted 19 May 2011 - 06:13 AM
Posted 19 May 2011 - 11:54 AM
Posted 19 May 2011 - 12:31 PM
Without taking part, This is not true, the button "Help by Paraglider is present in Capi script and for Information, it is included in Win7PE package.@paraglider, as i see lancelot removed your button for the help because he said it is yours and he hadn't the update yet in the new version, ........ the rest is not useful
.
And why isn't it includet as default, without online stuff?
I do not know much chm files, except that they are constructed from .html pages.I am working on adding the missing functions. It is hard to keep up though.
Posted 19 May 2011 - 02:14 PM
Personally I have little issues with this approach, as it allows for new features to be added without breaking syntax or creating dozens of new commands every time something needs updated. It also helps standardize a naming convention. Winbuilder uses a similar idea with the StringFormat and Retrieve commands. I would be very interested on hearing other concerns/opinions on this though. I know CAPI naming is not the greatest in some cases.I am working on adding the missing functions. It is hard to keep up though.
I believe only functions currently missing are CapiC, Require, RunFrom, Add except for CapiC are no more than renames of the existing single function names so now instead of RunfromRAM, RunFromCD you have RunFrom,RAM and RunFrom,CD etc
CapiC was/is an experimental command stemming from this topic about using an external .exe to process API commands instead of using WB script.CapiC is a strange one - for the most part it seems to duplicate functionality that already exists in the winbuilder api to copy / delete files / folders.
Posted 19 May 2011 - 03:27 PM
I would agree for some limited inline comments, but larger blocks of comments could/should be added to the code to better document it, and for that, blocking them into stuff that can be easily/quickly scanned seems reasonable.I read the second linked thread and must ask if speed is still an issue? I thought it had been improved. To me the idea of blocking comments in a separate section is not a step forward. In-line would be better, especially when giving a quick description for obscure elements such as parameters #1, #2, #3, etc.
Posted 19 May 2011 - 10:45 PM
Posted 19 May 2011 - 11:50 PM
Maybe because you just had a look at the first page of the thread (that was only to warm up the place )?Why do I get an email from reboot.pro telling me that this is a "hot" topic, then I come here and theres some dude called Wonko and pscEx getting into a war of words over something nothing to do with the PE environment?
Posted 20 May 2011 - 12:14 AM
0 members, 0 guests, 0 anonymous users