Help - Search - Members - Calendar
Full Version: Adding PEBuilder plugin to UBCD4WIN
The CD Forum > Bart's PE Builder > UBCD4WIN
Ed_P
To enable UBCD4WIN to support more than 8 bit color graphics on my Dell nb I took my PEBuilder Intelgraphic plugin and added it to the UBCD4WIN's Drivers folder. The results were not what I was expecting.



What the heck happened to the menu??? blink.gif

My plugin's xml files are:

intelgraphics_nu2menu.xml
CODE
<NU2MENU>
   <MENU ID="Resolution">
    <MITEM TYPE="ITEM" VISIBILITY="@Shl(@Not(@FileExists(@GetWinDir()\system32\setmaxres.exe)))" CMD="RUN"
    FUNC="@GetProgramDrive()\Programs\IntelGraphics\IntelGraphics.cmd">Display graphic hardware</MITEM>
    <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetWinDir()\system32\setmaxres.exe))" CMD="RUN"
    FUNC="@GetProgramDrive()\Programs\IntelGraphics\IntelGraphics.cmd X">Intel Graphics Fix</MITEM>
   </MENU>
</NU2MENU>


delld400_nu2menu.xml
CODE
<NU2MENU>
   <MENU ID="Resolution">
       <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetWinDir()\system32\setmaxres.exe))" CMD="RUN"
          FUNC="@GetProgramDrive()\Programs\IntelGraphics\IntelGraphics.cmd myNB">Dell Notebook Graphics Fix</MITEM>
   </MENU>
</NU2MENU>


And both work fine in BartPE.

I did add my PEBuilder for setmaxres.exe also but it has no xml file so it shouldn't be the problem.

Can you give me a clue as to what happened?
rdsok
You must define the menu popup location before you try adding a menu item to it. "Resolution" isn't already defined so when the menu sort function happens in the build... it is blocked since the popup menu wasn't defined.

Add the following to the nu2menu.xml found in the [UBCD4Win]\oem1\nu2menu folder

CODE
<MITEM TYPE="POPUP" MENUID="Resolution">Resolution</MITEM>


Where in the XML you place it will determine where it shows in the actual menu itself.
Ed_P
Thank you rdsok. happy62.gif

I didn't want to hack the UBCD4WIN's nu2menu.xml file and with so many predefined POPUPs it was easier to simply change "Resolution" to the "Display" option already defined.

CD being created as we speak. smile.gif Will try it later.
Ed_P
Well that was a busted project. In addition to ruining my last CD-RW I lost several CD-Rs on this. Regardless what I did I could not get UBCD4WIN to support the Intel graphics in my Dell nb or an older W2K machine. I can with my BartPE systems but not UBCD4WIN. When I invoke either of the two options I have I end up with a black screen and a hung/dead system.

Does anyone have a functional Intel graphics plugin for UBCD4WIn?
cdob
Try
Driver plugin: vga-intel.inf
CODE
;PE Builder v3 plug-in INF file for VGA
;created by cdob

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Driver: Intel Graphics Drivers"
Enable=1

[SourceDisksfiles]
;Intel 810/810e/815 chipset graphics adapter
i81xnt5.inf=20
i81xnt5.sys=4
i81xdnt5.dll=2

;v14.7 i845 Previously Released software
;http://downloadmirror.intel.com/df-support/7779/a08/win2k_xp147.zip
;Intel 830G, 852/855GM, 845G, 865G, 910G and 915G
files\intel8x\ialmnt5.inf=20,,1
files\intel8x\ialmnt5.sys=4,,1 ;Graphics Miniport Driver
files\intel8x\ialmrnt5.dll=2,,1 ;Controller Hub - required
files\intel8x\ialmdnt5.dll=2,,1 ;Controller Hub - required
files\intel8x\ialmdev5.dll=2,,1 ;Component GHAL Driver
files\intel8x\ialmdd5.dll=2,,1 ;DirectDraw Driver

;v14.31.1
;910G/910GM, 915G/915GM, 945G/945GM, 965/963, 946G
files\intel9x\igxp32.inf=20,,1
files\intel9x\igxpmp32.sys=4,,1 ;[ialm.Miniport]
files\intel9x\igxpdv32.dll=2,,1 ;[ialm.Display]
files\intel9x\igxpdx32.dll=2,,1
files\intel9x\igxpgd32.dll=2,,1
files\intel9x\igxprd32.dll=2,,1

