The English RTM version of SQL Server 2005 I downloaded it one months ago and I haven't installed it yet.
I am always prompted during Setup to "not be able to connect to the database, configure SQL Server", and so on.
I started to think it was my system and it didn't work a couple of times to reload.
Today, we finally found a solution and thanked Uestc95 for this approach.
Save the following code as a. bat file to run.
Copy Code code as follows:
@echo on
CD/D C:\Temp
If not exist%windir%\System32\Wbem goto Tryinstall
CD/D%windir%\System32\Wbem
net stop WinMgmt
Winmgmt/kill
If exist Rep_bak Rd REP_BAK/S/q
Rename Repository Rep_bak
For%%i in (*.dll) do regsvr32-s%%i
For%%i in (*.exe) do call:fixsrv%%i
For%%i in (*.MOF,*.MFL) do mofcomp%%i
net start WinMgmt
Goto END
: Fixsrv
if/i (% 1) = = (Wbemcntl.exe) goto SKIPSRV
if/i (% 1) = = (Wbemtest.exe) goto SKIPSRV
if/i (% 1) = = (mofcomp.exe) goto SKIPSRV
%1/regserver
: Skipsrv
Goto END
: Tryinstall
If not exist Wmicore.exe Goto end
wmicore/s
net start WinMgmt
: End