Boot from your Windows 7 installation disc
On the screen that says
Press any key to boot from CD or DVD .._
Press [ENTER]
Select your language preferences and click on Next.
Click on Repair your computer. ( Lower left hand corner)
Select which operating system you want to restore and the click on Next
Select the system recovery option you want to do
choose
Command Prompt
Inside Command prompt type in
Note
If regedit doesn't open up the registry try the command below
Code:
bcdedit | find "osdevice"
Note
The | pipe symbol can be found using SHIFT + \ ( Just above the ENTER key).
The result should be either os device partition=D: or os device partition=C:
Once you know Drive windows is installed do this command
Note
If its D:\ change C:\ to D:\
Type in
Inside Reistry
Select HKEY_LOCAL_MACHINE in the registry tree, and go to the File menu and choose "Load Hive".
Open the registry hive file SYSTEM from the location: C:\Windows\System32\Config
Give it a random name different to any of the existing names
expand the key you gave it to
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\SubSystems
In the right side look for " Windows " it should be listed under Name
Change it from
Code:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=[b]consrv[/b]:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16
TO
Code:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=[b]winsrv[/b]:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16
Do the same to these key
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\SubSystems
Once you're done changing the keys
Select the registry hive you edited, go to File, and choose "Unload Hive".
Close the registry and restart the PC.
Sorry for taking so long.