Jump to content

Total Uninstallation of MS Office 2007 from Windows 7


Airstream_Bill

Recommended Posts

Airstream_Bill

Yesterday I decided that I did not want Office 2007 on my computer as I never used it. I know that just uninstalling it leaves all kinds of Folders, Files and registry entries behind.

If you are interested in removing everything here is how I did it.

1st. Use the normal Program Uninstall. Your computer should want to reboot. REBOOT

2nd. Go here and get the Microsoft Fixit50154.msi http://support.microsoft.com/kb/928218 and run the FixIt program then reboot the computer again.

3rd. On the site My Digital Life I found this file by someone who evidently new how to write a good batch file. I am going to past it below. All one has to do is open your Notepad and copy and past it into the Notepad. Save it as a *.txt file and then change the name to *.cmd or *.bat Example OfficeRemovalTool.cmd or .bat I used bat. Probably should use *.cmd as file name. Turn off anything that you do not need running (Just my way). Right click on the file you created and Run As Administrator.

It will tell you to reboot when it is finished. It removed every folder and registry entry on my computer referring to Office 2007. Please do not use this if you do not know what you are doing. Like I said it worked for me.

Only copy what is below Hash marks into Notepad.

========================================================================================

@echo off&title Office 2003\7\10 Clean Up Tool!&cls&echo.&echo This tool will remove almost any office that&echo a u have on ur computer, LIke:&echo * Office 2003, Professional, (Standart ???)&echo * Office 2007, Enteprise, Ultimate, Professional&echo Home-And-Student, Standart, Small business&echo * Office 2007 {MSDN}, Enteprise, Ultimate,&echo Professional, Professional plus&echo * Office 2010, Enteprise, Ultimate, Professional&echo Home-And-Student, Standart, Small business&echo * Office 2010 {MSDN}, Enteprise, Ultimate,&echo Professional, Professional plus&echo.&echo Press any key 2 Continue!&pause >nul &cls

echo.&echo Close And Remove Service's
tskill /a GROOVEMN >nul 2>&1
sc stop "Microsoft SharePoint WorkspaceAudit Service" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Microsoft SharePoint WorkspaceAudit Service" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Microsoft SharePoint WorkspaceAudit Service" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Microsoft SharePoint WorkspaceAudit Service" /f >nul 2>&1
sc stop "osppsvc" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\osppsvc" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\osppsvc" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\osppsvc" /f >nul 2>&1
sc stop "odserv" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\odserv" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\odserv" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\odserv" /f >nul 2>&1
sc stop "ose" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ose" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ose" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ose" /f >nul 2>&1
sc stop "Outlook" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Outlook" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Outlook" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Outlook" /f >nul 2>&1

echo Remove Direcotorie's
rd/s/q "%HOMEDRIVE%\MSOCache" >nul 2>&1
rd/s/q "%HOMEDRIVE%\Config.msi" >nul 2>&1

rd/s/q "%programfiles%\Microsoft Office" >nul 2>&1
rd/s/q "%programfiles%\Common Files\microsoft shared\OFFICE11" >nul 2>&1
rd/s/q "%programfiles%\Common Files\microsoft shared\OFFICE12" >nul 2>&1
rd/s/q "%programfiles%\Common Files\microsoft shared\OFFICE14" >nul 2>&1

if defined programfiles(X86) (
rd/s/q "%programfiles(x86)%\Microsoft Office" >nul 2>&1
rd/s/q "%programfiles(x86)%\Common Files\microsoft shared\OFFICE11" >nul 2>&1
rd/s/q "%programfiles(X86)%\Common Files\microsoft shared\OFFICE12" >nul 2>&1
rd/s/q "%programfiles(X86)%\Common Files\microsoft shared\OFFICE14" >nul 2>&1
)

rd/s/q "%programfiles%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform" >nul 2>&1
rd/s/q "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" >nul 2>&1
rd/s/q "%ALLUSERSPROFILE%\Application Data\Microsoft\OFFICE" >nul 2>&1
rd/s/q "%ALLUSERSPROFILE%\Microsoft\OFFICE" >nul 2>&1

