Windows XP SP2 Installation Error

G

Guest

When trying to install SP2 I get an error that says Cannot read from or write
to database. Does anyone know how to resolve this? Thanks
 
S

SingaporeWebDesign

Hello,

From
http://www.mcse.ms/message1003225.html

Place the text below in a .bat (batch) file (e.g. paste it into a new

notepad document and save it with e.g. the name fixdb.bat)



Then run the batch file by double clicking on it.


You should run the batch file just after a reboot of the computer (as

the first thing).



The batch file will tell you when it is finished.



Please post any result back here, good or bad :)



Start batch file:

--------------------8<----------------------



@echo off

:: Batch file that tries to remedy error # 800710D9

:: "Unable to read from or write to the database".

:: Author: Torgeir Bakken

:: Date: 2004-08-30



:: Stop the Cryptographic service

%SystemRoot%\System32\net.exe stop CryptSvc



:: Rename all log files in the %SystemRoot%\Security folder

FOR %%a in (%SystemRoot%\Security\*.log) DO move /y %%a %%a.old



:: Rename the %SystemRoot%\System32\CatRoot2 folder

move /y %SystemRoot%\System32\CatRoot2 %SystemRoot%\System32\CatRoot2old



IF not exist %SystemRoot%\System32\CatRoot2 GOTO CONT01



:: In case the folder rename failed because of locked files

:: rename all log files in the %SystemRoot%\System32\CatRoot2 folder

FOR %%a in (%SystemRoot%\System32\CatRoot2\*.log) DO move /y %%a %%a.old

SET catroot2locked=True



:CONT01

cls

echo.

echo Please wait, this might take some time...



:: Unregister DLL files that are associated with Cryptographic Services

CD /D %SystemRoot%\System32

start /wait regsvr32.exe /s /u softpub.dll

start /wait regsvr32.exe /s /u wintrust.dll

start /wait regsvr32.exe /s /u initpki.dll

start /wait regsvr32.exe /s /u dssenh.dll

start /wait regsvr32.exe /s /u rsaenh.dll

start /wait regsvr32.exe /s /u gpkcsp.dll

start /wait regsvr32.exe /s /u sccbase.dll

start /wait regsvr32.exe /s /u slbcsp.dll

start /wait regsvr32.exe /s /u cryptdlg.dll



:: Reregister DLL files that are associated with Cryptographic Services

start /wait regsvr32.exe /s softpub.dll

start /wait regsvr32.exe /s wintrust.dll

start /wait regsvr32.exe /s initpki.dll

start /wait regsvr32.exe /s dssenh.dll

start /wait regsvr32.exe /s rsaenh.dll

start /wait regsvr32.exe /s gpkcsp.dll

start /wait regsvr32.exe /s sccbase.dll

start /wait regsvr32.exe /s slbcsp.dll

start /wait regsvr32.exe /s cryptdlg.dll



:: Configure and start the Cryptographic service

%SystemRoot%\system32\sc.exe config CryptSvc start= auto

:: Start the Cryptographic Service

%SystemRoot%\system32\net.exe start CryptSvc

cls



echo.

If "%catroot2locked%"=="True" GOTO CONT02

echo Finished, please reboot the computer and then try to install SP2
again...



GOTO END

:CONT02

echo Please run the batch file again with a newly restarted computer...

echo (but if it is newly restarted, just do a reboot and then try

echo to install SP2 again)...

GOTO END



:END

echo.

pause


--------------------8<----------------------
--
Singapore Web Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ
 
G

Guest

Hi! I appreciate your suggestion, but I can't seem to get this to run. Are
there only certain parts of the script that need to be pasted into Notepad?
Any suggestions? Thanks!

SingaporeWebDesign said:
Hello,

From
http://www.mcse.ms/message1003225.html

Place the text below in a .bat (batch) file (e.g. paste it into a new

notepad document and save it with e.g. the name fixdb.bat)



Then run the batch file by double clicking on it.


You should run the batch file just after a reboot of the computer (as

the first thing).



The batch file will tell you when it is finished.



Please post any result back here, good or bad :)



Start batch file:

--------------------8<----------------------



@echo off

:: Batch file that tries to remedy error # 800710D9

:: "Unable to read from or write to the database".

:: Author: Torgeir Bakken

:: Date: 2004-08-30



:: Stop the Cryptographic service

%SystemRoot%\System32\net.exe stop CryptSvc



:: Rename all log files in the %SystemRoot%\Security folder

FOR %%a in (%SystemRoot%\Security\*.log) DO move /y %%a %%a.old



:: Rename the %SystemRoot%\System32\CatRoot2 folder

move /y %SystemRoot%\System32\CatRoot2 %SystemRoot%\System32\CatRoot2old



IF not exist %SystemRoot%\System32\CatRoot2 GOTO CONT01



:: In case the folder rename failed because of locked files

:: rename all log files in the %SystemRoot%\System32\CatRoot2 folder

FOR %%a in (%SystemRoot%\System32\CatRoot2\*.log) DO move /y %%a %%a.old

SET catroot2locked=True



:CONT01

cls

echo.

echo Please wait, this might take some time...



:: Unregister DLL files that are associated with Cryptographic Services

CD /D %SystemRoot%\System32

start /wait regsvr32.exe /s /u softpub.dll

start /wait regsvr32.exe /s /u wintrust.dll

start /wait regsvr32.exe /s /u initpki.dll

start /wait regsvr32.exe /s /u dssenh.dll

start /wait regsvr32.exe /s /u rsaenh.dll

