Jump to content











Photo

[App Scripts Guide]


  • Please log in to reply
10 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

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

Posted 12 April 2008 - 04:51 PM

App Scripts Guide





Index

Chapter 1 - Introduction
Chapter 2 - How to create a new app script
Chapter 3 - Adding Registry keys



Chapter 1 - Understanding the basics




Introduction



You've made your first boot disk with WinBuilder and now it's time to tweak a bit more and learn how to add your favourite programs by yourself.

Along these quick tutorials we'll talk about what you can do with app scripts and how they can be made to work with most of the available boot disk projects such as VistaPE, LiveXP, NativeEx, BartPEcore, etc.

The app scripts tutorial is divided in the following sections:

Introduction
How to create a new app script
Adding Registry keys and missing System32 files (to be written)


(Sections without web links are still being written and will be available soon)

----



What is an App Script?


App scripts are scripts which will add a given program to your project.


These scripts are very powerful because they will allow you to install your program on a target windows operative system - let it be a boot disk or even a windows placed on another partition.

Flexibility is the keyword to describe them because each app script will contain all the informations that are required to properly install and run a program.


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

Why use them?


App scripts allow to quickly create shortcuts, folders, ensure that proper system files are found on the system and much more.

They are meant to work regardless of the project were they are placed so you don't need to ever worry again about valid program paths and such.

You can write an app script to run under a XP project and someone else can pick it up and run the same script without any changes on a Vista based project.

They ensure that script authors don't need to write a new script to work specifically with a single project - you code them to become universal.

Using the app script language also ensures that your scripts will live for a very long time because it will continue to be valid to work on future projects in the years to come.



As an end result - we all benefit from using app scripts because the library of available programs will grow and make things much simpler and easier to exchange across different projects.


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


Glossary of common terms


Before we start, let's explain how some of the names that are used so that we can all speak using the same terms.




WinBuilder
It's the name given to everything generically related to WinBuilder itself, also common to use the term "wb"



Project
A project is a collection of files which help to build a target ISO or CD. The root of the project is a subfolder found inside the "Projects" folder and contains a special file called "script.project" (described below).
Different projects can be placed and run separately inside the 'Projects' folder.



Script
This is a file with extension .script that can be edited with any regular text editor. These scripts will contain the code that will executed while the project is being built. Some extra features are bundled that allow you to place buttons, text, images, etc like a web page that will let you change the script without editing a single line of code. You can also attach files inside (all of this will be explained more ahead).



script.project
This file is very similar to normal scripts but it is used to mark the root of a new project. All features on you use on scripts also apply to this file, the main difference is that it will also contain some specific definitions for the project. You can look on any script.project to understand a more about these



Download Center
You find this download center on tab called "Download" inside WinBuilder. It will allow you to download projects from the internet directly into your projects folder. You can also individually select which scripts to download or even use this tool to update your already downloaded files.



App Script
An app script is meant to add a program on the project where it is placed.
This file is just like any other script inside a project but it uses a universal coding style that allows our app script to be installed regardless of the project.



log.html
Along the way while your project is being built and when things go wrong - you will definitively need this log file because it may help other members here in the forum to understand exactly what went wrong. You won't see this log feature on the progress window but it is still working underneath the process.
Look under the "Scripts" tab for another smaller tab called "Logs" - there you find a button called "Save log.html" - use this option save the log from your project to disk and later upload it here to the forums (don't forget to zip it before upload!)


API

This is a common set of keywords that you can use inside your app scripts. These API commands are explained over the next chapters.

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


This was the introduction tutorial, if you have any other doubts about what is posted here - you are welcome to place any questions of you have and this way help to improve this tutorial with more complete informations.


:thumbsup:

#2 pscEx

pscEx

    Platinum Member

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

Posted 12 April 2008 - 04:59 PM

A good start of this job :thumbsup:

I would replace

A project is subfolder found inside the "Projects" folder that contains a special file called "script.project" (described below).
Different projects can be placed and run separately inside this folder.


by something like

A project is a collection of files which help to build a target ISO or CD. The root of the project is a subfolder found inside the "Projects" folder and contains a special file called "script.project" (described below).
Different projects can be placed and run separately inside the 'Projects' folder.


Peter

#3 Nuno Brito

Nuno Brito

    Platinum Member

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

Posted 12 April 2008 - 08:33 PM

Done! :thumbsup:

#4 ispy

ispy

    Silver Member

  • Tutorial Writer
  • 592 posts
  • Location:PILGRIM

Posted 12 April 2008 - 10:02 PM

Hi Nuno :thumbsup: ,

Keep "Em" coming, this is one area (scripting) I would like to get my head around, looking forward to more articles!!!

Much Appreciated!!!

ispy :tabletalk:

#5 enli

enli

    Newbie

  • Members
  • 21 posts
  •  
    India

Posted 13 April 2008 - 03:20 AM

Its a perfect introduction..

Great job

#6 ispy

ispy

    Silver Member

  • Tutorial Writer
  • 592 posts
  • Location:PILGRIM

Posted 29 April 2008 - 10:35 PM

Hi all :thumbup: ,

May I take the liberty of asking a question here?

I have noticed that Pedrole15 has written a MakeScript gizmo I'm not at all sure how it works but my question relates to how his nifty program fits in with the grand scheme of things in relation to script tutorials, any takers?

Regards,

ispy :lol:

#7 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 29 April 2008 - 11:03 PM

Hi all :thumbup: ,

May I take the liberty of asking a question here?

I have noticed that Pedrole15 has written a MakeScript gizmo I'm not at all sure how it works but my question relates to how his nifty program fits in with the grand scheme of things in relation to script tutorials, any takers?

Regards,

ispy :lol:

ispy, I have simply put an image in background and put a button on it, which run the external program
(some script of thunn use this too )

:thumbup:
Pedro

#8 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10452 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 24 August 2008 - 10:04 PM

I've pinned this topic and will start to index all tutorial pages related to app script coding.

Hopefully this page can be used a starting point to find more resources about the ways to create app scripts and keep all the links organized.

You're welcome to use this topic for suggesting new tutorials that should be created or even post your own questions.

Thank you.

#9 ThorB

ThorB
  • Members
  • 5 posts
  • Location:Sacramento, California
  •  
    United States

Posted 27 February 2009 - 05:52 AM

:cheers: :cheers:


reading the section "Adding Registry keys and missing System32 files (to be written)"

NOOOOOOO...need it now... :cheers:

oh well..

Any tutorial update on copying files into the i386\system 32 directory? Seems I can newb creat a Program files "program folder' yet when I try any of the variables I can think of to get a copy or extract to move the files ...it fails...
Any help is appreciated.

#10 pscEx

pscEx

    Platinum Member

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

Posted 27 February 2009 - 11:10 AM

:cheers: :cheers:


reading the section "Adding Registry keys and missing System32 files (to be written)"

NOOOOOOO...need it now... :cheers:

oh well..

Any tutorial update on copying files into the i386\system 32 directory? Seems I can newb creat a Program files "program folder' yet when I try any of the variables I can think of to get a copy or extract to move the files ...it fails...
Any help is appreciated.

I cannot understand your question, because for me it is uncomplete or too theoretical.

Please post a snippet of code here which you tried and which does not work.

I'm sure that then a couple of members can help you.

Peter

#11 geoffsams

geoffsams
  • Members
  • 5 posts
  •  
    New Zealand

Posted 07 September 2012 - 06:41 AM

I have downloaded the Makescrip.7z file to run as a standalone app but it shows as incorrect format or corrupted archive. Is there a working Makscript app available




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users