echo Remove Registry entirie's
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Office" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office" /f >nul 2>&1
del /q "list" >nul 2>&1
reg query "HKEY_CLASSES_ROOT\Installer\Products" | find "0002" >>"list"
reg query "HKEY_CLASSES_ROOT\Installer\Products" | find "0004" >>"list"
reg query "HKEY_CLASSES_ROOT\Installer\Features" | find "0002" >>"list"
reg query "HKEY_CLASSES_ROOT\Installer\Features" | find "0004" >>"list"
reg query "HKEY_CLASSES_ROOT\Installer\UpgradeCodes" | find "0002" >>"list"
reg query "HKEY_CLASSES_ROOT\Installer\UpgradeCodes" | find "0004" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{101" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{111" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{201" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{211" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{901" >>"list"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find "{911" >>"list"
if exist "list" for /f %%i in (list) do reg delete "%%i" /f >nul 2>&1
del /q "list" >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ENTERPRISE" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ULTIMATE" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PRO" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PROPLUS" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ENTERPRISER" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ULTIMATER" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PROR" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HOMESTUDENTR" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\STANDARDR" /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SMALLBUSINESSR" /f >nul 2>&1
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | find /i "Office14." >>"list"
if exist "list" for /f %%i in (list) do reg delete "%%i" /f >nul 2>&1
del /q "list" >nul 2>&1
echo *** Process Don'e, plz restart ur computer ***&echo.&pause&exit

Last edited by maorosh1; 23 Jul 2010 at 02:06.

Reply With Quote Reply With Quote
The Following 13 Users Say Thank You to maorosh1 For This Useful Post:

bears_fan12 (15 Dec 2012), Bosh (23 Jul 2010), chris00 (08 Jun 2011), jmmen (24 Jul 2010), MACKOERIC (26 Jul 2010), Makcalable (28 Oct 2011), marioka (28 Jul 2010), Matriks (28 Jul 2010), qewlpal (24 Jul 2010), R29k (09 Nov 2011), shevactc3 (09 Nov 2011), TassieToo (31 Jul 2010), WIKIMACK (11 Dec 2011)

22 Jul 2010, 23:58 #2
frankogus16
frankogus16 is offline
MDL Novice

Join Date
22 Jul 2010
Posts
1
Thanks
0
Thanked 0 Times in 0 Posts

Default

where the software?

Reply With Quote Reply With Quote
23 Jul 2010, 00:03 #3
urie
urie is offline
Super Moderator urie's Avatar

Join Date
21 May 2007
Posts
7,170
Thanks
363
Thanked 1,922 Times in 1,307 Posts

Default

Quote Originally Posted by frankogus16 View Post
where the software?
Not software it is a script

Reply With Quote Reply With Quote
23 Jul 2010, 02:08 #4
maorosh1
maorosh1 is offline
MDL Novice

Join Date
22 Jun 2010
Posts
17
Thanks
0
Thanked 13 Times in 1 Post

Default

i thought u will enter to pastebin dot com / .... i post the link
but anyway i post it over here too :P

Reply With Quote Reply With Quote
23 Jul 2010, 04:55 #5
ehsan405
ehsan405 is offline
MDL Novice

Join Date
23 Jul 2010
Posts
6
Thanks
13
Thanked 0 Times in 0 Posts

Default

Hi
What should I do to run this script ??
Thank you

Reply With Quote Reply With Quote
23 Jul 2010, 06:44 #6
Bosh
Bosh is offline
MDL Developer Bosh's Avatar

Join Date
30 May 2010
Posts
629
Thanks
158
Thanked 292 Times in 195 Posts

Default

Quote Originally Posted by ehsan405 View Post
Hi
What should I do to run this script ??
Thank you
- You copy it to notepad and save it as "All files" with any name and the extension ".cmd", for example: "Office Cleanup.cmd" (without quotes)
- Then you right click the file you've just created and select "run as administrator" and that's it.

Hope it helps

Last edited by Bosh; 23 Jul 2010 at 22:27. Reason: Thanks to urie for the correction

Reply With Quote Reply With Quote
The Following User Says Thank You to Bosh For This Useful Post:

ehsan405 (24 Jul 2010)

23 Jul 2010, 16:14 #7
urie
urie is offline
Super Moderator urie's Avatar

Join Date
21 May 2007
Posts
7,170
Thanks
363
Thanked 1,922 Times in 1,307 Posts

Default

Should it not be .cmd file .bat files went out with windows 98

Reply With Quote Reply With Quote
24 Jul 2010, 12:27 #8
jmmen
jmmen is offline
MDL Novice

Join Date
06 Jan 2010
Posts
23
Thanks
3
Thanked 0 Times in 0 Posts

Default

Excellent!!, thks.

Reply With Quote Reply With Quote
24 Jul 2010, 16:19 #9
cee12
cee12 is offline
MDL Junior Member

Join Date
04 May 2010
Posts
57
Thanks
15
Thanked 2 Times in 2 Posts

Default

Thanks, great script!


Just interested to know if it cleans up office more effectively/differently to the official cleaner?
http://support.microsoft.com/kb/290301

Reply With Quote Reply With Quote
26 Jul 2010, 18:47 #10
MACKOERIC
MACKOERIC is offline
Banned

Join Date
03 Dec 2007
Location
France
Posts
53
Thanks
20
Thanked 12 Times in 2 Posts

Talking

Hi

this gives a command prompt

Reply With Quote Reply With Quote
==============================================================================================

Just copy to Hash Marks. Not including Hash Marks! Hope this helps someone.

Edited by Airstream_Bill
Link to comment
Share on other sites


  • Replies 11
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • Airstream_Bill

    5

  • unknownasphyxiated

    2

  • RobrPatty

    1

  • Beamslider

    1

Top Posters In This Topic

Airstream_Bill

Microsoft also has instructions on removing manually all the office versions.

http://support.microsoft.com/kb/290301

Hi, I know but I was too Stupid to follow the directions. Ha!

Link to comment
Share on other sites


Airstream_Bill

The best way to do that is with the help of Microsoft Toolkit 2.4.6

Download Link

Site: http://www.mirrorcreator.com

Sharecode[?]: /files/0UJS0PY7/MTKV246_1.zip_links

Thank You, I will download that.

Link to comment
Share on other sites


unknownasphyxiated

it is better if you use spoiler for the script and the comment

its look better like that and easier for people to copy the script

or simply create a pastebin

Link to comment
Share on other sites


Airstream_Bill

it is better if you use spoiler for the script and the comment

its look better like that and easier for people to copy the script

or simply create a pastebin

I think I understand what you are suggesting. I should have used the Spoiler for the content of the Batch file. (script) I understand. Now all I have to do is figure out how to do that. I will do that the next time. THANKS!

Link to comment
Share on other sites


Airstream_Bill

Special BBCode (beside eraser icon )6C57gSR.png > Spoiler

Gotcha. THANKS I will employ that button the next time.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...