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:
- DON'T add the ".vbs" file extension.
- DO put quotes around the entire name when you rename it.
If in doubt, put quotes around the name. They'll disappear, but it
forces Windows to honor your desired file extension.
|
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.
- Next time you do this, try running the script a different
way: Drag the "custom" folder and drop it on the script. That way you
won't have to browse for your folder.
- Or, instead of double-clicking, try right-clicking the
script and select "Open with Command Prompt". You'll get a status
display instead of wondering what's happening!
- Go ahead: Try those other ways now. Just be sure the
script finishes before you run it again.
|
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.
- The <MITEM TYPE="POPUP"
entries all generate menus in the BartPE "Start Menu". If they point to
folders you don't want in the BartPE start menu, you can delete them.
If you delete a "popup" menu entry line, you should delete all
corresponding section(s) which have the same MENU
ID.
- The <MITEM TYPE="ITEM"
lines all create BartPE "Start Menu" entries for actual programs. You
can identify what the line is near the end of each line. It will either
show the name of the program or a description. If you don't want a
certain program to appear in the menu, you can delete the entire line
(starting with <MITEM
and ending with </MITEM>)
Here I show a sample XML file that I created. If you recall, I had
three folders in my "custom" directory. The only thing I wanted in my
menu were the programs in the "Utilities" folder. Let's pretend I was
foolish and didn't hide the other unwanted folders. So I'll be deleting
all the lines that don't have "Utilities" as part of their MENUID
(highlighted lines here would be deleted):

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. |