Jump to content











Photo
* * * * * 1 votes

Making a New Project form scratch


  • Please log in to reply
26 replies to this topic

#1 Michele13

Michele13

    Frequent Member

  • Tutorial Writer
  • 167 posts
  •  
    Italy

Posted 28 October 2011 - 06:01 PM

Hi, I noticed that, as all knows, winbuilder has many projects. But what if Someone want to create a custom project to publish here or just for playing? How should I build a project server like this one? http://www.vistape.net/archive/
How can a user build a script? is it difficult?

#2 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 28 October 2011 - 06:18 PM

Well, building a project and a script is not too hard...There are some docs on it on the doc site, and also here as tutorials. BUT, start small, and work your way up. Having a server is the LAST step of the process, since all it is used for is one more way to distribute the project. By the time you are ready to do that, you won't need much additional help!

It might be easiest to find a project similar to your own goals - i.e. build on the work of others. Then also start with improvements to an existing script...Add an option, or improve the GUI. Then move up to a new script on your own - maybe starting with some application scripts...that is an easy way to start learning the syntax, and also contribute! There are also some script builder tools you can explore. In other words - jump in! Find something you like, and work on it!

There are lots of good tutorials in this section of the forum...And even more important, lots of folks willing to help, so if you get stuck, just ask...

Good Luck!
:cheers:
Scott

#3 Michele13

Michele13

    Frequent Member

  • Tutorial Writer
  • 167 posts
  •  
    Italy

Posted 28 October 2011 - 06:27 PM

Well, building a project and a script is not too hard...There are some docs on it on the doc site,


Can you tell me where's this docsite? Homeware I have in mind the project I'd like to create a Win7 bootdisk using WAIK ONLY. No Win7 DVD needed. there's already a project with this goal but its program is not very stable. It uses batch file but hey are not good enough. When I use it it gives me some errors. Anyway I built this LiveCD by myself reading the commands inside these files and I made it manually. I don't know if you get it :)

the home of this project is that:

http://brokenglass.sourceforge.net/

Edited by Michele13, 28 October 2011 - 06:29 PM.


#4 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 October 2011 - 06:28 PM

You do not have to start completely from scratch. You can simply create a fork of an existing project, if there is any, that seems useful for your goal.

Learning how to write scripts isn't that hard. It's about as complicated as writing a batch file.
Best way is probably to have a look at the help/wiki to get some general idea about the commands and then just go reading existing scripts, to learn the tricks of the trade.

http://reboot.pro/fi...ed-help-format/
http://code.google.c.../wbwelcome?tm=6

:cheers:

#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 October 2011 - 08:22 PM

More generally, Winbuilder is very similar to batch (in a previous incarnation it was called "batcher" ;)) in the sense that it is a scripting language or, if you prefer, an interpreted language.

The advantage (when compared to batch) is that it has quite a few functions/commands "specially suited" to build such Windows Source derived PE's and that it has a graphical interface.

But it has also some drawbacks, which I won't list in order to avoid the start of an unneeded flame war. :whistling:

Anyway there are two paths (BOTH unfortunately VERY steep :ph34r:) before you:
  • learn to script in a given language (no matter if batch, vbs, Winbuilder or another one, say AutoIt)
  • learn WHAT exact steps your script should do
All in all (and IMHO) the really difficut part is the second one.

As an example there is a specific tool for building a PE 3.x, which does not use Winbuilder at all:
http://reboot.pro/11852/
(that is oriented to build from 7 source with or without WAIK)

You may try it and take some ideas/settings from it too.

Still as generic advice :):
http://reboot.pro/15298/page__st__9

:cheers:
Wonko

#6 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 October 2011 - 09:18 PM

Hello,



To start a new project from scratch all you need is to create one called "script.project".

You can look at the file from each project to learn what goes where. Then you create new .script files to perform whatever actions you want to automate. I share the opinion that it is simpler to pick at one of the projects and customize it, this way you save yourself a lot of work and can focus on fixing whatever needs improvement.

Even better than forking would be helping out at one of the ongoing projects.

:cheers:

#7 MaineCoon

MaineCoon

    Frequent Member

  • .script developer
  • 193 posts
  •  
    Austria

Posted 28 October 2011 - 10:16 PM

.....

Still as generic advice :):
http://reboot.pro/15298/page__st__9

:cheers:
Wonko



Seems to be a nice bug in forum software:
Page_1.36.JPG

May we have a link to Page 1.98?