start /wait regsvr32.exe /s /u gpkcsp.dll

start /wait regsvr32.exe /s /u sccbase.dll

start /wait regsvr32.exe /s /u slbcsp.dll

start /wait regsvr32.exe /s /u cryptdlg.dll



:: Reregister DLL files that are associated with Cryptographic Services

start /wait regsvr32.exe /s softpub.dll

start /wait regsvr32.exe /s wintrust.dll

start /wait regsvr32.exe /s initpki.dll

start /wait regsvr32.exe /s dssenh.dll

start /wait regsvr32.exe /s rsaenh.dll

start /wait regsvr32.exe /s gpkcsp.dll

start /wait regsvr32.exe /s sccbase.dll

start /wait regsvr32.exe /s slbcsp.dll

start /wait regsvr32.exe /s cryptdlg.dll



:: Configure and start the Cryptographic service

%SystemRoot%\system32\sc.exe config CryptSvc start= auto

:: Start the Cryptographic Service

%SystemRoot%\system32\net.exe start CryptSvc

cls



echo.

If "%catroot2locked%"=="True" GOTO CONT02

echo Finished, please reboot the computer and then try to install SP2
again...



GOTO END

:CONT02

echo Please run the batch file again with a newly restarted computer...

echo (but if it is newly restarted, just do a reboot and then try

echo to install SP2 again)...

GOTO END



:END

echo.

pause


--------------------8<----------------------
--
Singapore Web Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ

anne2675 said:
When trying to install SP2 I get an error that says Cannot read from or
write
to database. Does anyone know how to resolve this? Thanks
 
S

SingaporeWebDesign

Hello,

***Create a RESTORE POINT before running this***

I have created the BAT file and attached it to this message. Hope it works.

Save it to your Desktop, Close *all* programs (esp. Explorer and Internet
Explorer) and run it. Leave it for a while. and restart when prompted.

(Batch file created from http://www.mcse.ms/message1003225.html )

--
Singapore Web Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ

anne2675 said:
Hi! I appreciate your suggestion, but I can't seem to get this to run.
Are
there only certain parts of the script that need to be pasted into
Notepad?
Any suggestions? Thanks!

SingaporeWebDesign said:
Hello,

From
http://www.mcse.ms/message1003225.html

Place the text below in a .bat (batch) file (e.g. paste it into a new

notepad document and save it with e.g. the name fixdb.bat)



Then run the batch file by double clicking on it.


You should run the batch file just after a reboot of the computer (as

the first thing).



The batch file will tell you when it is finished.



Please post any result back here, good or bad :)



Start batch file:

--------------------8<----------------------



@echo off

:: Batch file that tries to remedy error # 800710D9

:: "Unable to read from or write to the database".

:: Author: Torgeir Bakken

:: Date: 2004-08-30



:: Stop the Cryptographic service

%SystemRoot%\System32\net.exe stop CryptSvc



:: Rename all log files in the %SystemRoot%\Security folder

FOR %%a in (%SystemRoot%\Security\*.log) DO move /y %%a %%a.old



:: Rename the %SystemRoot%\System32\CatRoot2 folder

move /y %SystemRoot%\System32\CatRoot2 %SystemRoot%\System32\CatRoot2old



IF not exist %SystemRoot%\System32\CatRoot2 GOTO CONT01



:: In case the folder rename failed because of locked files

:: rename all log files in the %SystemRoot%\System32\CatRoot2 folder

FOR %%a in (%SystemRoot%\System32\CatRoot2\*.log) DO move /y %%a %%a.old

SET catroot2locked=True



:CONT01

cls

echo.

echo Please wait, this might take some time...



:: Unregister DLL files that are associated with Cryptographic Services

CD /D %SystemRoot%\System32

start /wait regsvr32.exe /s /u softpub.dll

start /wait regsvr32.exe /s /u wintrust.dll

start /wait regsvr32.exe /s /u initpki.dll

start /wait regsvr32.exe /s /u dssenh.dll

start /wait regsvr32.exe /s /u rsaenh.dll

start /wait regsvr32.exe /s /u gpkcsp.dll

start /wait regsvr32.exe /s /u sccbase.dll

start /wait regsvr32.exe /s /u slbcsp.dll

start /wait regsvr32.exe /s /u cryptdlg.dll



:: Reregister DLL files that are associated with Cryptographic Services

start /wait regsvr32.exe /s softpub.dll

start /wait regsvr32.exe /s wintrust.dll

start /wait regsvr32.exe /s initpki.dll

start /wait regsvr32.exe /s dssenh.dll

start /wait regsvr32.exe /s rsaenh.dll

start /wait regsvr32.exe /s gpkcsp.dll

start /wait regsvr32.exe /s sccbase.dll

start /wait regsvr32.exe /s slbcsp.dll

start /wait regsvr32.exe /s cryptdlg.dll



:: Configure and start the Cryptographic service

%SystemRoot%\system32\sc.exe config CryptSvc start= auto

:: Start the Cryptographic Service

%SystemRoot%\system32\net.exe start CryptSvc

cls



echo.

If "%catroot2locked%"=="True" GOTO CONT02

echo Finished, please reboot the computer and then try to install SP2
again...



GOTO END

:CONT02

echo Please run the batch file again with a newly restarted computer...

echo (but if it is newly restarted, just do a reboot and then try

echo to install SP2 again)...

GOTO END



:END

echo.

pause


--------------------8<----------------------
--
Singapore Web Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ

anne2675 said:
When trying to install SP2 I get an error that says Cannot read from or
write
to database. Does anyone know how to resolve this? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top