@echo off
cls
regedit /s unist.dat
copy unist.dat %temp%\test.dat /y
FR.exe "%temp%\test.dat" -fic:"\Wow6432Node" -t:""
regedit /s %temp%\test.dat
del /q "%temp%\test.dat"
if NOT EXIST "%windir%\system32\MSXML5.DLL" (regsvr32 /u /s MSXML5.DLL)
regsvr32 /u /s VBE6.DLL
regsvr32 /u /s fm20.dll
regsvr32 /u /s MSADDNDR.DLL
regsvr32 /u /s 2052\TBLHEAD.DLL
regsvr32 /u /s 2052\SYMINPUT.DLL
regsvr32 /u /s AddSoundAddin.dll
regsvr32 /u /s swfmsoai.dll
regsvr32 /u /s swfmsoct.dll
regsvr32 /u /s ExcelTab.dll
regsvr32 /u /s WordTab.dll
regsvr32 /u /s PPtTab.dll
IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" (reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel" /f /v "win32" /t REG_SZ /d "%windir%\SysWOW64\msexcl40.dll") else (reg add "HKLM\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel" /f /v "win32" /t REG_SZ /d "%windir%\system32\msexcl40.dll")
del "%USERPROFILE%\桌面\Word 2003.lnk"
del "%USERPROFILE%\桌面\excel 2003.lnk"
del "%USERPROFILE%\桌面\PowerPnt2003.lnk"
del "%USERPROFILE%\桌面\Access2003.lnk"
del "%USERPROFILE%\Desktop\Word 2003.lnk"
del "%USERPROFILE%\Desktop\excel 2003.lnk"
del "%USERPROFILE%\Desktop\PowerPnt2003.lnk"
del "%USERPROFILE%\Desktop\Access2003.lnk"
rd /s /q "%USERPROFILE%\Start Menu\Programs\Office 2003"
rd /s /q "%USERPROFILE%\「开始」菜单\程序\Office 2003"
rd /s /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Office 2003"
rd /s /q "%ProgramData%\Microsoft\Windows\「开始」菜单\程序\Office 2003"
rd /s /q "%APPDATA%\Microsoft\PowerPoint"
rd /s /q "%APPDATA%\Microsoft\Office"
rd /s /q "%APPDATA%\Microsoft\Excel"
rd /s /q "%APPDATA%\Microsoft\Word"
rd /s /q "%APPDATA%\Microsoft\Templates"
rd /s /q "%APPDATA%\Microsoft\AddIns"
rd /s /q "%APPDATA%\Microsoft\Proof"
exit
