Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 2.72 KB

File metadata and controls

46 lines (30 loc) · 2.72 KB

Script Levels

Levels are used by PEBakery to determine the correct grouping and sequence in which scripts will be processed.

Processing Order

PEBakery will use the following properties to determine the processing order of a script:

  1. Script Level
  2. Folder Name
  3. File Name

Levels

PEBakery will recognize up to 256 levels, however for practical reasons most projects categorize their scripts into 10 levels. Processing starts at level 1 and continues on to the subsequent level after all scripts under the current level are processed.

Scripts with level 0 and negative levels will be hidden from the project tree and will not be processed. These scripts are intended to be used as a library to store configuration, macros, code, or attached files used by other scripts when such items do not need to be directly accessed by the end user.

The following table is an example of common script levels and their typical use. Strict adherence to this guide is not enforced by PEBakery, but is strongly encouraged in order to maximize interoperability between projects.

Level Usage Description
1
-1
Pre-Process Project options, Configure source files, Mounting/Extracting WIMs, etc.
2
-2
Build Create folders, Copy/Expand/Extract files, Registry hives, WOW64, etc.
3
-3
Shell & Components Shell, Ramdisk/FBWF, Networking, Optional components (Bitlocker, Search, .Net/VC++ Runtime, etc.)
4
-4
Settings/Tweaks Settings such as wallpaper, theme, power options, computer name, system local, etc.
5
-5
Applications Programs and tools to be used in the PE environment.
6
-6
Drivers Additional drivers needed. (Chipset/LAN/SATA/RAID/VGA/WLAN)
7
-7
Other Sometimes used to include pre-built bootable images such as chntpw, Hirens, Memtest86+, PartedMagic, UBCD, etc. that can be loaded using a boot manager such as grub4dos or syslinux.
8
-8
Post-Processing Creating shortcuts, Capture WIMs, Cleanup, etc.
9
-9
Emulation & Media Creation Create/Burn ISO, Copy to USB, Test with Qemu/vmWare/VirtualPC
10
-10
Project Tools Additional tools for working with a project but usually not part of the build process. (WIM manipulation, Hive editing, Target tweaking, etc.)

Folder Names

Folders and Sub-folders can be used to organize and group scripts within the same level. Folders are processed in alpha numeric order and the folder name is displayed in the project tree.

Folders may be duplicated in the project tree if script files with different levels reside within the same folder.

File Names

Script files within their corresponding folder are processed in alpha numeric order according to their filename.

Remarks

None.