Help - Search - Members - Calendar
Full Version: sysprep "An error occurred while trying to update your registry&q
The CD Forum > Bart's PE Builder > OfflineSysPrep
JakeLD
Hi Galapo,

Version 1.10.0.5 don't seem to work for me. Every time I hit reseal, an error pop-up appear saying:An error occurred while trying to update your registry. Unable to Continue.

Let me know if you need something else for troubleshooting.
Thx
Galapo
Hi JakeLD,

Please test with this version.

Also, if you are using a sysprep.inf file, make sure that there is no [SysprepMassStorage] section or BuildMassStorage=yes line. The error will appear if either of these exist, this is a limitation of running sysprep offline and under PE.

Regards,
Galapo.
JakeLD
Make sense I add those lines in sysprep.inf.

[SysprepMassStorage]
primary_ide_channel=%WinDir%\inf\mshdc.inf
secondary_ide_channel=%WinDir%\inf\mshdc.inf
;Prevent mouse and keyboard unreponsiviness during sysprep
*pnp0303=%WinDir%\inf\keyboard.inf
*pnp0f03=%WinDir%\inf\msmouse.inf
*pnp0f0b=%WinDir%\inf\msmouse.inf
*pnp0f0e=%WinDir%\inf\msmouse.inf
*pnp0f12=%WinDir%\inf\msmouse.inf
*pnp0f13=%WinDir%\inf\msmouse.inf

I will remove those and report back. Thanks!
Galapo
Being able to process such INF files and [SysprepMassStorage] section is coming in version 2. I've done some initial coding of the function and have success. But I'm waiting for thecharliec to get back to me with the gui restructuring code etc to then plonk in these new functions.

But I also have a new job starting soon and a phd thesis to finish... Oh dear, time, time, time.

Regards,
Galapo.
JakeLD
That was it, thx for your help.
Galapo
I'm glad to hear that!

Regards,
Galapo.
JerichoJones
QUOTE (Galapo @ Mar 26 2009, 11:33 AM) *
I'm glad to hear that!

Regards,
Galapo.


I wrote the script below to validate the MassStorage Section. It is not perfect, it does not like odd characters after the \ (ex. PCMCIA\*PNP0600). Fortunately there are not alot of these. ;-)

I also use BuildHWIDList.cmd to build my third party drivers. I got BuildHWIDList.cmd from the Internet. Unfortunatly I have lost the original link. I hope you find them useful...

1. Extract out the massstorage section to a file.
2. Substitute = for " " (SPACE)
3. Change the text to UPPERCASE (i get odd results when I don't do this)
3. Change Noname01.txt to the name of the file you saved.
4. Results will be written to BadIDs.txt (Remove the PAUSE if you like)

CheckHWIDs.CMD
CODE
@echo off
pushd %~DP0
for /f "tokens=1*" %%A in (NoName01.txt) do CALL :DoWork "%%A" %%B
pause
GOTO :EOF

:DoWork
echo ***************************
echo Checking %2 for %1
Findstr /i /l /c:%1 %2
If ERRORLEVEL 1 (echo %2    %1&echo %2    %1>>BadIDs.txt&pause)
GOTO :EOF


BuildHWIDList.cmd
CODE
@echo off
rem %1 is path to MassDriverPacks Folder
IF "%1"=="" GOTO EOF
IF NOT EXIST %1 GOTO EOF

SETLOCAL ENABLEDELAYEDEXPANSION
SET STDOUT=%cd%\HWIDS.TXT
TYPE>%STDOUT% 2>NUL

::traverse drivers path
CALL :TRAVERSAL %1

GOTO EOF

:TRAVERSAL
PUSHD %1
echo Running Dir...
for /f %%f in ('Dir /b /s *.inf') do (
echo Running Find...&for /f "eol=- tokens=2 delims=," %%i in ('find /i "pci\ven" %%f') do (
  for /f "tokens=*" %%j in ("%%i") do (
    for /f "tokens=1* delims=_" %%k in ("%%j") do (
      if /i "%%k" EQU "PCI\VEN" (
        for /f "usebackq tokens=1* delims=; " %%a in ('%%j') do (
          echo %%a=%cd%\%%f>>%STDOUT%&echo %cd%
        )
      )
    )
  )
)
)

::FOR /F %%I IN ('DIR /AD /OGN /B') DO (
::CALL :TRAVERSAL %CD%\%%I
::)
POPD
GOTO EOF

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