I have problems in updating windows operating system

Dear jenny,
This problem occurs when the windows update agent file Wups2.dill is registered incorrectly in the registry. Because the registry files that correspond to the Wups2.dill file are missing, update installations are unsuccessful.
To solve your problem follow the instruction:
01. Open a new notepad.
02. Copy the following commands to the notepad.Â
03. Go to the file menu of the notepad, click save as.
04. In the list select all files.
05. In the name type register.bat.
06. Save the register.bat file on your desktop.
07. Click right button of mouse on the file register.bat, and then run as administrator.
08. Try to install update now.
If again failed to update then you need to follow the next instruction.
Download windows update agent from Microsoft website and install in your computer and restart. Your problem will be solved.
I think this information will solve your problem.
Thank you.
It usually depends on the kind of error message you received on Windows 7 while doing the update. If you receive an error like Windows Update error 80070002, you may need to remove the temporary update files that Windows uses to identify updates for your computer. The steps below apply to Windows Vista but you may try it on your Windows 7.
Actually, this also works on Windows XP and I think this will help you with your problem on your Windows 7. If you need more information, you may visit Windows | Support | Windows Update error 80070002.