Help - Search - Members - Calendar
Full Version: Need to add plugin EXE - but I'm no good with XML...
The CD Forum > Bart's PE Builder > Troubleshooting
SanDiegoHarry
So we use the BartPE disks here at work all the time - and I've been tasked with adding a single, simple program to the main menu. It's just a simple EXE, but I'm having a heck of a time getting it to work.

The program is called RESTRMBR.EXE (it's a utility to restore the MBR of WD drives after imaging with BartPE - sound familiar?)

Here's my INF file:

; RestoreMBR.inf

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Restore MBR"
Enable=1

[WinntDirectories]
a="Programs\RestoreMBR",2

[SourceDisksFiles]
RESTRMBR.EXE=a,,1

[Append]
nu2menu.xml, RestoreMBR_nu2menu.xml


Here's my XML file:

<!-- RestoreMBR_nu2menu.xml -->
<NU2MENU>
<MENU ID="Storage">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\RESTRMBR.EXE))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\RESTRMBR.EXE">RestoreMBR (SSH)</MITEM>
</MENU>
</NU2MENU>



Any help would be *great!

thanks!
Zharif
I think you forgot "Programs" in your file:
QUOTE
<NU2MENU>
<MENU ID="Storage">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\RESTRMBR.EXE))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\RESTRMBR.EXE">RestoreMBR (SSH)</MITEM>
</MENU>
Zharif
Sorry, didn't read your inf file carefully enough.
If you created a folder "RestoreMBR" in Programs dir (see your inf)
this should be the right syntax:

QUOTE
<NU2MENU>
<MENU ID="Storage">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\RestoreMBR\RESTRMBR.EXE))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\RestoreMBR\RESTRMBR.EXE">RestoreMBR (SSH)</MITEM>
</MENU>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.