August 8, 200521 yr 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
August 15, 200521 yr Have you tried looking in the OPK.chm or the WinPE.chm?<{POST_SNAPBACK}>No topic found in Help File.
September 6, 200520 yr 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, 200520 yr by kiwidave
Create an account or sign in to comment