Saturday, 25 February 2012

Solved :Unable to install Office 2010 on windows XP, Windows vista 32 Bit, 64bit and Windows 7 32 Bit, 64 Bit Error : Set up encountered an error needs to be closed.


SOLVED

  • Check for the multiple version
  • If you find multiple version, uninstall it from the Box where you are trying to install Office   from Add & remove Programs in Windows XP machine and Programs and Features in windows vista and Windows 7 machine ( Start > Run > appwiz.cpl)
  • Check if you are able to open system information without any error ( Start > run > MSINFO32)
  • If you are not able to open MSINFO 32 (Error : cannot access the information)
  • Start > Run > Notepad 

Copy and paste the following 

@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

When you save the note save the File as Wmireset.bat on the desktop.

Double click on Wmireset.bat, it will open command prompt windows ie you will see a DOS screen with a black background when prompted press "Y" on the keyboard. (This will repair Windows manage instrumentation files on your computer.

If you are able to open MSINFO 32 without any error message
Delete Microsoft Help folder from

C:\ProgramData
C:\Users\Quick Solver\AppData\Local

Disable Print spooler from  : Start > run > services.msc > look for Print spooler > Right Click on print spooler > Properties > Stop the print spooler services > Change the Start up type to Disable.

Restart the computer

Try installing Office.

If this does not fix the issue
Cancel the set up > try install Office > Type the Product key > Accept the Eula > Click on customize > Make One note note available > and install office 

Good luck please feel free to leave your comment.


24 comments:

  1. If it's about deleting the folder Microsoft help, it can be found here regarding windows xp "C:\Documents and Settings\All Users\Application Data"

    P.S it didn't work for me and i have tried lots of methods

    Ahmed

    ReplyDelete
  2. Great, works for me! After 6 hours of testing all different solutions, this script did it for me!

    THANK A LOT :)

    ReplyDelete
  3. didn't work for me in a network enviroment

    ReplyDelete
  4. didn't work for my anyway, error is given but microsoft solutions don't follow them.

    ReplyDelete
    Replies
    1. Great work.. My friend.. perfect.. i was not able to install office in windows 2008 R2, and able to do it.. just with the script..

      Thanks man .. Great work..

      Delete
  5. I'm sorry to say this hasn't worked for me, nor have the 9 pages of suggestions from the answers.microsoft.com website. I'm ready to give up and use OpenOffice, though I know it's horrible. Microsoft, I can't believe you won't properly fix this -- I wasted money on Office 2010 and I can't even use it, and now I no longer have my 2007 installation. I should've stuck with the 5 year old Office 2007 -- at least it installed and worked. This sickens me.

    ReplyDelete
  6. You are a lifesaver, had been trying to install for months with no success. Thankyou

    ReplyDelete
  7. VERY NICE SIR!!! Spent 4 hours trying Microsoft fixes and nothing worked... Your suggested repair steps fixed it. Much thanks!

    ReplyDelete
  8. I've been trying to find a fix for this problem for three months!!

    Windows XP SP3 + Office 2010 Professional Plus SP1 x32

    Finally:
    Deleting the Microsoft Help folders, not just re-naming them.
    Stopping and disabling the print spooler service.
    Creating and running the Wmireset.bat file as above
    Restart
    Install Office 2010 successfully!!!!!!!!!!

    THANK YOU - THANK YOU

    ReplyDelete
  9. Perfect .. for office 2010 in windows 2008 R2

    work great ..

    Great work..
    Thanks

    ReplyDelete
  10. Thank you! The script worked, and saved me from pulling my hair out. Installed Microsoft Office 2010 Professional on Windows 7 64-bit.

    ReplyDelete
  11. You are a champ! Thanks for the help!

    ReplyDelete
  12. ain't u awesome :)

    ReplyDelete
  13. awesome mate! good work

    ReplyDelete
  14. 10x! Worked with Microsoft Office 2007 Pro on Windows 7 64 bit.

    ReplyDelete
  15. I have been battling this issue for 3 days. I was doing an Office 2010 to 2013 upgrade. After the first failed upgrade I could not remove, repair or run Office 2010 any longer. I tried at least 20 other fixed with no luck. This method worked perfectly!!! Thank you very much!

    ReplyDelete
  16. This worked perfectly. No script needed. No phone activation needed as well, EZ-Activator did the job along with the steps outlined above. Again, I did not have to mess with the WMI script, just fyi

    ReplyDelete
  17. AWESOME!!! I was fighting with this for hours. This worked perfectly.

    ReplyDelete
  18. Super!
    checked if Msinfo32 was working normally, which it didn't.
    Made the batfile and ran it accordingly.
    Rebooted the machine and voila, perfect installation of Office 2010std on a WinXP device.
    Thank you very much!

    ReplyDelete
  19. It worked!! thank you so much

    ReplyDelete
  20. it work for me~~thank you very much, you save my life~~

    ReplyDelete
  21. Thank you, I got this solve effective for me to install MS office 2010.

    ReplyDelete
  22. The MS cleanup facility did the job.
    Legend!!!!

    ReplyDelete