|
以下为CMD 内容:
@echo off
Set OFFICE=
SET Var0=%0
FOR /f "delims=" %%I in ("%Var0%") do Set OFFICE=%%~dPI
REM “OFFICE”为外挂程序所在的分区号,这个批处理用来注册Office 2003组件程序与其文档的关联。
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Toolbars" /f /v "AdaptiveMenus" /t REG_DWORD /d 0x00000000>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\PowerPoint\Options" /f /v "StartupDialog" /t REG_DWORD /d 0x00000000>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\PowerPoint\First Run" /f /v "FirstRun" /t REG_DWORD /d 0x00000001>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options" /f /v "FirstRun" /t REG_DWORD /d 0x00000001>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options" /f /v "StartupDialog" /t REG_DWORD /d 0x00000000>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options" /f /v "FirstRun" /t REG_DWORD /d 0x00000001>nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options" /f /v "StartupDialog" /t REG_DWORD /d 0x00000000>nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Common\InstallRoot" /f /v "InstallCount" /t REG_DWORD /d 0x00000001>nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Common\InstallRoot" /f /v "Path" /d "%OFFICE%">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Common\FilesPaths" /f /v "mso.dll" /d "%OFFICE%MSO.DLL">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Registration\{90110804-6000-11D3-8CFE-0150048383C9}" /f /v "DigitalProductID" /t REG_BINARY /d "a40000000300000037333934312d3634302d303030303130362d353739393500720000003132332d31323334350000000000000000354e1105b8180a8a53ae4c0c2e010000000000bb5d714541460d0000000000000000000000000000000000000000000000000032343830300000000000000000000000ec11164400020000fa17000000000000000000000000000000000000000000000000000000000000de8f3a91">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Licensing" /f /v "1EBDE4BC9A514630B5412561FA45CCC5" /t REG_BINARY /d "01000000270000007b39303131303830342d363030302d313144332d384346452d3031353030343833383343397d00560000004d006900630072006f0073006f006600740020004f00660066006900630065002000500072006f00660065007300730069006f006e0061006c002000450064006900740069006f006e00200032003000300033000000">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Licensing" /f /v "A2B280D420FB472099F740C09FBCE10A" /t REG_BINARY /d "01000000270000007b39303131303830342d363030302d313144332d384346452d3031353030343833383343397d00560000004d006900630072006f0073006f006600740020004f00660066006900630065002000500072006f00660065007300730069006f006e0061006c002000450064006900740069006f006e00200032003000300033000000">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Licensing" /f /v "C86C0B9263C04E358605281275C21F97" /t REG_BINARY /d "01000000270000007b39303131303830342d363030302d313144332d384346452d3031353030343833383343397d00560000004d006900630072006f0073006f006600740020004f00660066006900630065002000500072006f00660065007300730069006f006e0061006c002000450064006900740069006f006e00200032003000300033000000">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe" /f /v "Path" /d "%OFFICE%">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe" /f /v "useURL" /d "1">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe" /f /ve /d "%OFFICE%WinWord.exe">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc" /f /v "Application" /d "WinWord.exe">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithList" /f /v "b" /d "WORDPAD.EXE">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithList" /f /v "MRUList" /d "ab">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithList" /f /v "a" /d "WinWord.exe">nul
reg add "HKEY_CLASSES_ROOT\Applications\WINWORD.EXE\shell" /f /ve /d "open">nul
reg add "HKEY_CLASSES_ROOT\Applications\WINWORD.EXE\shell" /f /v "FriendlyCacheCTime" /t REG_BINARY /d 00B9DD34878DBE01>nul
reg add "HKEY_CLASSES_ROOT\Applications\WINWORD.EXE\shell" /f /v "FriendlyCache" /d "Microsoft Word for Windows">nul
reg add "HKEY_CLASSES_ROOT\Applications\WINWORD.EXE\shell\open\command" /f /ve /d "%OFFICE%WinWord.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Applications\WINWORD.EXE\DefaultIcon" /f /ve /d "%OFFICE%WinWord.exe,1">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}" /f /ve /d "Microsoft Word 文档">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\DefaultExtension" /f /ve /d ".doc,Word Document (.doc)">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\DefaultIcon" /f /ve /d "%OFFICE%WinWord.exe,1">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\ProgID" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\Version" /f /ve /d "9">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /d "Word.Document">nul
reg add "HKEY_CLASSES_ROOT\CLSID\{00020906-0000-0000-C000-000000000046}\LocalServer32" /f /ve /d "%OFFICE%WinWord.exe">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Suffixes" /f /v "application/rtf" /d "RTF">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Suffixes" /f /v "application/msword" /d "OFFICEC">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Viewers" /f /v "TYPE4" /d "application/msword">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Viewers" /f /v "TYPE5" /d "application/rtf">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Viewers" /f /v "application/rtf" /d "%OFFICE%WinWord.exe">nul
reg add "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Viewers" /f /v "application/msword" /d "%OFFICE%WinWord.exe">nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Accepted Documents" /f /v "*" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/msword" /f /v "Extension" /d ".doc">nul
reg add "HKEY_CLASSES_ROOT\.rtf" /f /ve /d "Word.RTF.8">nul
reg add "HKEY_CLASSES_ROOT\.rtf" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8" /f /ve /d "RTF 格式">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell\Open\command" /f /ve /d "%OFFICE%WinWord.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\DefaultIcon" /f /ve /d "%OFFICE%WinWord.exe,1">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\.doc" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\.doc" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\.doc\Word.Document.8\ShellNew" /f /v "FileName" /d "winword8.doc">nul
reg add "HKEY_CLASSES_ROOT\Word.Document" /f /ve /d "Microsoft Word 文档">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CurVer" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8" /f /ve /d "Microsoft Word 文档">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell\Open\command" /f /ve /d "%OFFICE%WinWord.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\protocol\StdFileEditing\server" /f /ve /d "%OFFICE%WinWord.exe">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\DefaultIcon" /f /ve /d "%OFFICE%WinWord.exe,1">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CurVer" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\.dot" /f /ve /d "Word.Template.8">nul
reg add "HKEY_CLASSES_ROOT\.dot" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8" /f /ve /d "Microsoft Word 模板">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8\shell\Open\command" /f /ve /d "%OFFICE%WinWord.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8\DefaultIcon" /f /ve /d "%OFFICE%WinWord.exe,2">nul
reg add "HKEY_CLASSES_ROOT\Word.Template.8\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /ve /d "open">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /v "FriendlyCacheCTime" /t REG_BINARY /d 00131BB5B58DBE01>nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /v "FriendlyCache" /d "Microsoft Excel for Windows">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\open\command" /f /ve /d "%OFFICE%Excel.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\DefaultIcon" /f /ve /d "%OFFICE%Excel.exe,1">nul
reg add "HKEY_CLASSES_ROOT\.xls" /f /ve /d "Excel.Chart.8">nul
reg add "HKEY_CLASSES_ROOT\.xls" /f /v "Content Type" /d "application/vnd.ms-excel">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8" /f /ve /d "Microsoft Excel 工作簿">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell\Open\command" /f /ve /d "%OFFICE%Excel.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\DefaultIcon" /f /ve /d "%OFFICE%Excel.exe,1">nul
reg add "HKEY_CLASSES_ROOT\Applications\PowerPnt.exe\shell" /f /ve /d "open">nul
reg add "HKEY_CLASSES_ROOT\Applications\PowerPnt.exe\shell" /f /v "FriendlyCacheCTime" /t REG_BINARY /d 00131BB5B58DBE01>nul
reg add "HKEY_CLASSES_ROOT\Applications\PowerPnt.exe\shell" /f /v "FriendlyCache" /d "Microsoft PowerPoint for Windows">nul
reg add "HKEY_CLASSES_ROOT\Applications\PowerPnt.exe\shell\open\command" /f /ve /d "%OFFICE%PowerPnt.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\Applications\PowerPnt.exe\DefaultIcon" /f /ve /d "%OFFICE%PowerPnt.exe,1">nul
reg add "HKEY_CLASSES_ROOT\.ppt" /f /ve /d "PowerPoint.Show.8">nul
reg add "HKEY_CLASSES_ROOT\.ppt" /f /v "Content Type" /d "application/vnd.ms-powerpoint">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8" /f /ve /d "Microsoft PowerPoint 演示文稿">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\shell\Open\command" /f /ve /d "%OFFICE%PowerPnt.exe %%1">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\shell\Show" /f /ve /d "放映(&H)">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\shell\Show\command" /f /ve /d "%OFFICE%PowerPnt.exe /s %%1">nul
reg add "HKEY_CLASSES_ROOT\PowerPoint.Show.8\DefaultIcon" /f /ve /d "%OFFICE%PowerPnt.exe,1">nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\SQM" /f /v "SessionTime" /t REG_DWORD /d 0x00001DC1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\Common" /f /v "QMEnable" /t REG_DWORD /d 0x00000000 |
|