BartPE Custom Directory Plugin Builder Script
|
1. Make
a directory in the BartPE "plugins" folder (In your PEBuilder or BartPE
folder under "C:\Program Files"). The name you give this directory
doesn't matter, but you might as well name it something meaningful like
"Utilities" or "Custom". Whatever name you finally choose, put the
"PEMenu.vbs" you just downloaded there. Rename the "PEMenu.vbs" script to give it the name you'd like your plugin to have. Maybe "Utilities.vbs" or "Custom.vbs". If you have the default Windows behavior of hiding file extensions, either:
|
2. Be sure you have a directory somewhere that has files you want included in the BartPE menu system. I'm going to refer to that directory as your "custom" directory. Under that directory, you should have programs which can run directly from the CDROM. Actually, any files directly in your "custom" directory will end up in the root of the CDROM. So your files would probably be better off in a subdirectory under your custom directory! Here I show my "custom" directory is a folder called "Includes". All my Windows GUI programs are under the "Utilities" folder, and all my zip files and installers are under "Archives". You may want to organize yours differently. A special directory is "Bin". That directory is put in the "Path" when BartPE runs, so that's where I place all my command-line utilities and shared DLL files. This will save you some time later: If there are folders or files in your "custom" directory that you don't want included in the BartPE menu system, hide them. BartPE will still include them on your CD (and they won't be hidden!), but this script will ignore any hidden folders or files when it comes to menu-building. If you look closely, you'll notice my "Archives" and "Bin" folders have been hidden. If
you want to organize your menu, go ahead and put your files in
folders. The script will create a submenu for every non-hidden folder.
In my case, you can see I've organized my "Utilities" folder so it has
all my custom utilities organized in task-oriented folders. If you take
a quick look at the bottom of this page, you'll see the menu that
results from something as simple as putting files in folders! |
3. Go
back to the BartPE plugins directory. Double-click the VBS script file.
With any luck, a folder browser will come up that will allow you to
locate your "custom" directory. Depending on how many files you have
under your custom directory, the script may take a few minutes to
finish. There should be three new files in the plugin directory: An HTM
file, an INF file, and an XML file. These are the three files that
define the plugin. Unlike most other plugins, you don't need to copy
any additional files into this plugin directory.
|
4. Optional. If your
"custom" directory had things you didn't want in your menu (like
install programs and command-line programs), then this is where you can
do some cleanup. You can avoid the cleanup if you follow my advice in
step 2 and hide folders or files you don't want menus made
for. But let's assume you decided to do it the hard way. That
means you've created an XML file with lots of menus you don't want.
Which means now you'll have to clean up the XML file by hand!
Here's how: In the BartPE plugins directory, right-click the XML file and select "Open With" and select "Notepad" (browse to it if you must). If things don't look neat, un-select "Word Wrap" from the "Format" menu.
See, cleaning up the XML wasn't THAT hard, was it? If you don't like the description that appears in the menu, you can change it. The script tries really hard to put a decent description in the menu, but you may have better ideas. To change the description, only change the linked text. To help you identify linked text, in the three samples below, the linked text you can change is shown in red: \stinger.exe">McAfee Stinger (Standalone anti-virus scanner for certain viruses.)</MITEM> \PDFReader.exe">Foxit PDF Reader</MITEM> \PUTTY.EXE">PUTTY</MITEM> My suggestion is to leave the descriptions alone! It isn't worth the trouble. But it's your time... |
5. Start the BartPE PE-Builder program. During the Bart PE Build process, you should select "Add files/folders from (custom) directory". Select the same directory you previously chose as your "custom" directory. When you get to the plugin list section, you'll find a plugin already enabled with the same name you chose for the script. If you select your plugin, you should be able to hit the "Help" button for a few reminders. |
Lost? Look at the site map.
Bad links? Questions? Send me mail.