MaineCoon

#8 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 October 2011 - 10:45 PM

May we have a link to Page 1.98?

No :(, but you may have one to 1.96:
http://reboot.pro/15298/page__st__24

Question:
How much is 9/25?
How much is 24/25?

;)

:cheers:
Wonko

#9 DarkPhoeniX

DarkPhoeniX

    Frequent Member

  • Team Reboot
  • 452 posts
  • Location:In the middle of nowhere
  • Interests:Interesting Things
  •  
    South Africa

Posted 28 October 2011 - 10:56 PM

I want to create a button in winbulder to run a file that is Attached to the .script
I know how to make the button.but i dont know how to run the file attached to the script
The file name is "Sectionhelp Manual.doc"

#10 MaineCoon

MaineCoon

    Frequent Member

  • .script developer
  • 193 posts
  •  
    Austria

Posted 28 October 2011 - 11:05 PM

So may I have a calculator next christmas? :newyear:

MaineCoon

#11 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 29 October 2011 - 12:22 AM

I want to create a button in winbulder to run a file that is Attached to the .script
I know how to make the button.but i dont know how to run the file attached to the script
The file name is "Sectionhelp Manual.doc"

You make a "section" inside the original script - let's say [DO_MANUAL], and assign that process section to the button...
Inside that you do the basics - not at winbuilder right now, so this is pseudo-code, but you should get the "drift"

[DO_MANUAL]

ExtractFile,%ScriptFile%,Section,"help Manual.Doc",%Temp%

ShellExecute,Open,"help Manual.doc",,%TEMP%,%ExitCode%]

Of course, that assumes I understood what you meant. Inside attached files, you can't have folders inside a folder,so if you meant the "folder" was "section/help", then you can't do that. If you need folder structure, you make a 7z file, and extract it - there is an API that can do that all at once...http://code.google.c...der/wiki/unpack

The issue with a "DOC" file is that you have to be a bit careful not to assume it is MS word, and so you might want to consider an RTF file.

Look around at the same sort of scripts in the existing projects, and I'm su%TEMP% dir exists, and other things to make it more robust...

:cheers:
Scott

#12 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 29 October 2011 - 08:37 AM

So may I have a calculator next christmas? :newyear:

In the meantime you can use this one, as long as you are looking for reasonably small results ;):
http://www.thateden.co.uk/dirk/

Incidentally, I just pushed the RED button and got (on your behalf) :):

K'UN SUN
46. PUSHING FORWARD
This Is A Good Time For Promotion. Transport Themselves Through Searches Of Mighty People. Use Your Kindness And Intensity. Through Hard Work, His You Surely, To Follow. Little Through Little, Your Self - Improvements Will Bring You Great Success.

THE COMMENTARY OF THE DUKE OF CHOU:
Line 3: There Are No Obstructions In Your Way So Will Find You It Very Easily, To Advance Now. Take Advantage Of These Good Times.
Line 5: Maintains Your Honesty And Integrity At Processes In A Correct Kind. Push Slowly And Continual To Your Goals And Final Will Follow You


:cheers:
Wonko

#13 Michele13

Michele13

    Frequent Member

  • Tutorial Writer
  • 167 posts
  •  
    Italy

Posted 29 October 2011 - 05:17 PM

Ehm, I don't want to kill anyone but don't you think that we're going off-topic? :hmm: I only asked how to get started make a a new project. XD

#14 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 29 October 2011 - 06:20 PM

Ehm, I don't want to kill anyone but don't you think that we're going off-topic? :hmm: I only asked how to get started make a a new project. XD

You are perfectly right. :thumbsup:
But until post #6 you had them answers, then MaineCoon Posted Image started it, and DarkPhoeniX :w00t: went on .....:ph34r:

:cheers:
Wonko

#15 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 30 October 2011 - 06:05 AM

Question:
How much is 9/25?
How much is 24/25?

Once upon a time, someone told me that discussing "irrelevant to the context of the thread", e.g. analysis of a probable forum bug/ teaching arithmetic etc. on a topic asking for a direction to build a Winbuilder project from the scratch - is called "thread jacking". Was he wrong? :dubbio:

#16 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 30 October 2011 - 08:53 AM

Once upon a time, someone told me that discussing "irrelevant to the context of the thread", e.g. analysis of a probable forum bug/ teaching arithmetic etc. on a topic asking for a direction to build a Winbuilder project from the scratch - is called "thread jacking". Was he wrong? :dubbio:

