@echo off
cd /d "%~dp0"
set xtxt=xx64
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" set xtxt=xx86

set xxa=0
if /i not "%xtxt%"=="xx86" goto hta
if exist "%ProgramFiles%\Common Files\Microsoft Shared\VC\msdia80.dll" set xxa=1
if exist "%ProgramFiles%\Common Files\Microsoft Shared\VC\msdia90.dll" set xxa=1
:hta
if /i not "%xtxt%"=="xx64" goto ss
if exist "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VC\msdia80.dll" set xxa=1
if exist "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VC\msdia90.dll" set xxa=1
:ss
if "%xxa%"=="0" start /b msiexec.exe /i "%CD%\VC2008SP1x86\vc_red.msi" /quiet /norestart

set ztbss=1
if not exist "%SystemRoot%\Fonts\BSSYM7.TTF" set ztbss=0
if "%ztbss%"=="0" copy "%CD%\Fonts\BSSYM7.TTF" "%SystemRoot%\Fonts" && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /f /v "Bookshelf Symbol 7 (TrueType)" /t REG_SZ /d "BSSYM7.TTF"
set ztref=1
if not exist "%SystemRoot%\Fonts\REFSPCL.TTF" set ztref=0
if "%ztref%"=="0" copy "%CD%\Fonts\REFSPCL.TTF" "%SystemRoot%\Fonts" && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /f /v "MS Reference Specialty (TrueType)" /t REG_SZ /d "REFSPCL.TTF"
set ztmte=1
if not exist "%SystemRoot%\Fonts\MTEXTRA.TTF" set ztmte=0
if "%ztmte%"=="0" copy "%CD%\Fonts\MTEXTRA.TTF" "%SystemRoot%\Fonts" && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /f /v "MT Extra (TrueType)" /t REG_SZ /d "MTEXTRA.TTF"
set ztcam=1
if not exist "%SystemRoot%\Fonts\cambria.ttc" set ztcam=0
if "%ztcam%"=="0" copy "%CD%\Fonts\cambria.ttc" "%SystemRoot%\Fonts" && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /f /v "Cambria & Cambria Math (TrueType)" /t REG_SZ /d "cambria.ttc"

if not exist "%AppData%\Microsoft\Document Building Blocks\2052" md "%AppData%\Microsoft\Document Building Blocks\2052"
if not exist "%AppData%\Microsoft\Document Building Blocks\2052\Building Blocks.dotx" copy "%CD%\Document Parts\2052\Building Blocks.dotx" "%AppData%\Microsoft\Document Building Blocks\2052"

if /i not "%xtxt%"=="xx86" goto vbvb
if not exist "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6" md "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6"
set vbk=1
if not exist "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\VBE6.DLL" set vbk=0
if "%vbk%"=="0" copy "%CD%\VBA6\VBE6.DLL" "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6"
if not exist "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\VBE6EXT.OLB" copy "%CD%\VBA6\VBE6EXT.OLB" "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6"
if not exist "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\2052" md "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\2052"
if not exist "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\2052\VBE6INTL.DLL" copy "%CD%\VBA6\2052\VBE6INTL.DLL" "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\2052"
if not exist "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\1033" md "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\1033"
if not exist "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\1033\VBE6INTL.DLL" copy "%CD%\VBA6\1033\VBE6INTL.DLL" "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\1033"
if "%vbk%"=="0" regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\VBA\VBA6\VBE6.DLL"
:vbvb
if /i not "%xtxt%"=="xx64" goto vbxx
if not exist "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6" md "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6"
set vbk=1
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\VBE6.DLL" set vbk=0
if "%vbk%"=="0" copy "%CD%\VBA6\VBE6.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\VBE6EXT.OLB" copy "%CD%\VBA6\VBE6EXT.OLB" "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6"
if not exist "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\2052" md "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\2052"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\2052\VBE6INTL.DLL" copy "%CD%\VBA6\2052\VBE6INTL.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\2052"
if not exist "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\1033" md "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\1033"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\1033\VBE6INTL.DLL" copy "%CD%\VBA6\1033\VBE6INTL.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\1033"
if "%vbk%"=="0" regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\VBA\VBA6\VBE6.DLL"
:vbxx

reg add "HKCU\Software\Microsoft\Office\Common\UserInfo" /f /v "Company" /t REG_SZ /d "CHINA"
reg add "HKCU\Software\Microsoft\Office\Common\UserInfo" /f /v "UserName" /t REG_SZ /d "dreamsummit"
reg add "HKCU\Software\Microsoft\Office\Common\UserInfo" /f /v "UserInitials" /t REG_SZ /d "dream"

rem 显示开发工具菜单
rem reg add "HKCU\Software\Microsoft\Office\12.0\Common\General" /f /v "DeveloperTools" /t REG_DWORD /d 1
reg add "HKCU\Software\Microsoft\Office\12.0\Common\General" /f /v "Authorized" /t REG_DWORD /d 2147483647
reg add "HKCU\Software\Microsoft\Office\12.0\Common\General" /f /v "FirstRun" /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Office\12.0\Common\General" /f /v "ShownOptIn" /t REG_DWORD /d 1
reg add "HKCU\Software\Microsoft\Office\12.0\Word\Options" /f /v "LastUILang" /t REG_DWORD /d 2052
reg add "HKCU\Software\Microsoft\Office\12.0\PowerPoint\Options" /f /v "LastUILang" /t REG_DWORD /d 2052
reg add "HKCU\Software\Microsoft\Office\12.0\Excel\Options" /f /v "LastUILang" /t REG_DWORD /d 2052

reg add "HKLM\SOFTWARE\Microsoft\CTF\TIP\{5621CC0F-3ABF-428b-BDF0-D8544FD3ED75}\LanguageProfile\0x00000804\{F3BA9077-6C7E-11D4-97FA-0080C882687E}" /f /v "Enable" /t REG_DWORD /d 1

if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\FilesPaths" /f /v "mso.dll" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\FilesPaths" /f /v "ogl.dll" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\OGL.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\FilesPaths" /f /v "mso.dll" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\FilesPaths" /f /v "ogl.dll" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\OGL.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\InstallRoot" /f /v "InstallCount" /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Excel\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\PowerPoint\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Word\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources" /f /v "SKULanguage" /t REG_DWORD /d 2052
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources\InstalledUIs" /f /v "1033" /t REG_SZ /d "On"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources\InstalledUIs" /f /v "2052" /t REG_SZ /d "On"

rem reg add "HKU\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v "%CD%\Excel.exe" /t REG_SZ /d "WIN7RTM"

reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "DigitalProductID" /t REG_BINARY /d A40000000300000038393338382D3730372D303336363530312D363536313700820000003132332D313233343500000000000000862508ED24A66F15A6BD4D394E85000000000000E6B69046BB4410000000000000000000000000000000000000000000000000003733383230000000000000000000000020ABCC40E00000000000000000000000000000000000000000000000000000000000000000000000650AC74A
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "DPCFile" /t REG_SZ /d "%CD%\ID_00030.DPC"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "SPLevel" /t REG_SZ /d "SP2"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ConvertToEdition" /t REG_SZ /d "Microsoft Office Professional 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductID" /t REG_SZ /d "89388-707-0366501-65840"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductName" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductNameBrand" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductNameNonQualified" /t REG_SZ /d "Microsoft Office"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "SuiteName" /t REG_SZ /d "Part of Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ExcelName" /t REG_SZ /d "Microsoft Excel"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ExcelNameVersion" /t REG_SZ /d "Microsoft Office Excel 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "PowerPointName" /t REG_SZ /d "Microsoft PowerPoint"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "PowerPointNameVersion" /t REG_SZ /d "Microsoft Office PowerPoint 2007"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "WordName" /t REG_SZ /d "Microsoft Word"
reg add "HKLM\SOFTWARE\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "WordNameVersion" /t REG_SZ /d "Microsoft Office Word 2007"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E6-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E6-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E6-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E7-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E7-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E7-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E8-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E8-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E8-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E9-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E9-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969E9-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EA-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EA-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EA-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EB-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EB-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EB-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EC-8B8B-4C3D-859E-AF6CD158BE0F}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EC-8B8B-4C3D-859E-AF6CD158BE0F}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EC-8B8B-4C3D-859E-AF6CD158BE0F}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EE-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EE-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EE-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EF-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EF-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969EF-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F0-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F0-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F0-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F1-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F1-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F1-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Classes\CLSID\{88D969F5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0" /f /ve /t REG_SZ /d "Microsoft XML, v5.0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\0" /f /ve /t REG_SZ /d ""
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\FLAGS" /f /ve /t REG_SZ /d "0"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\\"

reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Office Excel Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\Implemented Categories" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\Implemented Categories\{000C0118-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Excel.Application.12"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Excel.Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer" /v "LocalServer" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5 /automation\0yh1BV5!!!!!!!!!MKKSkEXCELFiles>lVWA(TVkMAIS5Dh]3nVO /automation" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5 /automation\0yh1BV5!!!!!!!!!MKKSkEXCELFiles>lVWA(TVkMAIS5Dh]3nVO /automation" /f

reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Word Basic"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\InprocHandler" /f /ve /t REG_SZ /d "ole2.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Word.Basic.9"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Word.Basic"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Word Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Word.Application.12"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Word.Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FE-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /Automation\0yh1BV5!!!!!!!!!MKKSkWORDFiles>!2-1&m&8y@Nmo2r)^f-C /Automation" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{000209FF-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /Automation\0yh1BV5!!!!!!!!!MKKSkWORDFiles>!2-1&m&8y@Nmo2r)^f-C /Automation" /f

reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}" /f /ve /t REG_SZ /d "Microsoft Office PowerPoint Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\InprocHandler" /f /ve /t REG_SZ /d "ole2.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\ProgID" /f /ve /t REG_SZ /d "PowerPoint.Application.12"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\VersionIndependentProgID" /f /ve /t REG_SZ /d "PowerPoint.Application"
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer" /v "LocalServer" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkPPTFiles>tW{~$4Q]c@Y*Gx7xaTO5 /AUTOMATION\0yh1BV5!!!!!!!!!MKKSkPPTFiles>kns(0Js&3@v(mb8srm-6 /AUTOMATION" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkPPTFiles>tW{~$4Q]c@Y*Gx7xaTO5 /AUTOMATION\0yh1BV5!!!!!!!!!MKKSkPPTFiles>kns(0Js&3@v(mb8srm-6 /AUTOMATION" /f

Reg add "HKLM\SOFTWARE\Classes\Licenses\ED4B87C4-9F76-11d1-8BF7-0000F8754DA1" /ve /t REG_SZ /d "knlggnmntgggrninthpgmnngrhqhnnjnslsh" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905" /ve /t REG_SZ /d "aahakhchghkhfhaamghhbhbhkbpgfhahlfle" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905" /ve /t REG_SZ /d "kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\4F86BADF-9F77-11d1-B1B7-0000F8753F5D" /ve /t REG_SZ /d "iplpwpnippopupiivjrioppisjsjlpiiokuj" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\DC4D7920-6AC8-11cf-8ADB-00AA00C00905" /ve /t REG_SZ /d "iokouhloohrojhhhtnooiokomiwnmohosmsl" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\72E67120-5959-11cf-91F6-C2863C385E30" /ve /t REG_SZ /d "ibcbbbebqbdbciebmcobmbhifcmciibblgmf" /f
Reg add "HKLM\SOFTWARE\Classes\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d" /ve /t REG_SZ /d "mlrljgrlhltlngjlthrligklpkrhllglqlrk" /f

Reg add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},excel.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<EXCELFiles" /f
Reg add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "excel.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5" /f

rem --文件类型注册--
reg add "HKLM\SOFTWARE\Classes\.doc" /f /ve /t REG_SZ /d "Word.Document.8"
reg add "HKLM\SOFTWARE\Classes\.doc" /f /v "Content Type" /t REG_SZ /d "application/msword"
reg add "HKLM\SOFTWARE\Classes\.doc\Word.Document.8\ShellNew" /f /v "FileName" /t REG_SZ /d "word.doc"
reg add "HKLM\SOFTWARE\Classes\.docx" /f /ve /t REG_SZ /d "Word.Document.12"
reg add "HKLM\SOFTWARE\Classes\.docx" /f /v "Content Type" /t REG_SZ /d "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
reg add "HKLM\SOFTWARE\Classes\.docx" /f /v "PerceivedType" /t REG_SZ /d "document"
reg add "HKLM\SOFTWARE\Classes\.docx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}" /f /ve /t REG_SZ /d "{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}"
reg add "HKLM\SOFTWARE\Classes\.docx\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}" /f /ve /t REG_SZ /d "{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
reg add "HKLM\SOFTWARE\Classes\.docx\Word.Document.12\ShellNew" /f /v "NullFile" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\.docm" /f /ve /t REG_SZ /d "Word.Document.12"
reg add "HKLM\SOFTWARE\Classes\.dotx" /f /ve /t REG_SZ /d "Word.Document.12"
reg add "HKLM\SOFTWARE\Classes\.dotm" /f /ve /t REG_SZ /d "Word.Document.12"
reg add "HKLM\SOFTWARE\Classes\.ppt" /f /ve /t REG_SZ /d "PowerPoint.Show.8"
reg add "HKLM\SOFTWARE\Classes\.ppt" /f /v "Content Type" /t REG_SZ /d "application/vnd.ms-powerpoint"
reg add "HKLM\SOFTWARE\Classes\.ppt\PowerPoint.Show.8\ShellNew" /f /v "FileName" /t REG_SZ /d "PowerPoint.ppt"
reg add "HKLM\SOFTWARE\Classes\.pptx" /f /ve /t REG_SZ /d "PowerPoint.Show.12"
reg add "HKLM\SOFTWARE\Classes\.pptx" /f /v "Content Type" /t REG_SZ /d "application/vnd.openxmlformats-officedocument.presentationml.presentation"
reg add "HKLM\SOFTWARE\Classes\.pptx" /f /v "PerceivedType" /t REG_SZ /d "document"
reg add "HKLM\SOFTWARE\Classes\.pptx" /f /v "FileName" /t REG_SZ /d "pwrpnt12.pptx"
reg add "HKLM\SOFTWARE\Classes\.pptx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}" /f /ve /t REG_SZ /d "{65235197-874B-4A07-BDC5-E65EA825B718}"
reg add "HKLM\SOFTWARE\Classes\.pptx\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}" /f /ve /t REG_SZ /d "{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
reg add "HKLM\SOFTWARE\Classes\.pptm" /f /ve /t REG_SZ /d "PowerPoint.Show.12"
reg add "HKLM\SOFTWARE\Classes\.pot" /f /ve /t REG_SZ /d "PowerPoint.Show.8"
reg add "HKLM\SOFTWARE\Classes\.potx" /f /ve /t REG_SZ /d "PowerPoint.Show.12"
reg add "HKLM\SOFTWARE\Classes\.pps" /f /ve /t REG_SZ /d "PowerPoint.Show.8"
reg add "HKLM\SOFTWARE\Classes\.ppsm" /f /ve /t REG_SZ /d "PowerPoint.Show.12"
reg add "HKLM\SOFTWARE\Classes\.xlc" /f /ve /t REG_SZ /d "Excel.Chart.8"
reg add "HKLM\SOFTWARE\Classes\.xls" /f /ve /t REG_SZ /d "Excel.Sheet.8"
reg add "HKLM\SOFTWARE\Classes\.xls" /f /v "Content Type" /t REG_SZ /d "application/vnd.ms-excel"
reg add "HKLM\SOFTWARE\Classes\.xls\Excel.Sheet.8\ShellNew" /f /v "FileName" /t REG_SZ /d "excel.xls"
reg add "HKLM\SOFTWARE\Classes\.xlsx" /f /ve /t REG_SZ /d "Excel.Sheet.12"
reg add "HKLM\SOFTWARE\Classes\.xlsx" /f /v "Content Type" /t REG_SZ /d "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
reg add "HKLM\SOFTWARE\Classes\.xlsx" /f /v "PerceivedType" /t REG_SZ /d "document"
reg add "HKLM\SOFTWARE\Classes\.xlsx" /f /v "FileName" /t REG_SZ /d "excel12.xlsx"
reg add "HKLM\SOFTWARE\Classes\.xlsx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}" /f /ve /t REG_SZ /d "{00020827-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\.xlsx\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}" /f /ve /t REG_SZ /d "{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
reg add "HKLM\SOFTWARE\Classes\.xlsm" /f /ve /t REG_SZ /d "Excel.Sheet.12"
reg add "HKLM\SOFTWARE\Classes\.xltx" /f /ve /t REG_SZ /d "Excel.Sheet.12"
reg add "HKLM\SOFTWARE\Classes\.xltm" /f /ve /t REG_SZ /d "Excel.Sheet.12"
reg add "HKLM\SOFTWARE\Classes\.xlsb" /f /ve /t REG_SZ /d "Excel.Sheet.12"
reg add "HKLM\SOFTWARE\Classes\.xlam" /f /ve /t REG_SZ /d "Excel.Sheet.12"
rem 下面必须否则32.tlb错
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8" /f /ve /t REG_SZ /d "Microsoft Office Excel 图表"
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\CLSID" /f /ve /t REG_SZ /d "{00020821-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE,3"
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\protocol\StdFileEditing\RequestDataFormats" /f /ve /t REG_SZ /d "NoteshNote,NotesDocAction"
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\protocol\StdFileEditing\server" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE"
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\protocol\StdFileEditing\SetDataFormats" /f /ve /t REG_SZ /d "NotesDocInfo"
rem 鼠标右键菜单和双击打开x86
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12" /f /ve /t REG_SZ /d "Microsoft Excel 2007 工作表"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\CLSID" /f /ve /t REG_SZ /d "{00020830-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE,1"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\protocol\StdFileEditing\RequestDataFormats" /f /ve /t REG_SZ /d "NoteshNote,NotesDocAction"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\protocol\StdFileEditing\server" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\protocol\StdFileEditing\SetDataFormats" /f /ve /t REG_SZ /d "NotesDocInfo"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\EXCEL.EXE\" /n \"%%1\""
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.8" /f /ve /t REG_SZ /d "Microsoft Excel 97-2003 工作表"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.8\CLSID" /f /ve /t REG_SZ /d "{00020820-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.8\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE,1"
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.8\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\EXCEL.EXE\" /n \"%%1\""

reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.12" /f /ve /t REG_SZ /d "Microsoft PowerPoint 2007 演示文稿"
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.12\CLSID" /f /ve /t REG_SZ /d "{CF4F55F4-8F87-4D47-80BB-5808164BB3F8}"
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.12\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE,1"
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.12\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\POWERPNT.EXE\" /n \"%%1\""
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.8" /f /ve /t REG_SZ /d "Microsoft PowerPoint 97-2003 演示文稿"
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.8\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE,1"
reg add "HKLM\SOFTWARE\Classes\PowerPoint.Show.8\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\POWERPNT.EXE\" /n \"%%1\""

reg add "HKLM\SOFTWARE\Classes\Word.Document.12" /f /ve /t REG_SZ /d "Microsoft Word 2007 文档"
reg add "HKLM\SOFTWARE\Classes\Word.Document.12\CLSID" /f /ve /t REG_SZ /d "{F4754C9B-64F5-4B40-8AF4-679732AC0607}"
reg add "HKLM\SOFTWARE\Classes\Word.Document.12\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE,1"
reg add "HKLM\SOFTWARE\Classes\Word.Document.12\shell\Open\command" /f /ve /t REG_SZ /d "\"%CD%\WINWORD.EXE\" /n \"%%1\""
reg add "HKLM\SOFTWARE\Classes\Word.Document.8" /f /ve /t REG_SZ /d "Microsoft Word 97-2003 文档"
reg add "HKLM\SOFTWARE\Classes\Word.Document.8\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE,1"
reg add "HKLM\SOFTWARE\Classes\Word.Document.8\shell\Open\command" /f /ve /t REG_SZ /d "\"%CD%\WINWORD.EXE\" /n \"%%1\""

reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "Excel_PIA" /t REG_SZ /d "EXCELFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "Excel_SP2" /t REG_SZ /d "EXCELFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "Excel_WISPFiles" /t REG_SZ /d "EXCELNonBootFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "ExcelAddInEuroToolFiles" /t REG_SZ /d "ExcelAddinFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "ExcelAddinFiles" /t REG_SZ /d "EXCELFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "ExcelAddinHTMLFiles" /t REG_SZ /d "ExcelAddinFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "ExcelConverter12Files" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "EXCELFiles" /t REG_SZ /d "ProductFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "EXCELNonBootFiles" /t REG_SZ /d "EXCELFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "PPTFiles" /t REG_SZ /d "ProductFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "ProductFiles" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "VBAFiles" /t REG_SZ /d "SHAREDFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "Word_WISPFiles" /t REG_SZ /d "WORDSharedFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "WORDFiles" /t REG_SZ /d "ProductFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "WORDSharedFiles" /t REG_SZ /d "ProductFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "WISPFiles" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "LISTFiles" /t REG_SZ /d ""

reg add "HKLM\SOFTWARE\Classes\.doc\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.doc"
reg add "HKLM\SOFTWARE\Classes\.xlsx\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.xlsx"
reg add "HKLM\SOFTWARE\Classes\.ppt\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.ppt"
reg add "HKLM\SOFTWARE\Classes\.docx\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.docx"
reg add "HKLM\SOFTWARE\Classes\.pptx\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.pptx"
reg add "HKLM\SOFTWARE\Classes\.xls\ShellNew" /f /v "FileName" /t REG_SZ /d "%CD%\ShellNew\New.xls"

reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\Insertable" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Excel.Chart.8\DocObject" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\Insertable" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Excel.Sheet.12\DocObject" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Word.Document.12\Insertable" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Word.Document.12\DocObject" /f /ve /t REG_SZ /d ""

rem reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /v "Clients" /t REG_MULTI_SZ /d 3A0000000000
reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /v "PackageCode" /t REG_SZ /d "F2302CB1E5EF02E4692900F99F980CC5"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /v "ProductName" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /v "Transforms" /t REG_SZ /d "%CD%\CWindows\ShellUI.MST"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\00002109030000000000000000F01FEC" /f /v "Version" /t REG_DWORD /d 201333204

reg add "HKCR\Applications\WINWORD.EXE\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\WINWORD.EXE\" \"%%1\""
reg add "HKCR\Applications\EXCEL.EXE\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\EXCEL.EXE\" \"%%1\""
reg add "HKCR\Applications\POWERPNT.EXE\shell\open\command" /f /ve /t REG_SZ /d "\"%CD%\POWERPNT.EXE\" \"%%1\""

rem ---DLL注册----
regsvr32 /s "%CD%\OARTCONV.DLL"
regsvr32 /s "%CD%\ADDINS\MSADDNDR.DLL"
regsvr32 /s "%CD%\GENKO.DLL"
regsvr32 /s "%CD%\ADDINS\TCSCCONV.DLL"
regsvr32 /s "%CD%\ADDINS\SYMINPUT.DLL"
rem regsvr32 /s "%CD%\1033\TBLHEAD.DLL"
regsvr32 /s "%CD%\2052\TBLHEAD.DLL"
regsvr32 /s "%CD%\ADDINS\MP3Addin\AddSoundAddin.DLL"

rem 下面一行新加的
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Excel\Addins\TCSCConv.ExcelAddinDesigner12" /f /v "LoadBehavior" /t REG_DWORD /d 3
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\PowerPoint\Addins\TCSCConv.PptAddinDesigner12" /f /v "LoadBehavior" /t REG_DWORD /d 3
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Access\Addins\TCSCConv.AccessAddinDesigner12" /f /v "LoadBehavior" /t REG_DWORD /d 3

if /i "%xtxt%"=="xx86" set tx=System32
if /i "%xtxt%"=="xx64" set tx=SysWOW64

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\2227A34C816D4F94EB598446F9BD8B17" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Mso_Core\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\2FAFA61ADBF18444690EDB85CAA39EB7" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Excel_Core\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\337E30A68012B5341B7A8ADE48F4064A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap\.xltx"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\379E92CC2CB71D119A12000A9CE1A22A" /f /v "00000000000000000000000000000000" /t REG_SZ /d "%SystemRoot%\%tx%\FM20.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\379E92CC2CB71D119A12000A9CE1A22A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\FM20.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4006F64980E4BACB0DF18C3B9B1A1EE8" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4006F64980E4BACB0EF18C3B9B1A1EE8" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\47155108894E68A409FDC1FC6E8DA2CB" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\SAEXT.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5120EEDE039486F42830D8D2552797F6" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\MSOSTYLE.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5AF3BA43F42FF4746A8D3D4D160BD6AF" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ACECORE.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\6C9A6F846E2818A47A408CAF13381C71" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\Portal\PortalConnectCore.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\6C9A6F846E2818A47A408CAF13381C71" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\Portal\PortalConnectCore.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\72550EAA4F7970143BF094E2F6C9164E" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\748B2526ADAB4D3429253E7976AF041A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "00:\.pip\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\77AE531D63D456630DF18C3B9B1A1EE8" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\77AE531D63D456630DF18C3B9B1A1EE8" /f /v "00002109820040800000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\7AA6F3DBF3CE139469FE63D56E7AF446" /f /v "00000000000000000000000000000000" /t REG_SZ /d "02:\Software\Microsoft\Office\Common\MID"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\7AA6F3DBF3CE139469FE63D56E7AF446" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\Common\MID"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\82DE7549CF3F8CCB0DF18C3B9B1A1EE8" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\82DE7549CF3F8CCB0DF18C3B9B1A1EE8" /f /v "00002109820040800000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9260D47DD05543D43AB5315284107D5B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap\.pptx"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\940F43383A1766E44BBD6236980545C5" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\PowerPoint_Core\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9B271454ED4348B47B365F93ADEAC015" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\OFFICE.ODF"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9B905EB838DBFEE4991CF8E66F518BBF" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\XLSTART\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9C1D6229422D71045BFB2F8BCE017AA4" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\OART.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9D6BD49C8A516ED41BB0C0D31B0F52BC" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSPTLS.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9D6BD49C8A516ED41BB0C0D31B0F52BC" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSPTLS.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\A457B2D1A9DC1D112897000CF42C6133" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\MSSTDFMT.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\A5824C2FB557A5D43881763B7A07D05E" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\AA4747BB0AC53254E8F9B9A7BE7077B9" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\AD4E638E8714C454FA1AD399C0E81909" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\Filters\msgfilt.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\AD4E638E8714C454FA1AD399C0E81909" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\Filters\msgfilt.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\B92D5049E11C93DB0DF18C3B9B1A1EE8" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\B92D5049E11C93DB0DF18C3B9B1A1EE8" /f /v "00002109820040800000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C733A8B34D26AF4458B43E09EFC2C77F" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "00:\CLSID\{000C0126-0000-0000-C000-000000000046}\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C89954FBD4FB47C449CE85E9F7E918FB" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap\.docx"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\CAB7071E27686994093945B9EE85F69D" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\Filters\offfiltx.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\CAB7071E27686994093945B9EE85F69D" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\Filters\offfiltx.dll"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\CCABF232126726445BC57F4CDE05C5EB" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\RICHED20.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\CCABF232126726445BC57F4CDE05C5EB" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\RICHED20.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D94C8360B8BB1DC41B1950E0F8237563" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D94C8360B8BB1DC41B1950E0F8237563" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D94C8360B8BB1DC41B1950E1F8237563" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\WINWORD.EXE"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D94C8360B8BB1DC41B1950E2F8237563" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\EXCEL.EXE"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D94C8360B8BB1DC41B1950E3F8237563" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\POWERPNT.EXE"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F7CD01816C53D32438CF043106011676" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\Common\Components\Watson_AltrIntl\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F7CD01816C53D32438CF043106011676" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\Common\Components\Watson_AltrIntl\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F7CD01816C53D32438CF043106011676" /f /v "00002109E60090400000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\Common\Components\Watson_AltrIntl\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FE334C41ADDE81149944C1D33967043A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Word_Core\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FEBB12B9A5B87A047817880E458ABC4B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\000021090300000000000014F376BCF5" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ID_00030.DPC"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\000021090300000000000014F376BCF5\00002109030000000000000000F01FEC" /f /v "File" /t REG_SZ /d "ID_00030.DPC"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\000021090300000000000044F37ADCF5" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ID_00030.DPC"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F0074080C5C2EC04FA14B47E844D3A4F" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\6E0FCF9AC815370428F8057E0ADADB79" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemDrive%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\00965022248C1D110ADD000A9C502477" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\MSCOMCTL.OCX"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\8EEF86DD963C1D111A37000A9CA05BF0" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\ADFEA5D8E1DA6F44EB0FFECFDBE388D8" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\VBE6INTL.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1C1B74D56F7A1D11A9CC0006794C4E25" /f /v "00002109E60090400000000000F01FEC" /t REG_SZ /d "%CD%\1033\VBE6INTL.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\3B0C63C981DF33A4C8615BDF27AD6336" /f /v "00002109F10040800000000000F01FEC" /t REG_SZ /d "%CD%\ADDINS\MSTR2TSC.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\20FD9176C974E3243872691DF2FC5EC4" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ogalegit.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\E625CF2579F61EA47853A2F611AAF5E1" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\IEAWSDC.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\E3F997A2790938844ACDF81020B32415" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\OUTLFLTR.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\11B564CAA807C694ABE73044DC90516B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\WDBIMP.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\826BE7CCECB5A07419E4D5FC61E63C4A" /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Mso_Intl\Count" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\826BE7CCECB5A07419E4D5FC61E63C4A" /v "00002109E60090400000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Mso_Intl\Count" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\884DFC9347446034F85A6145C44FBD1B" /f /v "00002109610040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Excel_Intl\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\884DFC9347446034F85A6145C44FBD1B" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Excel_Intl\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\884DFC9347446034F85A6145C44FBD1B" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Excel_Intl\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\E33A941F327A15147A98CEA306B54096" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\PowerPoint_Intl\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\7B656C626498CB34282CAC67ECA9EC76" /f /v "00002109A10040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Word_Intl\Count"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\7B656C626498CB34282CAC67ECA9EC76" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "02:\Software\Microsoft\Office\12.0\User Settings\Word_Intl\Count"

if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0C83B0C929092D11AA7A000A9CF0750B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\EURO\MSOEURO.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0C83B0C929092D11AA7A000A9CF0750B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO\MSOEURO.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\536C6E53D8E9697418EBBF04CFCAEB9D" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\MSORUN\MSORUN.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\536C6E53D8E9697418EBBF04CFCAEB9D" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN\MSORUN.DLL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4E6E939441E1C6D4C9AA564D5012785A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\msoshext.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4E6E939441E1C6D4C9AA564D5012785A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\msoshext.dll"

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\3913228BF3202AD4E9182F34D99B96B2" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\ADDINS\MSVCR71.DLL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\A3616DDE3B1B18E41BBDBF8672D65B0F" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\MSO0127.ACL"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D3AFE80AA038F8147B1AB826F0BD1F16" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D3AFE80AA038F8147B1AB826F0BD1F16" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

rem 在PPT2007版本“墨迹”的功能，使用方法：播放幻灯片-鼠标右键-指针选项，然后就可以选择3种不同的墨迹了。
rem 增加 Powerpoint 全屏播放幻灯片时的笔刷（墨迹）功能
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\652A08B235C6DFF4C8CD41B52DE68CA4" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\INK\INKDIV.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\652A08B235C6DFF4C8CD41B52DE68CA4" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\INK\INKDIV.DLL"
rem 下面一行 Windows\\system32\\INKED.DLL 路径
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F0C7F119D7B546A4C9B7DAFBECCFF3D4" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
rem 下面一行 C?\\Program Files\\Common Files\\Microsoft Shared\\INK\\INKOBJ.DLL 路径
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9B4B5940D4625D64C85532B8CDE3BF4D" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
rem 下面一行 C?\\Program Files\\Common Files\\Microsoft Shared\\INK\\TPCPS.DLL 路径
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1125549C421D34E4DBF1036F62580BE1" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D656DA4A9E277A34D90D5E6FFA34E827" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\WISPTIS.EXE"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "LISTFiles" /t REG_SZ /d "-FHp1xSby?+%+ua`AdVi6s?[[,`&)9py0bGg*hPG"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "Excel_WISPFiles" /t REG_SZ /d "xFM}11,8eAVs8?E~v}%@ezZ_VZ1Bv?XrK[f&YHo@+G9P$cp(j=d8+fTjNKNmE+RciZK,1A'[Y-xMEJr,M6mw]p}7h9ta{ExrTUnLEXCELNonBootFiles"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "WISPFiles" /t REG_SZ /d "xFM}11,8eAVs8?E~v}%@ezZ_VZ1Bv?XrK[f&YHo@+G9P$cp(j=d8+fTjNKNmE+RciZK,1A'[Y-xMEJr,M6mw]p}7h9ta{ExrTUnL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "Word_WISPFiles" /t REG_SZ /d "xFM}11,8eAVs8?E~v}%@ezZ_VZ1Bv?XrK[f&YHo@+G9P$cp(j=d8+fTjNKNmE+RciZK,1A'[Y-xMEJr,M6mw]p}7h9ta{ExrTUnLWORDSharedFiles"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls" /f /v "%ProgramFiles%\Common Files\microsoft shared\INK\INKDIV.DLL" /t REG_DWORD /d 2
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls" /f /v "%ProgramFiles(x86)%\Common Files\microsoft shared\INK\INKDIV.DLL" /t REG_DWORD /d 2

regedit /s "%CD%\ms_vc80.reg"

rem office2007原装-XLLEX.DLL
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90EBE74B208F7D647ABDAF17C01FE640" /f /v "00002109610040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLINTL32.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90EBE74B208F7D647ABDAF17C01FE640" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLINTL32.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90EBE74B208F7D647ABDAF17C01FE640" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLINTL32.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\DEC398B404215DD499E13ED3B8C3DD19" /f /v "00002109610040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLLEX.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\DEC398B404215DD499E13ED3B8C3DD19" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLLEX.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\DEC398B404215DD499E13ED3B8C3DD19" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\XLLEX.DLL"
Reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Components\10CF97668EC18004B8CF607FA7924D3E" /v "2052" /t REG_MULTI_SZ /d "vUpAVO.}X%%!!!!!MKKSkExcelConverter12Intl_2052>~lW?@Hs@$AV[ct7`0qsV\0vUpAVL.}X%%!!!!!MKKSkExcelConverter12Intl_2052>~lW?@Hs@$AV[ct7`0qsV\0vUpAVJ.}X%%!!!!!MKKSkEXCELFilesIntl_2052>~lW?@Hs@$AV[ct7`0qsV" /f

rem 这个621EAA421190F8740A91708B57BE9969和613B99D5CFD7FCB4793B500086BB4113使注册表中文件新路径有效
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "opa12.bak" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkProductNonBootFiles>%%m_=)nEUQ=(K-Hcu7b+[" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "excel.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "powerpnt.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkPPTFiles>tW{~$4Q]c@Y*Gx7xaTO5" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "mstr2tsc.dll" /t REG_MULTI_SZ /d "vUpAVS.}X%%!!!!!MKKSkTranslationChinese_2052<" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "winword.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\621EAA421190F8740A91708B57BE9969" /v "wwlib.dll" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDSharedFiles>syQLkmmo_A6%%f.RE4k2$" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Office\12.0\Common\General" /v "Data" /t REG_SZ /d "%CD%\OPA12.BAK" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},opa12.bak" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<ProductFiles" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},excel.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<EXCELFiles" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},powerpnt.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<PPTFiles" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},mstr2tsc.dll" /t REG_MULTI_SZ /d "vUpAVS.}X%%!!!!!MKKSkGimme_OnDemandData<AlwaysInstalled" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},winword.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<WORDFiles" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{24AAE126-0911-478F-A019-07B875EB9996},wwlib.dll" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<WORDSharedFiles" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\02F4F73161B98F5489313A5B7F5BFFE9" /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\OPA12.BAK" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "FindAllWordFormsFiles_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "Gimme_OnDemandData" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "MsoInstalledPackagesScopedIntl_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "OCR_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "SetupControllerFiles" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "SetupXmlFiles" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "SpellingAndGrammarFiles_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "SymbolToolBar_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "TranslationChinese_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10040800000000000F01FEC" /v "TranslationFiles_2052" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "FindAllWordFormsFiles_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "Gimme_OnDemandData" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "HyphenationFiles_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "MsoInstalledPackagesScopedIntl_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "OCR_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "SetupControllerFiles" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "SetupXmlFiles" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "SpellingAndGrammarFiles_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Features\00002109F10090400000000000F01FEC" /v "ThesaurusFiles_1033" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "FindAllWordFormsFiles_2052" /t REG_SZ /d "2]vR&H~rLA[q[n_)Yvam" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "Gimme_OnDemandData" /t REG_SZ /d "vUpAVS.}X%%i@M*4G?[XD" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "MsoInstalledPackagesScopedIntl_2052" /t REG_SZ /d "vUpAVS.}X%%-(46&xKL,P" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "OCR_2052" /t REG_SZ /d "%%mEMae,7q9*DXdU@EPi=" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "SetupControllerFiles" /t REG_SZ /d "SWDYEbCdV=*-w'07(v8B" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "SetupXmlFiles" /t REG_SZ /d "SWDYEbCdV=*-w'07(v8B" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "SpellingAndGrammarFiles_2052" /t REG_SZ /d "8zxH$${BcAPtA=urcZ5l^6~m_T{3I?50A'ivjyvfO3S_x.Jqp@~hMa[P5tZ0TG,n,bUF)?3VHr^G~cF@4S[LMn?)g('e=ef,$29%%" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "SymbolToolBar_2052" /t REG_SZ /d "RyV`S8=V==u&k-(u!Z{0" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "TranslationChinese_2052" /t REG_SZ /d "p3Z5ZgK0q?$L!Vze'LtG" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109F10040800000000000F01FEC\Features" /v "TranslationFiles_2052" /t REG_SZ /d "Y{lCvg,QU?eW`,H4n%%DZD,D`zm'lw?CwwgF-8l2j$jP7_cs%%g(&b=efb.?v`!jP7_cs%%g(&b=efb.?v`" /f

rem 信封
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4A885D6CD6747014B8E040046AFB00CE" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\PAGESIZE\PG_INDEX.XML"

rem word页码通过注册表来解决,WORD首次使用上述功能时会自动将 Built-In Building Blocks.dotx 复制到文件夹 C:\Users\Anson\AppData\Roaming\Microsoft\Document Building Blocks
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0BFA048C14209C245B8020DB78145F2A" /f /v "00002109B10090400000000000F01FEC" /t REG_SZ /d "%CD%\Document Parts\1033\Building Blocks.dotx"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\92F55AE358E750447906CA97F8983156" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%CD%\Document Parts\2052\Building Blocks.dotx"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\117F07725AB58D043B52E957346D4E0C" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Document Parts\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109B10090400000000000F01FEC\Features" /f /v "WordDocumentPartsFilesIntl_1033" /t REG_SZ /d "8zbFix@RO9PQQhe0ooG]"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109B10040800000000000F01FEC\Features" /f /v "WordDocumentPartsFilesIntl_2052" /t REG_SZ /d "?]K.8v&?r9FK}+Oew@QH"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109B10040800000000000F01FEC" /f /v "WordDocumentPartsFilesIntl_2052" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109B10090400000000000F01FEC" /f /v "WordDocumentPartsFilesIntl_1033" /t REG_SZ /d ""
if not exist "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files" md "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files"

rem Catalog ==书目功能= WORD首次使用上述功能时会自动将文件夹Bibliography复制到 %Appdata%\Microsoft\
reg add "HKLM\SOFTWARE\Classes\Installer\Components\216490E0EFC183C4FB4DD378CA809599" /v "2052\bibform.xml" /t REG_MULTI_SZ /d "vUpAVO.}X%%!!!!!MKKSkWordBibliographyFilesIntl_2052<" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\216490E0EFC183C4FB4DD378CA809599" /v "1033\bibform.xml" /t REG_MULTI_SZ /d "vUpAVP(8A$!!!!!MKKSkWordBibliographyFilesIntl_1033<" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{0E094612-1CFE-4C38-BFD4-3D87AC085999},2052\bibform.xml" /t REG_MULTI_SZ /d "vUpAVO.}X%%!!!!!MKKSkGimme_OnDemandData<WordBibliographyFiles" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{0E094612-1CFE-4C38-BFD4-3D87AC085999},1033\bibform.xml" /t REG_MULTI_SZ /d "vUpAVP(8A$!!!!!MKKSkGimme_OnDemandData<WordBibliographyFiles" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "WORDBibliographyFiles" /t REG_SZ /d "WORDFiles"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109B10040800000000000F01FEC" /f /v "WordBibliographyFilesIntl_2052" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109B10090400000000000F01FEC" /f /v "WordBibliographyFilesIntl_1033" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\TypeLib\{00020905-0000-0000-C000-000000000046}\8.4" /f /ve /t REG_SZ /d "Microsoft Word 12.0 Object Library"
reg add "HKLM\SOFTWARE\Classes\TypeLib\{00020905-0000-0000-C000-000000000046}\8.4\0\win32" /f /ve /t REG_SZ /d "%CD%\MSWORD.OLB"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0DEEA8AA6F8D3C04893EEE6FF38AB317" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\MSWORD.OLB"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\195F886B91FFA6A44BD6A87A5C0B3587" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Bibliography\Sort\AUTHOR.XSL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\24DB2E87F1D45E845884B313A0F34DF1" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Bibliography\Style\APA.XSL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\92FCB7BBEA5AD7B438805E6AAB79EFB0" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%CD%\2052\Bibliography\BIBFORM.XML"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4E30A1C3B317E094D9C3FDA550F8EA71" /f /v "00002109B10090400000000000F01FEC" /t REG_SZ /d "%CD%\1033\Bibliography\BIBFORM.XML"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C55535B4A7EA24D49A9BB7361DD8D692" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Bibliography\Author2String.XSL"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "WORDBibliographyFiles" /t REG_SZ /d "ypm5@2$bo@kjj{Gt)jB1D]`acKH$w?~E%%q^kq4bN)KOqNnWLL?cxyn3fSU7-WORDFiles"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109B10040800000000000F01FEC\Features" /f /v "WordBibliographyFilesIntl_2052" /t REG_SZ /d "Xrp9eEaC=@@+H_^*Sbq&"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109B10090400000000000F01FEC\Features" /f /v "WordBibliographyFilesIntl_1033" /t REG_SZ /d "gDvB7'hnP?8OT5E(nz[*"
reg add "HKLM\SOFTWARE\Classes\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}" /f /ve /t REG_SZ /d "Bibliography"
reg add "HKLM\SOFTWARE\Classes\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\ProxyStubClsid" /f /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\ProxyStubClsid32" /f /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\TypeLib" /f /ve /t REG_SZ /d "{00020905-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\TypeLib" /f /v "Version" /t REG_SZ /d "8.4"

rem word艺术边框
reg add "HKLM\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "WORDBordersFiles" /t REG_SZ /d "WORDFiles"
reg add "HKLM\SOFTWARE\Classes\Record\{5931055C-16BA-101B-989C-00006B82871A}\11.0.0.0" /f /v "Assembly" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
reg add "HKLM\SOFTWARE\Classes\Record\{5931055C-16BA-101B-989C-00006B82871A}\11.0.0.0" /f /v "Class" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms.fmBorderStyle"
reg add "HKLM\SOFTWARE\Classes\Record\{5931055C-16BA-101B-989C-00006B82871A}\11.0.0.0" /f /v "RuntimeVersion" /t REG_SZ /d "v1.1.4322"
reg add "HKLM\SOFTWARE\Classes\Record\{E1FC1640-70DF-101B-BC16-00AA003E3B29}\11.0.0.0" /f /v "Assembly" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
reg add "HKLM\SOFTWARE\Classes\Record\{E1FC1640-70DF-101B-BC16-00AA003E3B29}\11.0.0.0" /f /v "Class" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms.fmBorders"
reg add "HKLM\SOFTWARE\Classes\Record\{E1FC1640-70DF-101B-BC16-00AA003E3B29}\11.0.0.0" /f /v "RuntimeVersion" /t REG_SZ /d "v1.1.4322"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" /f /v "%CD%\BORDERS\\" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\45743AE98AAACAD4CBD8BC01EDF2BF0B" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\BORDERS\MSART1.BDR"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "WORDBordersFiles" /t REG_SZ /d "[mm}ZvG}z@N)oI(4,xsaWORDFiles"
reg add "HKLM\SOFTWARE\Classes\Interface\{00020855-0000-0000-C000-000000000046}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{00020855-0000-0000-C000-000000000046}\ProxyStubClsid" /ve /t REG_SZ /d "{00020420-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{00020855-0000-0000-C000-000000000046}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020420-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{00020855-0000-0000-C000-000000000046}\TypeLib" /ve /t REG_SZ /d "{00020813-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{00020855-0000-0000-C000-000000000046}\TypeLib" /v "Version" /t REG_SZ /d "1.6" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{0002093C-0000-0000-C000-000000000046}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{0002093C-0000-0000-C000-000000000046}\ProxyStubClsid" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{0002093C-0000-0000-C000-000000000046}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{0002093C-0000-0000-C000-000000000046}\TypeLib" /ve /t REG_SZ /d "{00020905-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{0002093C-0000-0000-C000-000000000046}\TypeLib" /v "Version" /t REG_SZ /d "8.4" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\ProxyStubClsid" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\TypeLib" /ve /t REG_SZ /d "{91493440-5A91-11CF-8700-00AA0060263B}" /f
reg add "HKLM\SOFTWARE\Classes\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\TypeLib" /v "Version" /t REG_SZ /d "2.9" /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0" /f /ve /t REG_SZ /d "Office Chinese Translation Addin"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\TCSCCONV.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\ADDINS\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0" /f /ve /t REG_SZ /d "Office Symbol Input"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\SYMINPUT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\ADDINS\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{AC0714F6-3D04-11D1-AE7D-00A0C90F26F4}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{AC0714F6-3D04-11D1-AE7D-00A0C90F26F4}\Instance CLSID" /f /ve /t REG_SZ /d "{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}\TypeLib" /f /ve /t REG_SZ /d "{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4" /f /ve /t REG_SZ /d "Microsoft Office 12.0 Object Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4" /f /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4\FLAGS" /f /ve /t REG_SZ /d "0"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{48F1A45E-8F68-498E-9001-5D3743D2DB98}\InProcServer32" /f /ve /t REG_SZ /d "%CD%\OART.DLL"

rem 下面VB编辑
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VBA" /f /v "Vbe6DllPath" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VBA" /f /v "Vbe6DllPath" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\804\win32" /f /ve /t REG_SZ /d "%CD%\XL5CHS32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%CD%\XL5EN32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行必须-(原版)-是安装目录
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6" /f /ve /t REG_SZ /d "Microsoft Excel 12.0 Object Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\0\win32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行必须-(原版)-是安装目录
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VEN2232.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\9\win32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\9\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3" /f /ve /t REG_SZ /d "Microsoft Visual Basic for Applications Extensibility 5.3"
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEND32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\804\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBACHS32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEN32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\\"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"

reg add "HKLM\SOFTWARE\Classes\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0" /f /ve /t REG_SZ /d "Microsoft Forms 2.0 Object Library"
reg add "HKLM\SOFTWARE\Classes\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0" /f /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
reg add "HKLM\SOFTWARE\Classes\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0\0\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\FM20.DLL"
reg add "HKLM\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKLM\SOFTWARE\Classes\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEND32.OLB"
reg add "HKLM\SOFTWARE\Classes\Installer\Components\029E403DA86A1D115B5B0006799C897E" /v "vbe.dll_6.0" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkVBAFiles>[lT]jI{jf(=1&L[-81-]" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\029E403DA86A1D115B5B0006799C897E" /v "vbeext.olb_6.0" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkProductNonBootFiles>tCzrM)]lf(ELdqFgkW_B" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\029E403DA86A1D115B5B0006799C897E" /v "winword.exe" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\613B99D5CFD7FCB4793B500086BB4113" /v "{D304E920-A68A-11D1-B5B5-006097C998E7},vbe.dll_6.0" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkGimme_OnDemandData<VBAFiles" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\82139C37CE085D11E9C8000CF4970D96" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkVBAFilesIntl_1033<" /f
reg add "HKLM\SOFTWARE\Classes\Installer\Components\82139C37CE085D11E9C8000CF4970D96" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkVBAFilesIntl_2052<" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109030000000000000000F01FEC" /f /v "VBAFiles" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60040800000000000F01FEC" /f /v "OfficeVBAHelpIntlHiddenIntl_2052" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60040800000000000F01FEC" /f /v "VBAFilesIntl_2052" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60040800000000000F01FEC" /f /v "VBAHelpFilesIntl_2052" /t REG_SZ /d "VBAFilesIntl_2052"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60090400000000000F01FEC" /f /v "OfficeVBAHelpIntlHiddenIntl_1033" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60090400000000000F01FEC" /f /v "VBAFilesIntl_1033" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\00002109E60090400000000000F01FEC" /f /v "VBAHelpFilesIntl_1033" /t REG_SZ /d "VBAFilesIntl_1033"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024512-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "RefEdit.Ctrl"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024512-0000-0000-C000-000000000046}\ToolboxBitmap32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL,1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024512-0000-0000-C000-000000000046}\TypeLib" /f /ve /t REG_SZ /d "{00024517-0000-0000-C000-000000000046}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024512-0000-0000-C000-000000000046}\Version" /f /ve /t REG_SZ /d "1.2"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024522-0000-0000-C000-000000000046}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024522-0000-0000-C000-000000000046}\ToolboxBitmap32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL,1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024522-0000-0000-C000-000000000046}\TypeLib" /f /ve /t REG_SZ /d "{00024517-0000-0000-C000-000000000046}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00024522-0000-0000-C000-000000000046}\Version" /f /ve /t REG_SZ /d "1.2"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}" /f /ve /t REG_SZ /d "VBA Collection Object"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}\InprocServer" /f /ve /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}\InprocServer32" /f /ve /t REG_SZ /d ""

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2" /f /ve /t REG_SZ /d "Ref Edit Control"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2\0\win32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\2EEF86DD963C1D111A37000A9CA05BF0" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\SCP32.DLL"

if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\359E92CC2CB71D119A12000A9CE1A22A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\359E92CC2CB71D119A12000A9CE1A22A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"

if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1C1B74D56F7A1D11A9CC0006794C4E25" /f /v "00002109E60090400000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\1033\VBE6INTL.DLL"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\ADFEA5D8E1DA6F44EB0FFECFDBE388D8" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\2052\VBE6INTL.DLL"

if /i "%xtxt%"=="xx86" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\57634D5732AA1D11A9CC0006794C4E25" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
if /i "%xtxt%"=="xx64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\57634D5732AA1D11A9CC0006794C4E25" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\896D4EEE7C022D111A58000A9CA05BF0" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\VBAEN32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\A96D4EEE7C022D111A58000A9CA05BF0" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\VBAEND32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\7FA0FB826F3F2D74E94B6BF921E84AE7" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\VBACHS32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4EEF86DD963C1D111A37000A9CA05BF0" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\VBAME.DLL"


reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C96D4EEE7C022D111A58000A9CA05BF0" /f /v "00002109110000000000000000F01FEC" /t REG_SZ /d "%SystemRoot%\%tx%\VEN2232.OLB"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\B5D1220CB7885E8419157A1E3A9F10DB" /f /v "00002109610090400000000000F01FEC" /t REG_SZ /d "%CD%\XL5EN32.OLB"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C141135DDE4786742AB9BEFA5D7384C9" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\XL5CHS32.OLB"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Features" /f /v "VBAFiles" /t REG_SZ /d "Rnb1p4Smf(.()L[lj+'(Pnb1p4Smf(.()L[lj+'([lT]jI{jf(=1&L[-81-]+?tG,trmf(6a?ef)qcK4"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60040800000000000F01FEC\Features" /f /v "OfficeVBAHelpIntlHiddenIntl_2052" /t REG_SZ /d "b+B?.9sYp@w[4,+JMQ~&"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60040800000000000F01FEC\Features" /f /v "VBAFilesIntl_2052" /t REG_SZ /d "+naLU*h!2=p0{@z6lRQU"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60040800000000000F01FEC\Features" /f /v "VBAHelpFilesIntl_2052" /t REG_SZ /d "b+B?.9sYp@w[4,+JMQ~&Jh(5?Ieo0@yw@NIcxMc9]?.jmLs67?RkeGu1id2*=pH'NDWwv@_9}*DPXzmwVBAFilesIntl_2052"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60090400000000000F01FEC\Features" /f /v "OfficeVBAHelpIntlHiddenIntl_1033" /t REG_SZ /d ",0C%He.++A`a2hlpeE[B"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60090400000000000F01FEC\Features" /f /v "VBAFilesIntl_1033" /t REG_SZ /d "@3B}ETUlf(ELdqFgkW_B"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109E60090400000000000F01FEC\Features" /f /v "VBAHelpFilesIntl_1033" /t REG_SZ /d ",0C%He.++A`a2hlpeE[BB}eb51dM_@x]Dd0`A)9?!(U&'^.UU@zdBYrgYe1UB3B}ETUlf(ELdqFgkW_BVBAFilesIntl_1033"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00020812-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Excel Application"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00020812-0000-0000-C000-000000000046}\LocalServer" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00020812-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"

rem 在线模板--IEAWSDC.DLL
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}" /f /ve /t REG_SZ /d "Microsoft Office Template and Media Control"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\IEAWSDC.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\ProgID" /f /ve /t REG_SZ /d "Office.awsdc.1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\TypeLib" /f /ve /t REG_SZ /d "{012F24C1-35B0-11D0-BF2D-0000E8D0D146}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\Version" /f /ve /t REG_SZ /d "1.0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Office.awsdc"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0" /f /ve /t REG_SZ /d "Microsoft Office Template and Media Control 1.0 Type Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\IEAWSDC.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"

rem 微软标准数据格式对象相关动态链接库文件--MSSTDFMT.DLL
Reg.exe add "HKLM\SOFTWARE\Classes\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0" /ve /t REG_SZ /d "Microsoft Data Formatting Object Library" /f
Reg.exe add "HKLM\SOFTWARE\Classes\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0" /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Microsoft.StdFormat, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /f
Reg.exe add "HKLM\SOFTWARE\Classes\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\0\win32" /ve /t REG_SZ /d "%SystemRoot%\%tx%\MSSTDFMT.DLL" /f
Reg.exe add "HKLM\SOFTWARE\Classes\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\FLAGS" /ve /t REG_SZ /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Classes\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\HELPDIR" /ve /t REG_SZ /d "%SystemRoot%\%tx%\\" /f

rem word斜线表头向导
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\WordTableWizard.Connect" /f /v "FriendlyName" /t REG_SZ /d "Microsoft Word 斜线表头向导"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\WordTableWizard.Connect" /f /v "LoadBehavior" /t REG_DWORD /d 3
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WordTableWizard.Connect" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WordTableWizard.Connect\CLSID" /f /ve /t REG_SZ /d "{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WordTableWizard.TableHeadClass" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WordTableWizard.TableHeadClass\CLSID" /f /ve /t REG_SZ /d "{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\2052\TBLHEAD.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\ProgID" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\TypeLib" /f /ve /t REG_SZ /d "{EFF85A08-D97D-11D1-A7C9-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\VERSION" /f /ve /t REG_SZ /d "17"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\2052\TBLHEAD.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\ProgID" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\TypeLib" /f /ve /t REG_SZ /d "{EFF85A08-D97D-11D1-A7C9-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\VERSION" /f /ve /t REG_SZ /d "17"

rem 将在 Powerpoint 中通过插入对象的方式插入的 Excel chart 转换成最新的2007格式以便更好地编辑
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9CDC7B1E-53E4-477f-B05E-50C87D3FFA56}" /f /ve /t REG_SZ /d "CChart12Converter Class"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9CDC7B1E-53E4-477f-B05E-50C87D3FFA56}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\excelcnv.exe"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{82780E93-DEDB-4666-8CEF-E83D451CC53E}" /f /ve /t REG_SZ /d "CExcel12Converter Class"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{82780E93-DEDB-4666-8CEF-E83D451CC53E}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\excelcnv.exe"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{76FD94BA-8FF3-40B4-9C56-D7421DBFD10D}" /f /ve /t REG_SZ /d "PSFactoryBuffer"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{76FD94BA-8FF3-40B4-9C56-D7421DBFD10D}\InProcServer32" /f /ve /t REG_SZ /d "%CD%\excelcnvpxy.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B758FEA1-54BE-4dde-AE8F-C12E28BE7BD5}" /f /ve /t REG_SZ /d "IChart12Converter"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B758FEA1-54BE-4dde-AE8F-C12E28BE7BD5}\ProxyStubClsid32" /f /ve /t REG_SZ /d "{76FD94BA-8FF3-40b4-9C56-D7421DBFD10D}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\AF39A8A9BA0879C4295BEABE8027C0F9" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\excelcnvpxy.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F17DAFC40CE3BDA4DA5BD0E651973510" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\excelcnv.exe"

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\602293A26C2A2CE4BBBA9A4870DE6B25" /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Wordcnv.dll" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BCB908B9C1536D340955FC152ACC77E0" /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Wordcnvr.dll" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}" /ve /t REG_SZ /d "PSFactoryBuffer" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}\InProcServer32" /ve /t REG_SZ /d "%CD%\Wordcnvpxy.cnv" /f
reg add "HKLM\SOFTWARE\Classes\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}\InProcServer32" /v "ThreadingModel" /t REG_SZ /d "Both" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\480585E172EFA4C45A85E0DDA5C1A470" /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\Wordcnvpxy.cnv" /f

rem 增加 Office 程序语言设置功能
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\FF0DC02512092D34092405F328226FD5" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkSetLanguageFilesIntl_1033<" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\FF0DC02512092D34092405F328226FD5" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkSetLanguageFilesIntl_2052<" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\568CB039FF7CB3741B0A100A5A1C820B" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkWebDiscussFilesIntl_1033>1q0iIJ~vT=T&zFhmnHNQ" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\568CB039FF7CB3741B0A100A5A1C820B" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkWebDiscussFilesIntl_2052>[=KhJ1!{R91g!Fv1l&t5" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5B2540B617234C04985E29079C99A635" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkProductNonBootFilesIntl_1033>cB'Hq33[f?ruf[lgD4l1" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5B2540B617234C04985E29079C99A635" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkProductNonBootFilesIntl_2052>G`jA3q_`)?&WA~hxZ_i^" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5B7B7EEC3DCE3EC4FBC070131583F98C" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkWebDiscussFilesIntl_1033>HZ[=xb_tx?4c-oAqWq}Y" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5B7B7EEC3DCE3EC4FBC070131583F98C" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkWebDiscussFilesIntl_2052>r$5*+JTzb=2XF[SIC,iB" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5F925B8407A0CD94E86794CCE96AE609" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkProductNonBootFilesIntl_1033>W2=aLakA`AVzXnpwo}*-" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5F925B8407A0CD94E86794CCE96AE609" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkProductNonBootFilesIntl_2052>hzl?'+6XP@(-ZWaG)rza" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5F9BC0C744F1599438DA00F048C92C33" /v "1033" /t REG_MULTI_SZ /d "vUpAVN)8A$!!!!!MKKSkProductFilesIntl_1033>y`uxGB6X1?kfQhufDbRj" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Installer\Components\5F9BC0C744F1599438DA00F048C92C33" /v "2052" /t REG_MULTI_SZ /d "vUpAVM0}X%%!!!!!MKKSkProductFilesIntl_2052>-+U=B5j?R9.F[*V`D^S1" /f

if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"
if /i "%xtxt%"=="xx86" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109810040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109B10040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"
if /i "%xtxt%"=="xx64" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4DA1E9EDAECF4BC46B9588534D291684" /f /v "00002109E60040800000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll"

if /i not "%xtxt%"=="xx86" goto ddt
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11" md "%ProgramFiles%\Common Files\microsoft shared\OFFICE11"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll" copy "%CD%\OFFICE11\msxml5.dll" "%ProgramFiles%\Common Files\microsoft shared\OFFICE11"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\2052" md "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\2052"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\2052\msxml5r.dll" copy "%CD%\OFFICE11\2052\msxml5r.dll" "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\2052"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\1033" md "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\1033"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\1033\msxml5r.dll" copy "%CD%\OFFICE11\1033\msxml5r.dll" "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\1033"
regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

set eueu=1
if not exist "%ProgramFiles%\Common Files\microsoft shared\EURO" md "%ProgramFiles%\Common Files\microsoft shared\EURO"
if not exist "%ProgramFiles%\Common Files\microsoft shared\EURO\MSOEURO.DLL" set eueu=0
if "%eueu%"=="0" copy "%CD%\C\EURO\MSOEURO.DLL" "%ProgramFiles%\Common Files\microsoft shared\EURO"
if "%eueu%"=="0" regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\EURO\MSOEURO.DLL"

set sra=1
if not exist "%ProgramFiles%\Common Files\microsoft shared\MSORUN" md "%ProgramFiles%\Common Files\microsoft shared\MSORUN"
if not exist "%ProgramFiles%\Common Files\microsoft shared\MSORUN\MSORUN.DLL" set sra=0
if "%sra%"=="0" copy "%CD%\C\MSORUN\MSORUN.DLL" "%ProgramFiles%\Common Files\microsoft shared\MSORUN"
if "%sra%"=="0" regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\MSORUN\MSORUN.DLL"

set cck=1
if not exist "%SystemRoot%\System32\FM20.DLL" set cck=0
if "%cck%"=="0" copy "%CD%\sys\FM20.DLL" "%SystemRoot%\System32"
if "%cck%"=="0" copy /Y "%CD%\sys\FM20CHS.DLL" "%SystemRoot%\System32"
if "%cck%"=="0" copy /Y "%CD%\sys\FM20ENU.DLL" "%SystemRoot%\System32"
if "%cck%"=="0" regsvr32 /s "%SystemRoot%\System32\FM20.DLL"
if not exist "%SystemRoot%\System32\SCP32.DLL" copy "%CD%\sys\SCP32.DLL" "%SystemRoot%\System32"
if not exist "%SystemRoot%\System32\VBAME.DLL" copy "%CD%\sys\VBAME.DLL" "%SystemRoot%\System32"
if not exist "%SystemRoot%\System32\VBACHS32.OLB" copy "%CD%\sys\VBACHS32.OLB" "%SystemRoot%\System32"
if not exist "%SystemRoot%\System32\VBAEN32.OLB" copy "%CD%\sys\VBAEN32.OLB" "%SystemRoot%\System32"
if not exist "%SystemRoot%\System32\VBAEND32.OLB" copy "%CD%\sys\VBAEND32.OLB" "%SystemRoot%\System32"
set mscom=1
if not exist "%SystemRoot%\System32\MSCOMCTL.OCX" set mscom=0
if "%mscom%"=="0" copy "%CD%\sys\MSCOMCTL.OCX" "%SystemRoot%\System32"
if "%mscom%"=="0" regsvr32 /s "%SystemRoot%\System32\MSCOMCTL.OCX"
if not exist "%SystemRoot%\System32\WISPTIS.EXE" copy "%CD%\sys\WISPTIS.EXE" "%SystemRoot%\System32"
if not exist "%SystemRoot%\System32\VEN2232.OLB" copy "%CD%\sys\VEN2232.OLB" "%SystemRoot%\System32"
rem 微软标准数据格式对象相关动态链接库文件--MSSTDFMT.DLL
set bzk=1
if not exist "%SystemRoot%\System32\MSSTDFMT.DLL" set bzk=0
if "%bzk%"=="0" copy "%CD%\sys\MSSTDFMT.DLL" "%SystemRoot%\System32"
if "%bzk%"=="0" regsvr32 /s "%SystemRoot%\System32\MSSTDFMT.DLL"

if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12" md "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
set msox=1
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSO.DLL" set msox=0
if "%msox%"=="0" copy "%CD%\C\MSO.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if "%msox%"=="0" regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSO.DLL"

if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSOMSE.DLL" copy "%CD%\C\MSOMSE.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSORES.DLL" copy "%CD%\C\MSORES.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\EXP_PDF.DLL" copy "%CD%\C\EXP_PDF.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\EXP_XPS.DLL" copy "%CD%\C\EXP_XPS.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\OGL.DLL" copy "%CD%\C\OGL.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\msoshext.dll" copy "%CD%\C\msoshext.dll" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\RICHED20.DLL" copy "%CD%\C\RICHED20.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\MSPTLS.DLL" copy "%CD%\C\MSPTLS.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12"

if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052" md "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052"
set msoi=1
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\MSOINTL.DLL" set msoi=0
if "%msoi%"=="0" copy "%CD%\2052\MSOINTL.DLL" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052"
if "%msoi%"=="0" regsvr32 /s "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\MSOINTL.DLL"
if not exist "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll" copy "%CD%\2052\xlsrvintl.dll" "%ProgramFiles%\Common Files\microsoft shared\OFFICE12\2052"

if not exist "%ProgramFiles%\Microsoft Office\Office14" md "%ProgramFiles%\Microsoft Office\Office14"
if not exist "%ProgramFiles%\Microsoft Office\Office14\GKExcel.dll" copy "%CD%\Office14\GKExcel.dll" "%ProgramFiles%\Microsoft Office\Office14"
if not exist "%ProgramFiles%\Microsoft Office\Office14\GKPowerPoint.dll" copy "%CD%\Office14\GKPowerPoint.dll" "%ProgramFiles%\Microsoft Office\Office14"
if not exist "%ProgramFiles%\Microsoft Office\Office14\GKExcel2.dll" copy "%CD%\Office14\GKExcel2.dll" "%ProgramFiles%\Microsoft Office\Office14"
if not exist "%ProgramFiles%\Microsoft Office\Office14\GKWord.dll" copy "%CD%\Office14\GKWord.dll" "%ProgramFiles%\Microsoft Office\Office14"
if not exist "%ProgramFiles%\Microsoft Office\Office14\GKWord6.dll" copy "%CD%\Office14\GKWord6.dll" "%ProgramFiles%\Microsoft Office\Office14"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" /f /v "%ProgramFiles%\Microsoft Office\Office14\\" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\49DFBA7AF457A8B4EBD5783F921FACC2" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Microsoft Office\Office14\GKExcel.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4AFC55126308D32438EED59806D01BC9" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Microsoft Office\Office14\GKPowerPoint.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\77B931DB42742C848BB6137C4F01E5FF" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Microsoft Office\Office14\GKExcel2.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\86EE1DEB37E43BC4896128BBFE2A7072" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Microsoft Office\Office14\GKWord.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FF1621F395AFFB74683838C595B20460" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles%\Microsoft Office\Office14\GKWord6.dll"

if not exist "%SystemRoot%\System32\hlink.dll" copy "%CD%\hlink.dll" "%SystemRoot%\System32"
:ddt

rem 64bit Add
IF /I NOT "%xtxt%"=="xx64" GOTO END
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\FilesPaths" /f /v "mso.dll" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\FilesPaths" /f /v "ogl.dll" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\OGL.DLL"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\InstallRoot" /f /v "InstallCount" /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Excel\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\PowerPoint\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Word\InstallRoot" /f /v "Path" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\LanguageResources" /f /v "SKULanguage" /t REG_DWORD /d 2052
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\LanguageResources\InstalledUIs" /f /v "1033" /t REG_SZ /d "On"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\LanguageResources\InstalledUIs" /f /v "2052" /t REG_SZ /d "On"

reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\CTF\TIP\{5621CC0F-3ABF-428b-BDF0-D8544FD3ED75}\LanguageProfile\0x00000804\{F3BA9077-6C7E-11D4-97FA-0080C882687E}" /f /v "Enable" /t REG_DWORD /d 1

reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E6-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E6-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E7-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E7-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E8-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E8-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E9-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969E9-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EA-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EA-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EB-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EB-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EC-8B8B-4C3D-859E-AF6CD158BE0F}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EC-8B8B-4C3D-859E-AF6CD158BE0F}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EE-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EE-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EF-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969EF-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F0-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F0-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F1-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F1-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{88D969F5-F192-11D4-A65F-0040963251E5}\InProcServer32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "DigitalProductID" /t REG_BINARY /d a40000000300000038393338382d3730372d303336363530312d363538353700820000003132332d313233343500000000000000862508ed24a66f15a6bd4d394e850000000000006e59bb45bb7a200000000000000000000000000000000000000000000000000030303430350000000000000000000000e97ddaa2f6070000f91d0000000000000000000000000000000000000000000000000000000000008572ee5e
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "DPCFile" /t REG_SZ /d "%CD%\ID_00030.DPC"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "SPLevel" /t REG_SZ /d "SP2"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ConvertToEdition" /t REG_SZ /d "Microsoft Office Professional 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductID" /t REG_SZ /d "89388-707-0366501-65840"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductName" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductNameBrand" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ProductNameNonQualified" /t REG_SZ /d "Microsoft Office"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "SuiteName" /t REG_SZ /d "Part of Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ExcelName" /t REG_SZ /d "Microsoft Excel"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "ExcelNameVersion" /t REG_SZ /d "Microsoft Office Excel 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "PowerPointName" /t REG_SZ /d "Microsoft PowerPoint"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "PowerPointNameVersion" /t REG_SZ /d "Microsoft Office PowerPoint 2007"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "WordName" /t REG_SZ /d "Microsoft Word"
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\{90120000-0030-0000-0000-0000000FF1CE}" /f /v "WordNameVersion" /t REG_SZ /d "Microsoft Office Word 2007"
Reg.exe add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\12.0\Common\General" /v "Data" /t REG_SZ /d "%CD%\OPA12.BAK" /f

