SKiTLz Posted August 8, 2005 Share Posted August 8, 2005 Just wondering what the purpose of the CONFIG-EXTRA.INF file is.From what I can see the contents of CONFIG.INF and CONFIG-EXTRA.INF are the same. Not only that but mkimg.cmd appears to just overwrite CONFIG-EXTRA.INF anyways.Just trying to learn the WinPE (Microsoft) build process to better customize it.Cheers Link to comment Share on other sites More sharing options...
JuMz Posted August 8, 2005 Share Posted August 8, 2005 Have you tried looking in the OPK.chm or the WinPE.chm? Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted August 15, 2005 Share Posted August 15, 2005 Have you tried looking in the OPK.chm or the WinPE.chm?<{POST_SNAPBACK}>No topic found in Help File. Link to comment Share on other sites More sharing options...
kiwidave Posted September 6, 2005 Share Posted September 6, 2005 (edited) If you take a closer look at MKIMG.CMD you'll see that after overwriting config-extra.inf, mkimg.cmd uses bldini.exe to add additional entries to config-extra.infREMREM initialize config-extra.infREMset ADDREG="Add Registry Existing"set CONFIG_EXTRA=config-extra.infcopy config.inf config-extra.inf 1>nul 2>&1REMREM Parse the remaining optional argumentsREMshift:parseargumentshiftset CURRENTARG=%1if "%CURRENTARG%" == "" (goto :donewithargs)if /i "%CURRENTARG%" == "/nosxs" (set SKIPWINSXS=yesgoto :parseargument) else if /i "%CURRENTARG%" == "/nover" (set VERSION_CHECK=nogoto :parseargument) else if /i "%CURRENTARG%" == "/config" (goto :getconfigfile) else if /i "%CURRENTARG%" == "/binaries" (set SRCDIRBINS=yesgoto :getbuildarch) else if /i "%CURRENTARG%" == "/pnp" (set EXTRAARGS=%EXTRAARGS% /pnpbldini %CONFIG_EXTRA% %ADDREG% software .\wpefeat.inf,Pnpgoto :parseargument) else if /i "%CURRENTARG%" == "/wmi" (set WMISUPPORT=yesREM set CONFIGFILE=configwmi.infset EXTRAARGS=%EXTRAARGS% /wmibldini %CONFIG_EXTRA% %ADDREG% software .\wpefeat.inf,Wmibldini %CONFIG_EXTRA% %ADDREG% software .\wmisoftware.inf,AddRegbldini %CONFIG_EXTRA% %ADDREG% setupreg.hiv .\wmisystem.inf,AddReggoto :parseargument) else if /i "%CURRENTARG%" == "/nowf" (set ICF_FEATURE=.\wpefeat.inf,NoIcfset ICF_SWITCH=goto :parseargument) else (set IMAGENAME=%CURRENTARG%set CREATEIMG=yesgoto :parseargument)REMREM We are done with argsREMgoto :donewithargsLooking at the above, you can see that this is where additional entries are added if you specify any of the command line parameters (/PNP, /WMI, /NOWF)You can verify this by running mkimg with one of the switches (/PNP for example) and compare config.inf to config-extra.infI've added commands into mkimg.cmd to add the necessary registry entries for a Ramdrive, because I keep forgetting to add them before calling oscdimg.I'm actually just about to test this.[EDIT]Just realised, for this to actually work, you need to pass an .inf file to bldini, rather than a .reg file.[/EDIT] Edited September 11, 2005 by kiwidave Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now