No, no.
This is a typical example of thread hijacking, no doubt about this IMHO.

Point you seemingly missed is that we now have a new communication paradigm, different from the ordinary and dull "let's stay on topic".

But on the other hand, you carefully avoided to answer/help on the OP topic and plainly contributed to a further hijacking of the thread :ph34r: :whistling:

:cheers:
Wonko

#17 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 30 October 2011 - 12:27 PM

But on the other hand, you carefully avoided to answer/help on the OP topic and plainly contributed to a further hijacking of the thread :ph34r: :whistling:


Just to falsify the allegation, some links follow

#18 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 30 October 2011 - 12:32 PM

Just to falsify the allegation, some links follow

It doesn't falsify anything :w00t:, actually confirms it fully :smiling9::
thanks to the remark, you realized how you hadn't previously contributed to the thread, and since you are a good guy :thumbup:, you decided to later correct the omission.

:cheers:
Wonko

#19 Holmes.Sherlock

Holmes.Sherlock

    Gold Member

  • Team Reboot
  • 1444 posts
  • Location:Santa Barbara, California
  •  
    United States

Posted 30 October 2011 - 12:35 PM

It doesn't falsify anything :w00t:, actually confirms it fully :smiling9::
thanks to the remark, you realized how you hadn't previously contributed to the thread, and since you are a good guy :thumbup:, you decided to later correct the omission.

:clap: :loleverybody:

#20 enciktangankidal

enciktangankidal

    Member

  • Members
  • 43 posts
  • Interests:Love to learn about developing software. Hope someday can be developer. ^^,
  •  
    Malaysia

Posted 30 October 2011 - 03:42 PM

:cheerleader: Making a New Project form scratch :cheerleader:

#21 MaineCoon

MaineCoon

    Frequent Member

  • .script developer
  • 193 posts
  •  
    Austria

Posted 30 October 2011 - 07:55 PM

@Michele13 and all

It has not been my intention to hijack this thread so I apologize for all inconvenience I caused.

:white_flag:
MaineCoon

#22 Michele13

Michele13

    Frequent Member

  • Tutorial Writer
  • 167 posts
  •  
    Italy

Posted 30 October 2011 - 10:36 PM

@Michele13 and all

It has not been my intention to hijack this thread so I apologize for all inconvenience I caused.

:white_flag:
MaineCoon


As I said I don't want to kill anyone...I only asked if the subject of the topic was changed. xD

#23 larioteo

larioteo

    Member

  • Members
  • 79 posts
  •  
    European Union

Posted 17 November 2011 - 04:17 PM

I am also doing my project from scratch after a time you can pick simple the infos you need from all other projects, only what you need is to understand how to implement this "magical" capi commands, that are in nearly every script a little bit different. But anyway after 2 weeks i get rid of removing the capi stuff and building pes that are trimmed down natively so the code is more readable cause it is explicit and you can make what you want.

After that all you need maybe also an own command collection, that makes your coding easier, but not as the real capi. only some stuff that all scripts uses. Then if you want you can deactivate some capi commands it differs how you want to make your project accessable through other projects.

A simple variable redirection solves the most starter problems so you can add any script that wasn't even written for your project or convert it, call it how you want.

If you do so you will reduce the scripts heavily and the buildtime will be more faster, cause some stuff is 100 time in every existing project in and slows done the parsing of the scirpts.

After all tools like beyond compare can help you to update your project or to see the differences.

It is easier as some think, and it is better cause the pe is suited only for you only so you can get happy by using it. My goal is simply to get rid of the capi i dont like it and wont use it, it was a decision of my own, for me it is unreadable, i like more the native coding of winbuilder and i also like it when i am the boss in my script and not a command collection.

Edited by Darijo, 17 November 2011 - 04:20 PM.


#24 Michele13

Michele13

    Frequent Member

  • Tutorial Writer
  • 167 posts
  •  
    Italy

Posted 01 September 2012 - 08:39 PM

I Finally Refound this topic! Yeah! :D OK now I'll try to learn something from the scripts that exist already :) Now I will attempt to modify the VIstaPE script in order to work with WinPE 3.0 that can be downloaded without starting any WGA (Windows Genuine Advantage) test :) (Yeah unfortunately I don't have an original Windows XP Installation Disc for my PCs) but from now on I will not need any installation disc to restore my pc :)

#25 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 26 November 2012 - 09:20 AM

Any progress? Still need help? :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users