rem 下面新加的aaa开始
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Office Excel Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\Implemented Categories" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\Implemented Categories\{000C0118-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Excel.Application.12"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Excel.Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer" /v "LocalServer" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5 /automation\0yh1BV5!!!!!!!!!MKKSkEXCELFiles>lVWA(TVkMAIS5Dh]3nVO /automation" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkEXCELFiles>tW{~$4Q]c@II=l2xaTO5 /automation\0yh1BV5!!!!!!!!!MKKSkEXCELFiles>lVWA(TVkMAIS5Dh]3nVO /automation" /f
rem 上面新加的aaa结束
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Word Basic"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\InprocHandler" /f /ve /t REG_SZ /d "ole2.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Word.Basic.9"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Word.Basic"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Word Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\WINWORD.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "Word.Application.12"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Word.Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FE-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /Automation\0yh1BV5!!!!!!!!!MKKSkWORDFiles>!2-1&m&8y@Nmo2r)^f-C /Automation" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{000209FF-0000-0000-C000-000000000046}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkWORDFiles>tW{~$4Q]c@5d1`,xaTO5 /Automation\0yh1BV5!!!!!!!!!MKKSkWORDFiles>!2-1&m&8y@Nmo2r)^f-C /Automation" /f

reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}" /f /ve /t REG_SZ /d "Microsoft Office PowerPoint Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\InprocHandler" /f /ve /t REG_SZ /d "ole2.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\InprocHandler32" /f /ve /t REG_SZ /d "ole32.dll"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\POWERPNT.EXE /automation"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\ProgID" /f /ve /t REG_SZ /d "PowerPoint.Application.12"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\VersionIndependentProgID" /f /ve /t REG_SZ /d "PowerPoint.Application"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer" /v "LocalServer" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkPPTFiles>tW{~$4Q]c@Y*Gx7xaTO5 /AUTOMATION\0yh1BV5!!!!!!!!!MKKSkPPTFiles>kns(0Js&3@v(mb8srm-6 /AUTOMATION" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{91493441-5A91-11CF-8700-00AA0060263B}\LocalServer32" /v "LocalServer32" /t REG_MULTI_SZ /d "vUpAVX!!!!!!!!!MKKSkPPTFiles>tW{~$4Q]c@Y*Gx7xaTO5 /AUTOMATION\0yh1BV5!!!!!!!!!MKKSkPPTFiles>kns(0Js&3@v(mb8srm-6 /AUTOMATION" /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0" /f /ve /t REG_SZ /d "Office Chinese Translation Addin"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\TCSCCONV.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{5D0F5776-D173-41DA-8EC6-18C141CEC410}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\ADDINS\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0" /f /ve /t REG_SZ /d "Office Symbol Input"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\SYMINPUT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{6001EE4B-8628-4642-B90F-F089818623F3}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\ADDINS\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{AC0714F6-3D04-11D1-AE7D-00A0C90F26F4}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{AC0714F6-3D04-11D1-AE7D-00A0C90F26F4}\Instance CLSID" /f /ve /t REG_SZ /d "{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\ADDINS\MSADDNDR.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{AC0714F7-3D04-11D1-AE7D-00A0C90F26F4}\TypeLib" /f /ve /t REG_SZ /d "{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4" /f /ve /t REG_SZ /d "Microsoft Office 12.0 Object Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4" /f /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.4\FLAGS" /f /ve /t REG_SZ /d "0"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{48F1A45E-8F68-498E-9001-5D3743D2DB98}\InProcServer32" /f /ve /t REG_SZ /d "%CD%\OART.DLL"

rem 下面VB编辑x64
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VBA" /f /v "Vbe6DllPath" /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\804\win32" /f /ve /t REG_SZ /d "%CD%\XL5CHS32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%CD%\XL5EN32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行必须-(原版)-是安装目录
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6" /f /ve /t REG_SZ /d "Microsoft Excel 12.0 Object Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\0\win32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行必须-(原版)-是安装目录
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00020813-0000-0000-C000-000000000046}\1.6\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VEN2232.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\2.1\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\9\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204EF-0000-0000-C000-000000000046}\4.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3" /f /ve /t REG_SZ /d "Microsoft Visual Basic for Applications Extensibility 5.3"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEND32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\804\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBACHS32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEN32.OLB"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
rem 下面一行原版在-C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\\
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F3-0000-0000-C000-000000000046}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VBA\VBA6\\"

reg add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0" /f /ve /t REG_SZ /d "Microsoft Forms 2.0 Object Library"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0" /f /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Microsoft.Vbe.Interop.Forms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{0D452EE1-E08F-101A-852E-02608C4D0BB4}\2.0\0\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\FM20.DLL"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0" /f /ve /t REG_SZ /d "Visual Basic For Applications"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{000204F1-0000-0000-C000-000000000046}\1.0\9\win32" /f /ve /t REG_SZ /d "%SystemRoot%\%tx%\VBAEND32.OLB"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024512-0000-0000-C000-000000000046}\ProgID" /f /ve /t REG_SZ /d "RefEdit.Ctrl"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024512-0000-0000-C000-000000000046}\ToolboxBitmap32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL,1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024512-0000-0000-C000-000000000046}\TypeLib" /f /ve /t REG_SZ /d "{00024517-0000-0000-C000-000000000046}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024512-0000-0000-C000-000000000046}\Version" /f /ve /t REG_SZ /d "1.2"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024522-0000-0000-C000-000000000046}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024522-0000-0000-C000-000000000046}\ToolboxBitmap32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL,1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024522-0000-0000-C000-000000000046}\TypeLib" /f /ve /t REG_SZ /d "{00024517-0000-0000-C000-000000000046}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00024522-0000-0000-C000-000000000046}\Version" /f /ve /t REG_SZ /d "1.2"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}" /f /ve /t REG_SZ /d "VBA Collection Object"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}\InprocServer" /f /ve /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}\InprocServer32" /f /ve /t REG_SZ /d ""

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2" /f /ve /t REG_SZ /d "Ref Edit Control"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2\0\win32" /f /ve /t REG_SZ /d "%CD%\REFEDIT.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{00024517-0000-0000-C000-000000000046}\1.2\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00020812-0000-0000-C000-000000000046}" /f /ve /t REG_SZ /d "Microsoft Excel Application"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00020812-0000-0000-C000-000000000046}\LocalServer" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{00020812-0000-0000-C000-000000000046}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\EXCEL.EXE /automation"

rem 在线模板--IEAWSDC.DLL
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}" /f /ve /t REG_SZ /d "Microsoft Office Template and Media Control"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\IEAWSDC.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\ProgID" /f /ve /t REG_SZ /d "Office.awsdc.1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\TypeLib" /f /ve /t REG_SZ /d "{012F24C1-35B0-11D0-BF2D-0000E8D0D146}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\Version" /f /ve /t REG_SZ /d "1.0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{02BCC737-B171-4746-94C9-0D8A0B2C0089}\VersionIndependentProgID" /f /ve /t REG_SZ /d "Office.awsdc"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0" /f /ve /t REG_SZ /d "Microsoft Office Template and Media Control 1.0 Type Library"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\IEAWSDC.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\FLAGS" /f /ve /t REG_SZ /d "0"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib\{012F24C1-35B0-11D0-BF2D-0000E8D0D146}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%\\"

rem 微软标准数据格式对象相关动态链接库文件--MSSTDFMT.DLL
Reg.exe add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0" /ve /t REG_SZ /d "Microsoft Data Formatting Object Library" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0" /v "PrimaryInteropAssemblyName" /t REG_SZ /d "Microsoft.StdFormat, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\0\win32" /ve /t REG_SZ /d "%SystemRoot%\%tx%\MSSTDFMT.DLL" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\FLAGS" /ve /t REG_SZ /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Classes\Wow6432Node\TypeLib\{6B263850-900B-11D0-9484-00A0C91110ED}\1.0\HELPDIR" /ve /t REG_SZ /d "%SystemRoot%\%tx%\\" /f

rem word斜线表头向导
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Word\Addins\WordTableWizard.Connect" /f /v "FriendlyName" /t REG_SZ /d "Microsoft Word 斜线表头向导"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Word\Addins\WordTableWizard.Connect" /f /v "LoadBehavior" /t REG_DWORD /d 3
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\WordTableWizard.Connect" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\WordTableWizard.Connect\CLSID" /f /ve /t REG_SZ /d "{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\WordTableWizard.TableHeadClass" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\WordTableWizard.TableHeadClass\CLSID" /f /ve /t REG_SZ /d "{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\2052\TBLHEAD.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\ProgID" /f /ve /t REG_SZ /d "WordTableWizard.TableHeadClass"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\TypeLib" /f /ve /t REG_SZ /d "{EFF85A08-D97D-11D1-A7C9-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157A-0BD6-11D2-A7D4-00C04FC018A5}\VERSION" /f /ve /t REG_SZ /d "17"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\2052\TBLHEAD.DLL"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\ProgID" /f /ve /t REG_SZ /d "WordTableWizard.Connect"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\TypeLib" /f /ve /t REG_SZ /d "{EFF85A08-D97D-11D1-A7C9-00C04FC018A5}"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9EF6157E-0BD6-11D2-A7D4-00C04FC018A5}\VERSION" /f /ve /t REG_SZ /d "17"

rem Catalog-x64 ==书目功能=
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}" /f /ve /t REG_SZ /d "Bibliography"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\ProxyStubClsid" /f /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\ProxyStubClsid32" /f /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\TypeLib" /f /ve /t REG_SZ /d "{00020905-0000-0000-C000-000000000046}"
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{3834F60F-EE8C-455D-A441-D766675D6D3B}\TypeLib" /f /v "Version" /t REG_SZ /d "8.4"

rem word艺术边框-x64
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{00020855-0000-0000-C000-000000000046}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{00020855-0000-0000-C000-000000000046}\ProxyStubClsid" /ve /t REG_SZ /d "{00020420-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{00020855-0000-0000-C000-000000000046}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020420-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{00020855-0000-0000-C000-000000000046}\TypeLib" /ve /t REG_SZ /d "{00020813-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{00020855-0000-0000-C000-000000000046}\TypeLib" /v "Version" /t REG_SZ /d "1.6" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{0002093C-0000-0000-C000-000000000046}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{0002093C-0000-0000-C000-000000000046}\ProxyStubClsid" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{0002093C-0000-0000-C000-000000000046}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{0002093C-0000-0000-C000-000000000046}\TypeLib" /ve /t REG_SZ /d "{00020905-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{0002093C-0000-0000-C000-000000000046}\TypeLib" /v "Version" /t REG_SZ /d "8.4" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}" /ve /t REG_SZ /d "Borders" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\ProxyStubClsid" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\ProxyStubClsid32" /ve /t REG_SZ /d "{00020424-0000-0000-C000-000000000046}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\TypeLib" /ve /t REG_SZ /d "{91493440-5A91-11CF-8700-00AA0060263B}" /f
reg add "HKLM\SOFTWARE\Classes\Wow6432Node\Interface\{914934CA-5A91-11CF-8700-00AA0060263B}\TypeLib" /v "Version" /t REG_SZ /d "2.9" /f

rem 将在 Powerpoint 中通过插入对象的方式插入的 Excel chart 转换成最新的2007格式以便更好地编辑x64
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9CDC7B1E-53E4-477f-B05E-50C87D3FFA56}" /f /ve /t REG_SZ /d "CChart12Converter Class"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{9CDC7B1E-53E4-477f-B05E-50C87D3FFA56}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\excelcnv.exe"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{82780E93-DEDB-4666-8CEF-E83D451CC53E}" /f /ve /t REG_SZ /d "CExcel12Converter Class"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{82780E93-DEDB-4666-8CEF-E83D451CC53E}\LocalServer32" /f /ve /t REG_SZ /d "%CD%\excelcnv.exe"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{76FD94BA-8FF3-40B4-9C56-D7421DBFD10D}" /f /ve /t REG_SZ /d "PSFactoryBuffer"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{76FD94BA-8FF3-40B4-9C56-D7421DBFD10D}\InProcServer32" /f /ve /t REG_SZ /d "%CD%\excelcnvpxy.dll"

reg add "HKLM\SOFTWARE\Classes\Wow6432Node\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}" /ve /t REG_SZ /d "PSFactoryBuffer" /f
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}\InProcServer32" /ve /t REG_SZ /d "%CD%\Wordcnvpxy.cnv" /f
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{539E424E-EE72-4439-BB27-6B646D119406}\InProcServer32" /v "ThreadingModel" /t REG_SZ /d "Both" /f

if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11" md "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll" copy "%CD%\OFFICE11\msxml5.dll" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\2052" md "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\2052"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\2052\msxml5r.dll" copy "%CD%\OFFICE11\2052\msxml5r.dll" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\2052"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\1033" md "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\1033"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\1033\msxml5r.dll" copy "%CD%\OFFICE11\1033\msxml5r.dll" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\1033"
regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE11\msxml5.dll"

set eue=1
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO" md "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO\MSOEURO.DLL" set eue=0
if "%eue%"=="0" copy "%CD%\C\EURO\MSOEURO.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO"
if "%eue%"=="0" regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\EURO\MSOEURO.DLL"

set zra=1
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN" md "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN\MSORUN.DLL" set zra=0
if "%zra%"=="0" copy "%CD%\C\MSORUN\MSORUN.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN"
if "%zra%"=="0" regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\MSORUN\MSORUN.DLL"

set ckck=1
if not exist "%SystemRoot%\SysWOW64\FM20.DLL" set ckck=0
if "%ckck%"=="0" copy "%CD%\sys\FM20.DLL" "%SystemRoot%\SysWOW64"
if "%ckck%"=="0" copy /Y "%CD%\sys\FM20CHS.DLL" "%SystemRoot%\SysWOW64"
if "%ckck%"=="0" copy /Y "%CD%\sys\FM20ENU.DLL" "%SystemRoot%\SysWOW64"
if "%ckck%"=="0" regsvr32 /s "%SystemRoot%\SysWOW64\FM20.DLL"
if not exist "%SystemRoot%\SysWOW64\SCP32.DLL" copy "%CD%\sys\SCP32.DLL" "%SystemRoot%\SysWOW64"
if not exist "%SystemRoot%\SysWOW64\VBAME.DLL" copy "%CD%\sys\VBAME.DLL" "%SystemRoot%\SysWOW64"
if not exist "%SystemRoot%\SysWOW64\VBACHS32.OLB" copy "%CD%\sys\VBACHS32.OLB" "%SystemRoot%\SysWOW64"
if not exist "%SystemRoot%\SysWOW64\VBAEN32.OLB" copy "%CD%\sys\VBAEN32.OLB" "%SystemRoot%\SysWOW64"
if not exist "%SystemRoot%\SysWOW64\VBAEND32.OLB" copy "%CD%\sys\VBAEND32.OLB" "%SystemRoot%\SysWOW64"
set mscom=1
if not exist "%SystemRoot%\SysWOW64\MSCOMCTL.OCX" set mscom=0
if "%mscom%"=="0" copy "%CD%\sys\MSCOMCTL.OCX" "%SystemRoot%\SysWOW64"
if "%mscom%"=="0" regsvr32 /s "%SystemRoot%\SysWOW64\MSCOMCTL.OCX"
if not exist "%SystemRoot%\SysWOW64\WISPTIS.EXE" copy "%CD%\sys\WISPTIS.EXE" "%SystemRoot%\SysWOW64"
if not exist "%SystemRoot%\SysWOW64\VEN2232.OLB" copy "%CD%\sys\VEN2232.OLB" "%SystemRoot%\SysWOW64"
rem 微软标准数据格式对象相关动态链接库文件--MSSTDFMT.DLL
set bzk=1
if not exist "%SystemRoot%\SysWOW64\MSSTDFMT.DLL" set bzk=0
if "%bzk%"=="0" copy "%CD%\sys\MSSTDFMT.DLL" "%SystemRoot%\SysWOW64"
if "%bzk%"=="0" regsvr32 /s "%SystemRoot%\SysWOW64\MSSTDFMT.DLL"

if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12" md "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
set msox=1
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL" set msox=0
if "%msox%"=="0" copy "%CD%\C\MSO.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if "%msox%"=="0" regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSO.DLL"

if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSOMSE.DLL" copy "%CD%\C\MSOMSE.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSORES.DLL" copy "%CD%\C\MSORES.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\EXP_PDF.DLL" copy "%CD%\C\EXP_PDF.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\EXP_XPS.DLL" copy "%CD%\C\EXP_XPS.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\OGL.DLL" copy "%CD%\C\OGL.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\msoshext.dll" copy "%CD%\C\msoshext.dll" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\RICHED20.DLL" copy "%CD%\C\RICHED20.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\MSPTLS.DLL" copy "%CD%\C\MSPTLS.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12"

if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052" md "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052"
set msoi=1
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\MSOINTL.DLL" set msoi=0
if "%msoi%"=="0" copy "%CD%\2052\MSOINTL.DLL" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052"
if "%msoi%"=="0" regsvr32 /s "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\MSOINTL.DLL"
if not exist "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052\xlsrvintl.dll" copy "%CD%\2052\xlsrvintl.dll" "%ProgramFiles(x86)%\Common Files\microsoft shared\OFFICE12\2052"

if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14" md "%ProgramFiles(x86)%\Microsoft Office\Office14"
if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14\GKExcel.dll" copy "%CD%\Office14\GKExcel.dll" "%ProgramFiles(x86)%\Microsoft Office\Office14"
if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14\GKPowerPoint.dll" copy "%CD%\Office14\GKPowerPoint.dll" "%ProgramFiles(x86)%\Microsoft Office\Office14"
if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14\GKExcel2.dll" copy "%CD%\Office14\GKExcel2.dll" "%ProgramFiles(x86)%\Microsoft Office\Office14"
if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14\GKWord.dll" copy "%CD%\Office14\GKWord.dll" "%ProgramFiles(x86)%\Microsoft Office\Office14"
if not exist "%ProgramFiles(x86)%\Microsoft Office\Office14\GKWord6.dll" copy "%CD%\Office14\GKWord6.dll" "%ProgramFiles(x86)%\Microsoft Office\Office14"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" /f /v "%ProgramFiles(x86)%\Microsoft Office\Office14\\" /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\49DFBA7AF457A8B4EBD5783F921FACC2" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Microsoft Office\Office14\GKExcel.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\4AFC55126308D32438EED59806D01BC9" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Microsoft Office\Office14\GKPowerPoint.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\77B931DB42742C848BB6137C4F01E5FF" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Microsoft Office\Office14\GKExcel2.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\86EE1DEB37E43BC4896128BBFE2A7072" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Microsoft Office\Office14\GKWord.dll"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\FF1621F395AFFB74683838C595B20460" /f /v "00004109500200000000000000F01FEC" /t REG_SZ /d "%ProgramFiles(x86)%\Microsoft Office\Office14\GKWord6.dll"

if not exist "%SystemRoot%\SysWOW64\hlink.dll" copy "%CD%\hlink.dll" "%SystemRoot%\SysWOW64"

:END
regedit /s "%CD%\office07.reg"
if /i "%1"=="b" (call "%CD%\bb.cmd")
if /i "%1"=="c" (call "%CD%\cc.cmd")
if /i "%1"=="d" (call "%CD%\dd.cmd")

if exist "%CD%\ee.cmd" call "%CD%\ee.cmd"
if exist "%CD%\az_access.cmd" call "%CD%\az_access.cmd"

reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\office2007-my" /f /v "DisplayIcon" /t REG_SZ /d "%CD%\xz_uninstall.exe"
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\office2007-my" /f /v "DisplayName" /t REG_SZ /d "office2007-my"
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\office2007-my" /f /v "DisplayVersion" /t REG_SZ /d "20160104"
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\office2007-my" /f /v "Publisher" /t REG_SZ /d "wynew8au"
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\office2007-my" /f /v "UninstallString" /t REG_SZ /d "%CD%\xz_uninstall.exe"
rem ---创建快捷方式--- 预定义变量%Desktop%桌面目录,%Startup%启动菜单目录,%Programs%程序菜单目录,%Personal%我的文档目录,%CurDrv%当前文件路径
PECMD.EXE LINK %%Desktop%%\Office2007_表格,%%CurDir%%\EXCEL.EXE,,%%CurDir%%\office_ico\Excel.ico
PECMD.EXE LINK %%Desktop%%\Office2007_幻灯片PPT,%%CurDir%%\POWERPNT.EXE,,%%CurDir%%\office_ico\PowerPoint.ico
PECMD.EXE LINK %%Desktop%%\Office2007_文字,%%CurDir%%\WINWORD.EXE,,%%CurDir%%\office_ico\Word.ico

rem 上一级目录，下面的%cd%和上面的%cd%路径不一样，所以office12目录名字不能更改
cd ..
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\8E2811A46CDC9A240A515AD2F98DD51A" /f /v "00002109030000000000000000F01FEC" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "DisplayName" /t REG_SZ /d "Microsoft Office Enterprise 2007"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "InstallLocation" /t REG_SZ /d "%CD%\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "LocalPackage" /t REG_SZ /d " "
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "DisplayVersion" /t REG_SZ /d "12.0.6668.5000"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "RegCompany" /t REG_SZ /d "CHINA"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "RegOwner" /t REG_SZ /d "USER"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\InstallProperties" /f /v "WindowsInstaller" /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00002109030000000000000000F01FEC\Usage" /f /v "ProductFiles" /t REG_DWORD /d 48270008

assoc .pptx=PowerPoint.Show.12
"%~dp0mmaj.exe" az

exit
rem in 2017/01/01