[DelLine]
"i386\inf\igxp32.inf", "Version", "CatalogFile"
"i386\inf\igxp32.inf", "CUI.DelReg", "H"
"i386\inf\igxp32.inf", "CUI.AddReg", "HKLM,Software\Microsoft\Windows\CurrentVersion\Run"
"i386\inf\igxp32.inf", "CUI.AddReg", "HKLM,""SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\igfxcui"
"i386\inf\igxp32.inf", "CUISDK.AddReg", "H"
"i386\inf\igxp32.inf", "CUISDK.DelReg", "H"


activate graphics driver: reschange.inf
CODE
; Change Screen Resolution

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Driver: activate graphics driver"
Enable=1

[SourceDisksFiles]
files\SetMaxRes.exe=2,,1 ; paraglider http://www.paraglidernc.com/plugins/plugins.htm
files\SetMaxRes.cmd=2,,1

[Software.AddReg]
; SetMaxRes.exe
;0x1,"Microsoft\Windows\CurrentVersion\RunOnceEx\000","01AB", \
; "RunHide.exe SetMaxRes.exe f85 t1"

;SetMaxRes.cmd
0x1,"Microsoft\Windows\CurrentVersion\RunOnceEx\000","01AB", \
"RunHide.exe SetMaxRes.cmd f85 t1"

[SetupReg.AddReg]
; Screen Resoultion 1024x768 32bpp
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.VRefresh",60 ;default to TFT monitor
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",32
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution",1024
0x4,"ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution",768


files\SetMaxRes.cmd
CODE
@echo off

for /f "tokens=6-7 delims=\" %%a in ('setmaxres.exe i') do (
  set VGA=%%b
  if [%%b]==[VgaSave] (echo vga.sys graphics driver used - exit &goto :eof)
)

echo %VGA% graphic card driver found.

setmaxres.exe %*
Ed_P
Thank you cdob I'll give those a shot.

FWIW The files from my PEBuilder plugin that I have been using are:

intelgraphics.inf
CODE
; PE Builder v3 plug-in INF
; Created by d4vr0s : http://www.911cd.net/forums//index.php?s=&showtopic=16315&view=findpost&p=106158
; 2006-01-21
; Modified by EdP with help from Paraglider : http://www.911cd.net/forums//index.php?s=&showtopic=16315&view=findpost&p=106401
; Requires the controlpanel and hwpnp plugins to work.
; 2006-03-11
[Version]
Signature="$Windows NT$"

[PEBuilder]
Name="Intel Graphics"
Enable=1
Help="intelgraphics.htm"

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

[SourceDisksFiles]
IntelGraphics.cmd=a,,1
files\*.dll=2
files\*.sys=4
files\ssigd.txt=20,ssigd.inf
files2\*.inf=20

[Append]
nu2menu.xml, IntelGraphics_nu2menu.xml


intel_i81x.inf
CODE
; Intel_i81x.inf
; PE Builder v3 plug-in INF file
; cdob  http://www.911cd.net/forums//index.php?showtopic=10973&view=findpost&p=66932

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Intel i81x Graphics Driver"
Enable=1
Version=1.0

[SourceDisksFiles]
;Intel 810/810e/815 chipset graphics adapter
i81xnt5.inf=20
i81xnt5.sys=4
i81xdnt5.dll=2


Together with a couple of "tweaked" nu2menu.xml files and this script
CODE
@echo off&Title Intel Graphics auto fix&COLOR 17&MODE CON COLS=65 LINES=5

set Fix=
if %1! NEQ ! set Fix=%1
if %Fix%! EQU TheFix! if exist C:\DELL\Docs\sm\*.*  set Fix=myNB
if %Fix%! NEQ ! goto THEFIX

:DISPLAY
Title Intel Graphics hardware
MODE CON: COLS=80 LINES=24
echo.
setmaxres
pause > nul
goto EXIT

:THEFIX
:: http://www.911cd.net/forums//index.php?s=&showtopic=16315&view=findpost&p=107017
:: http://www.911cd.net/forums//index.php?s=&showtopic=19687&view=findpost&p=131168
echo.
echo  Starting HWPnP
echo.
if %Fix%! == myNB! (
   Title Dell D400 Intel Graphics auto fix
   start /wait HWPnP.exe -all "=PCI\VEN_8086&DEV_3582&SUBSYS_01391028&REV_02" /log /p /s
) ELSE (
   start /wait HWPnP.exe -all =@Display /log /p /d+
)
SetMaxRes.exe
:: SetMaxRes.exe h1280 v1024 b32 use in place of taking the defaults specified in control.inf.
if %Fix%! == myNB! (
   if exist \programs\geoshell\RecycleGeoShell.cmd \programs\geoshell\RecycleGeoShell.cmd
)

:EXIT
exit
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.